	function FormValidation () {

		valid = true;
								
		//Validation for Application
		if ( document.ApplicationForm.Company.value == "" ) {
	        alert ( "Please fill in the Company Name" );
	        valid = false;
		} else if ( document.ApplicationForm.Company_Phone.value == "" ) {
	        alert ( "Please fill in the Company Phone Number" );
	        valid = false;
		} else if ( document.ApplicationForm.Company_Fax.value == "" ) {
	        alert ( "Please fill in the Company Fax Number" );
	        valid = false;
		} else if ( document.ApplicationForm.Contact_First_Name.value == "" ) {
	        alert ( "Please fill in the First Name of the Primary Contact" );
	        valid = false;
		} else if ( document.ApplicationForm.Contact_Last_Name.value == "" ) {
	        alert ( "Please fill in the Last Name of the Primary Contact" );
	        valid = false;
		} else if ( document.ApplicationForm.Contact_Phone.value == "" ) {
	        alert ( "Please fill in the Phone Number of the Primary Contact" );
	        valid = false;
		} else if ( document.ApplicationForm.Contact_Email.value == "" ) {
	        alert ( "Please fill in the Email Address of the Primary Contact" );
	        valid = false;
		} else if ( document.ApplicationForm.Contact_Title.value == "" ) {
	        alert ( "Please fill in the Job Title of the Primary Contact." );
	        valid = false;
		} else if ( document.ApplicationForm.Address_1.value == "" ) {
	        alert ( "Please fill in the Mailing Address." );
	        valid = false;
		} else if ( document.ApplicationForm.Manufacturing_Site.value == "" ) {
	        alert ( "Please fill in the Manufacturing Site." );
	        valid = false;
		} else if ( document.ApplicationForm.City.value == "" ) {
	        alert ( "Please fill in the City." );
	        valid = false;
		} else if ( document.ApplicationForm.State.value == "" ) {
	        alert ( "Please select a State." );
	        valid = false;
		} else if ( document.ApplicationForm.Zip_Code.value == "" ) {
	        alert ( "Please fill in the Zip Code." );
	        valid = false;
		} else if ( document.ApplicationForm.Website_Domain.value == "" ) {
	        alert ( "Please fill in the Website Domain." );
	        valid = false;
		} else if ( document.ApplicationForm.Product_Models.value == "" ) {
	        alert ( "Please fill in the number of Product Models." );
	        valid = false;
			
		//Regular Expression Validations		
		} else if ( document.ApplicationForm.Company_Phone.value != "" ) {
			var pfilter = /^\(?\d{3}\)?(\s|-)\d{3}-\d{4}$/;
			var efilter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
			if (!pfilter.test(document.ApplicationForm.Company_Phone.value)) {
			alert( "Please provide a valid Company Phone Number" );
			valid = false;
			} else if (!pfilter.test(document.ApplicationForm.Company_Fax.value)) {
			alert( "Please provide a valid Company Fax Number" );
			valid = false;
			} else if (!pfilter.test(document.ApplicationForm.Contact_Phone.value)) {
			alert( "Please provide a valid Contact Phone Number" );
			valid = false;
			} else if (!efilter.test(document.ApplicationForm.Contact_Email.value)) {
			alert( "Please provide a valid Email Address" );
			valid = false;
			}
		}
	    return valid;
	}
