function checkform(){
	
	if(document.form1.firstname.value == '') {
       alert('Please enter your first name.');
	   form1.firstname.focus();
       form1.firstname.select();
	   return false;
	   }
	   
	if(document.form1.homephone.value == '') {
		if(document.form1.workphone.value == '') {
			if(document.form1.cellphone.value == '') {
			alert("Enter at least one phone number that we can reach you at."); 
	   		form1.homephone.focus();
       		form1.homephone.select();
       		return false; 
       		}
		}
	}
    if(-1 != document.form1.homephone.value.indexOf("-")) { 
       alert("Your home phone number must not have any dashes in it."); 
	   form1.homephone.focus();
       form1.homephone.select();
       return false; 
       }
	if(-1 != document.form1.homephone.value.indexOf(".")) { 
       alert("Your home phone number must not have any periods in it."); 
	   form1.homephone.focus();
       form1.homephone.select();
       return false; 
       }	
    if(-1 != document.form1.homephone.value.indexOf("(")) { 
       alert("Your home phone number must not have any parentheses in it."); 
	   form1.homephone.focus();
       form1.homephone.select();
       return false; 
       }
	if(-1 != document.form1.homephone.value.indexOf(")")) { 
       alert("Your home phone number must not have any parentheses in it."); 
	   form1.homephone.focus();
       form1.homephone.select();
       return false; 
       }
	if(-1 != document.form1.homephone.value.indexOf(" ")) { 
       alert("Your home phone number must not have any spaces in it."); 
	   form1.homephone.focus();
       form1.homephone.select();
       return false; 
       }
	if(document.form1.homephone.value.length != 10) {
		if(document.form1.homephone.value.length > 0) {
			alert("Home phone number must ONLY contain your area code and your 7-digit number.");
			form1.homephone.focus();
			form1.homephone.select();
			return false;
	   		}
	   }
	if(document.form1.homephone.value.length == 10) {
		if(document.form1.homephone.value.charAt(0) < '2' ) {
			alert("Your area code must not start with a '1' or '0'");
			form1.homephone.focus();
			form1.homephone.select();
			return false;
			}
		if(document.form1.homephone.value.charAt(3) < '2' ) {
			alert("Your phone number prefix must not start with a '1' or '0'");
			form1.homephone.focus();
			form1.homephone.select();
			return false;
			}
		if(document.form1.homephone.value.substring(0,3) == "900" ) {
			alert("The area code cannot be '900'");
			form1.homephone.focus();
			form1.homephone.select();
			return false;
			}
	   }
	   
	if(-1 != document.form1.workphone.value.indexOf("-")) { 
       alert("Your work phone number must not have any dashes in it."); 
	   form1.workphone.focus();
       form1.workphone.select();
       return false; 
       }
	if(-1 != document.form1.workphone.value.indexOf(".")) { 
       alert("Your work phone number must not have any periods in it."); 
	   form1.workphone.focus();
       form1.workphone.select();
       return false; 
       }	
    if(-1 != document.form1.workphone.value.indexOf("(")) { 
       alert("Your work phone number must not have any parentheses in it."); 
	   form1.workphone.focus();
       form1.workphone.select();
       return false; 
       }
	if(-1 != document.form1.workphone.value.indexOf(")")) { 
       alert("Your work phone number must not have any parentheses in it."); 
	   form1.workphone.focus();
       form1.workphone.select();
       return false; 
       }
	if(-1 != document.form1.workphone.value.indexOf(" ")) { 
       alert("Your work phone number must not have any spaces in it."); 
	   form1.workphone.focus();
       form1.workphone.select();
       return false; 
       }
	if(document.form1.workphone.value.length != 10) {
		if(document.form1.workphone.value.length > 0) {
			alert("Work phone number must ONLY contain your area code and your 7-digit number.");
			form1.workphone.focus();
			form1.workphone.select();
			return false;
	   		}
	   }
	if(document.form1.workphone.value.length == 10) {
		if(document.form1.workphone.value.charAt(0) < '2' ) {
			alert("Your area code must not start with a '1' or '0'");
			form1.workphone.focus();
			form1.workphone.select();
			return false;
			}
		if(document.form1.workphone.value.charAt(3) < '2' ) {
			alert("Your phone number prefix must not start with a '1' or '0'");
			form1.workphone.focus();
			form1.workphone.select();
			return false;
			}
		if(document.form1.workphone.value.substring(0,3) == "900" ) {
			alert("The area code cannot be '900'");
			form1.workphone.focus();
			form1.workphone.select();
			return false;
			}
	   }
	   
	if(-1 != document.form1.cellphone.value.indexOf("-")) { 
       alert("Your cell phone number must not have any dashes in it."); 
	   form1.cellphone.focus();
       form1.cellphone.select();
       return false; 
       }
	if(-1 != document.form1.cellphone.value.indexOf(".")) { 
       alert("Your cell phone number must not have any periods in it."); 
	   form1.cellphone.focus();
       form1.cellphone.select();
       return false; 
       }	
    if(-1 != document.form1.cellphone.value.indexOf("(")) { 
       alert("Your cell phone number must not have any parentheses in it."); 
	   form1.cellphone.focus();
       form1.cellphone.select();
       return false; 
       }
	if(-1 != document.form1.cellphone.value.indexOf(")")) { 
       alert("Your cell phone number must not have any parentheses in it."); 
	   form1.cellphone.focus();
       form1.cellphone.select();
       return false; 
       }
	if(-1 != document.form1.cellphone.value.indexOf(" ")) { 
       alert("Your cell phone number must not have any spaces in it."); 
	   form1.cellphone.focus();
       form1.cellphone.select();
       return false; 
       }
	if(document.form1.cellphone.value.length != 10) {
		if(document.form1.cellphone.value.length > 0) {
			alert("Cell phone number must ONLY contain your area code and your 7-digit number.");
			form1.cellphone.focus();
			form1.cellphone.select();
			return false;
	   		}
	   }
	if(document.form1.cellphone.value.length == 10) {
		if(document.form1.cellphone.value.charAt(0) < '2' ) {
			alert("Your area code must not start with a '1' or '0'");
			form1.cellphone.focus();
			form1.cellphone.select();
			return false;
			}
		if(document.form1.cellphone.value.charAt(3) < '2' ) {
			alert("Your phone number prefix must not start with a '1' or '0'");
			form1.cellphone.focus();
			form1.cellphone.select();
			return false;
			}
		if(document.form1.cellphone.value.substring(0,3) == "900" ) {
			alert("The area code cannot be '900'");
			form1.cellphone.focus();
			form1.cellphone.select();
			return false;
			}
	   }
	  
    if(document.form1.email.value == '') { 
      alert("Please enter your email."); 
      form1.email.focus();
      form1.email.select();
      return false; 
       }
	if(-1 == document.form1.email.value.indexOf("@")) { 
       alert("Your email must have a '@'."); 
	   form1.email.focus();
       form1.email.select();
       return false; 
       }
    if(-1 != document.form1.email.value.indexOf(",")) { 
       alert("Your email must not have a ',' in it"); 
       form1.email.focus();
       form1.email.select();
       return false; 
       }
    if(-1 != document.form1.email.value.indexOf("#")) { 
       alert("Your email must not have a '#' in it." ); 
       form1.email.focus();
       form1.email.select();
       return false; 
       }
    if(-1 != document.form1.email.value.indexOf("!")) { 
       alert("Your email must not have a '!' in it." ); 
       form1.email.focus();
       form1.email.select();
       return false; 
       }
    if(-1 != document.form1.email.value.indexOf(" ")) { 
       alert("Your email must not have a space in it." ); 
       form1.email.focus();
       form1.email.select();
       return false; 
       }
    if(document.form1.email.value.length == (document.form1.email.value.indexOf("@")+1) ) {
       alert("Your email must have a domain name after the '@'.");
       form1.email.focus();
       form1.email.select();
       return false;
       }
	  return true;
}
