function Checkrequirefield() {
   var vObj;
      
   vObj = document.form1.firstname;
   if (vObj.value == "") {
      alert("Please enter your first name.");
      vObj.focus();
      return false;
   }
   
   vObj = document.form1.lastname;
   if (vObj.value == "") {
      alert("Please enter your last name.");
      vObj.focus();
      return false;
   }
  /* 
   vObj = document.form1.title;
   if (vObj.value == "") {
      alert("Please enter your title.");
      vObj.focus();
      return false;
   }
   
   vObj = document.form1.address;
   if (vObj.value == "") {
      alert("Please enter your address.");
      vObj.focus();
      return false;
   }
   
   vObj = document.form1.city;
   if (vObj.value == "") {
      alert("Please enter your city.");
      vObj.focus();
      return false;
   }
   
   vObj = document.form1.state;
   if (vObj.value == "") {
      alert("Please enter your state.");
      vObj.focus();
      return false;
   }
   
   vObj = document.form1.zip;
   if (vObj.value == "") {
      alert("Please enter your zip code.");
      vObj.focus();
      return false;
   }
   
   vObj = document.form1.phone;
   if (vObj.value == "") {
      alert("Please enter your daytime phone number.");
      vObj.focus();
      return false;
   }
 */
 
  vObj = document.form1.email;
  if (vObj.value == "") {
     alert("We need your email address. Thank you.");
     vObj.focus();
     return false;
   }
  
  
   var ContactedOption = -1
      for (i=0; i<document.form1.interest.length; i++) {
          if (document.form1.interest[i].checked)
             ContactedOption = i;
      }
      if (ContactedOption == -1) {
         alert ("Please select the CFO, Inc. service(s) of interest.");
         document.form1.interest[0].focus();
         return false;
      }
  
      
   return true;
 }
 

function check_email(emailfield)
{ 
  vObj = emailfield;
  
  var re=/^[A-Za-z0-9_]+([.][A-Za-z0-9_\-]+)*[@][A-Za-z0-9_\-]+([.][A-Za-z0-9_\-]+)+$/;
  if (vObj.value != ""){
    if (!re.test(vObj.value))
    {
      alert("Invalid email address!");
      vObj.focus();
      vObj.select();
      return false;
    }
  }
    return true;
}
	
/*  function check_number(strng){
  var str = strng.value;	
  var re=/^[0-9]+$/;
  //strip out acceptable non-numeric characters
  if (str != ""){
    if (!re.test(str)) {
       error = "The phone number field must be numberic and no space.";
       alert (error);
       strng.focus();       
       return false;
    }
  } 

  return true;
  
}                        	
*/   

