function formCheck()

{

     var iChars = "!@#$%^&*()+=-[]\\\';,./{}|\":<>?1234567890BCDEFGHIJKLMNOPQRSTUVWXYZabdfhjknpqtwxyz";


       if (
       document.contactform.email.value.indexOf("@") == -1 ||
       document.contactform.email.value.indexOf(".") == -1 ||
           document.contactform.email.value == "") 
           
           {
            alert("Please include a proper email address.");
            contactform.email.focus();
           return false;
           }
           
        if (document.contactform.realname.value == "") 
             {
 alert("A contact name is required.");
             contactform.realname.focus();

            return false;
             }
             
             
           if (document.contactform.phone.value == "") 
            {
 alert("A daytime phone number is required. Unlisted or anonymous phone calls may not be returned.");
             contactform.phone.focus();

            return false;
             }
             
             
               if (document.contactform.vcode.value == "") 
            {
 alert("You must enter the security code to submit this form.");
             contactform.vcode.focus();

            return false;
             }
  
  
  if (document.contactform.vcode.value.length > 5) 
  
  {
          alert("Security code is too long.\n");
	  return false;
     }
     
       if (document.contactform.vcode.value.length < 5)
       
       {
          alert("Security code is too short.\n");
	  return false;
     }
     
           for (var i = 0; i < document.contactform.vcode.value.length; i++) 
           
           {
                if (iChars.indexOf(document.contactform.vcode.value.charAt(i)) != -1) 
                
                {
                alert ("The box verification code failed. \nRefresh the page and try again.\n");
                return false;
        }
        
        
                }

 }
 
 
 
 
 