// JavaScript Document

//script for contact page
function validate() {
     if (document.contactform.fullname.value == "")
		{
		alert ("Please enter your name.")
		return false
		}
	if (document.contactform.message.value == "")
		{
		alert ("Please enter a message.")
		return false
		}
	if(document.contactform.email.value.length == 0) { 
      document.contactform.email.focus(); 
      alert("Please enter your email."); 
      return false; 
      }
	  
	if(-1 == document.contactform.email.value.indexOf("@")) { 
       document.contactform.email.focus(); 
       alert("Your email must have a '@'."); 
       return false; 
       }
    if(-1 != document.contactform.email.value.indexOf(",")) { 
       document.contactform.email.focus(); 
       alert("Your email must not have a ',' in it"); 
       return false; 
       }
    if(-1 != document.contactform.email.value.indexOf("#")) { 
       document.contactform.email.focus(); 
       alert("Your email must not have an '#' in it." ); 
       return false; 
       }
    if(-1 != document.contactform.email.value.indexOf("!")) { 
       document.contactform.email.focus(); 
       alert("Your email must not have a '!' in it." ); 
       return false; 
       }
    if(-1 != document.contactform.email.value.indexOf(" ")) { 
       document.contactform.email.focus(); 
       alert("Your email must not have a space in it." ); 
       return false; 
       }
    if(document.contactform.email.value.length == (document.jsform.email.value.indexOf("@")+1) ) {
       document.contactform.email.focus();
       alert("Your email must have a domain name after the '@'.");
       return false;
       }
    return true;
  }
  
// script for brochure request page  
  function validate() {
     if (document.jsform.fullname.value == "")
		{
		alert ("Please enter your name.")
		return false
		}
	if (document.jsform.message.value == "")
		{
		alert ("Please enter a message.")
		return false
		}
	if(document.jsform.email.value.length == 0) { 
      document.jsform.email.focus(); 
      alert("Please enter your email."); 
      return false; 
      }
	  
	if(-1 == document.jsform.email.value.indexOf("@")) { 
       document.jsform.email.focus(); 
       alert("Your email must have a '@'."); 
       return false; 
       }
    if(-1 != document.jsform.email.value.indexOf(",")) { 
       document.jsform.email.focus(); 
       alert("Your email must not have a ',' in it"); 
       return false; 
       }
    if(-1 != document.jsform.email.value.indexOf("#")) { 
       document.jsform.email.focus(); 
       alert("Your email must not have an '#' in it." ); 
       return false; 
       }
    if(-1 != document.jsform.email.value.indexOf("!")) { 
       document.jsform.email.focus(); 
       alert("Your email must not have a '!' in it." ); 
       return false; 
       }
    if(-1 != document.jsform.email.value.indexOf(" ")) { 
       document.jsform.email.focus(); 
       alert("Your email must not have a space in it." ); 
       return false; 
       }
    if(document.jsform.email.value.length == (document.jsform.email.value.indexOf("@")+1) ) {
       document.jsform.email.focus();
       alert("Your email must have a domain name after the '@'.");
       return false;
       }
    
	
    return true;
  }

//-->