checkOppReg = function()
{
	$("#errorMsg").remove();

	if ($("#company").val() == "")
	{
		$("#company").focus().after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
		
	if ($("#contact").val() == "")
	{
		$("#contact").focus().after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#ccoid").val() == "")
	{
		$("#ccoid").focus().after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#title").val() == "")
	{
		$("#title").focus().after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#address1").val() == "")
	{
		$("#address1").focus().after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#city").val() == "")
	{
		$("#city").focus().after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#state").val() == "")
	{
		$("#state").focus().after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#zip").val() == "")
	{
		$("#zip").focus().after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
		
	if ($("#phone").val() == "")
	{
		$("#phone").focus();
		$("#phone-3").after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#email").val() == "" || $("#email").val() == "E-Mail Address")
	{
		$("#email").focus();
		$("#email").after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#end-user-name").val() == "")
	{
		$("#end-user-name").focus();
		$("#end-user-name").after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#end-user-website").val() == "")
	{
		$("#end-user-website").focus();
		$("#end-user-website").after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#end-user-address").val() == "")
	{
		$("#end-user-address").focus();
		$("#end-user-address").after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#end-user-city").val() == "")
	{
		$("#end-user-city").focus();
		$("#end-user-city").after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#end-user-state").val() == "")
	{
		$("#end-user-state").focus();
		$("#end-user-state").after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#end-user-zip").val() == "")
	{
		$("#end-user-zip").focus();
		$("#end-user-zip").after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#end-user-contact").val() == "")
	{
		$("#end-user-contact").focus();
		$("#end-user-contact").after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#end-user-title").val() == "")
	{
		$("#end-user-title").focus();
		$("#end-user-title").after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#end-user-email").val() == "" || $("#end-user-email").val() == "E-Mail Address")
	{
		$("#end-user-email").focus();
		$("#end-user-email").after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#end-user-phone").val() == "")
	{
		$("#end-user-phone").focus();
		$("#end-user-phone-3").after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#prospective-deal-description").val() == "")
	{
		$("#prospective-deal-description").focus();
		$("#prospective-deal-description").after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#prospective-deal-expected-close-date").val() == "")
	{
		$("#prospective-deal-expected-close-date").focus();
		$("#prospective-deal-expected-close-date").after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#prospective-deal-expected-cisco-hardware-and-software-amount").val() == "")
	{
		$("#prospective-deal-expected-cisco-hardware-and-software-amount").focus();
		$("#prospective-deal-expected-cisco-hardware-and-software-amount").after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#prospective-deal-expected-cisco-service-list-amount").val() == "")
	{
		$("#prospective-deal-expected-cisco-service-list-amount").focus();
		$("#prospective-deal-expected-cisco-service-list-amount").after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#prospective-deal-known-competitors").val() == "")
	{
		$("#prospective-deal-known-competitors").focus();
		$("#prospective-deal-known-competitors").after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#prospective-deal-project-out-for-bid").val() == "")
	{
		$("#prospective-deal-project-out-for-bid").focus();
		$("#prospective-deal-project-out-for-bid").after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#prospective-deal-met-with-end-user").val() == "")
	{
		$("#prospective-deal-met-with-end-user").focus();
		$("#prospective-deal-met-with-end-user").after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#prospective-deal-detail-description").val() == "")
	{
		$("#prospective-deal-detail-description").focus();
		$("#prospective-deal-detail-description").after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#prospective-deal-created-network-design").val() == "")
	{
		$("#prospective-deal-created-network-design").focus();
		$("#prospective-deal-created-network-design").after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#prospective-deal-detail-site-locations").val() == "")
	{
		$("#prospective-deal-detail-site-locations").focus();
		$("#prospective-deal-detail-site-locations").after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#prospective-deal-cisco-account-manager-or-contact").val() == "")
	{
		$("#prospective-deal-cisco-account-manager-or-contact").focus();
		$("#prospective-deal-cisco-account-manager-or-contact").after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#prospective-deal-created-through-cisco-campaign").val() == "")
	{
		$("#prospective-deal-created-through-cisco-campaign").focus();
		$("#prospective-deal-created-through-cisco-campaign").after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
	
	if ($("#k12-or-library-customer").val() == "")
	{
		$("#k12-or-library-customer").focus();
		$("#k12-or-library-customer").after("<span id='errorMsg'><font color='red'><b>* Required</b></font></span>");
		return false;
	}
}

$(document).ready (function(){
	$("#oppReg").submit(function(){
		return checkOppReg();
	});
});
