function validate(theForm){

		

	if(isBlank(theForm.name.value)){

		alert("\"Name\" is a required field.");

		theForm.name.focus();

		return false;

	}

	/*

	if(isBlank(theForm.jobtitle.value)){

		alert("Jobtitle is a required field.");

		theForm.jobtitle.focus();

		return false;

	}

	*/

	if(isBlank(theForm.email.value)){

		alert("\"Email Address\" is a required field.");

		theForm.email.focus();

		return false;

	}else{

		if(!(isValidEmail(theForm.email.value))){

			alert("\"Email Address\" is not valid.");

			theForm.email.focus();

			return false;

		}

	}	

	if(isBlank(theForm.phoneNumber.value)){

		alert("\"Phone Number\" is a required field.");

		theForm.phoneNumber.focus();

		return false;

	}else{

		if (!(CheckPhoneNumber(theForm.phoneNumber.value))) {
			alert("\"Phone Number\" is not valid.");

			theForm.phoneNumber.focus();

			return false;

		}

	}
	
	if(isBlank(theForm.loginname.value)){

		alert("\"Login\" is a required field.");

		theForm.loginname.focus();

		return false;

	}
	

	if(isBlank(theForm.prospect.value)){

		alert("\"Prospective Advertiser\" is a required field.");

		theForm.prospect.focus();

		return false;

	}



	if(isBlank(theForm.responsibleperson.value)){

		alert("\"Person responsible for advertising decisions\" is a required field.");

		theForm.responsibleperson.focus();

		return false;

	}

	if(isBlank(theForm.persontitle.value)){

		alert("\"Person title\" is a required field.");

		theForm.persontitle.focus();

		return false;

	}



	if(isBlank(theForm.personemail.value)){

			alert("\"Primary Email\" is a required field.");

			theForm.personemail.focus();

			return false;

	}else{

			if(!(isValidEmail(theForm.personemail.value))){

				alert("\"Primary Email\" is not valid.");

				theForm.personemail.focus();

				return false;

			}

	}	

	

	if(isBlank(theForm.personphone.value)){

		alert("\"Primary Phone\" is a required field.");

		theForm.personphone.focus();

		return false;

	} else {

		if (!(CheckPhoneNumber(theForm.personphone.value))) {

			alert("\"Phone number\" is Not Valid");

			theForm.personphone.focus();

			return false;

		}

	}

	/*

	if(isBlank(theForm.comments.value)){

		alert("Comments is a required field.");

		theForm.comments.focus();

		return false;

	}

	*/

	return true;



}



function submitForm(){

	document.form1.submit();

}




