<!--Hide
function validEmail(email) {       				 //VALIDATION OF FORM
	invalidChars = " /:,;"

	if (email == "") {							// Must be filled in
		return false
	}
	for (i=0; i<invalidChars.length; i++) {		// Check to see if it contains illegal characters
		badChar = invalidChars.charAt(i)
		if (email.indexOf(badChar,0)> -1) {
			return false
		}
	}
	atPos = email.indexOf("@",1)				// There must be one "@" symbol
	if (atPos == -1) {
		return false
	}
	if (email.indexOf("@",atPos+1) != -1) {		// And only one "@" symbol
		return false
	}
	periodPos = email.indexOf(".",atPos)
	if (periodPos == -1) {						// And at least one "." after the "@"
		return false
	}
	if (periodPos+3> email.length)	{			// Must be at least 2 characters after the "."
		return false
	}
	

return true;	

}


function valform(form){

whatContactPreference = form.Contact_Preference.selectedIndex;
whatMessageSubject = form.Message_Subject.selectedIndex;
whatContactAgent = form.Contact_Agent.selectedIndex;
 
     if (form.Full_Name.value == "") {
            alert("Please enter your full name. Thank you.");
            form.Full_Name.focus();
            return false;
            }
            
                
     if (form.Telephone_Number.value == "") {
            alert("Please enter your Telephone Number. Thank you.");
            form.Telephone_Number.focus();
            return false;
            }
             
          
    if (form.Contact_Preference.options[whatContactPreference].value == "") {
             alert("Please enter your contact preference, either by e-mail, regular phone or cell. Thank you.");
             form.Contact_Preference.focus();
             return false;
             }
             
    if (form.Contact_Agent.options[whatContactAgent].value == "") {
            alert("Please enter your the agent that you would like to contact. Thank you.");
            form.Contact_Agent.focus();
            return false;
            }
            
    if (form.Message_Subject.options[whatMessageSubject].value == "") {
             alert("Please enter the general subject that you are contacting us about. Thank you.");
             form.Message_Subject.focus();
             return false;
             }        
             
             
     if (form.Comments.value == "") {
            alert("Please enter your comments or remarks. Thank you.");
            form.Comments.focus();
            return false;
            }        
    
            
      else if (!validEmail(form.email.value)) {
	      alert("Please enter a valid e-mail address. Thank you.");
	      form.email.focus();
	      return false;
	  		
              }
             
  }   
  
//End Hide-->

