function validatetechnicalform(){
var mail = document.technicalform.email;
var phone = document.technicalform.phone;
var prod1 = document.technicalform.prod;
var lot1 = document.technicalform.lot;
var illegal = /[\(\)\<\>\'\,\;\:\\\"\[\]]/; 
var check = "";
var valid = 1;
var GoodChars = "0123456789()-+ ";
var i = 0;
var prodchars = "0123456789-";
var lotchars = "0123456789-";

if(""==document.technicalform.firstname.value)
{
alert("Please enter your first name.");
document.technicalform.firstname.focus();
return false;
}

if(""==document.technicalform.lastname.value)
    {
        window.alert("Please enter your last name.");
        document.technicalform.lastname.focus();
        return false;
    }

if(""==document.technicalform.institution.value)
    {
        window.alert("Please enter your institution.");
        document.technicalform.institution.focus();
        return false;
    }
	
if(""==document.technicalform.address.value)
    {
        window.alert("Please enter your address.");
        document.technicalform.address.focus();
        return false;
    }
	
if(""==document.technicalform.city.value)
    {
        window.alert("Please enter your city.");
        document.technicalform.city.focus();
        return false;
    }
	
  if(""==document.technicalform.state.value)  
    {
        window.alert("Please enter your state.");
        document.technicalform.state.focus();
        return false;
    }

if(""==document.technicalform.zip.value)
    {
        window.alert("Please enter your zip or postal code.");
        document.technicalform.zip.focus();
        return false;
    }

if(""==document.technicalform.phone.value)
    {
        window.alert("Please enter your telephone number.");
        document.technicalform.phone.focus();
        return false;
    } 
 
if (""==document.technicalform.phone.value) 
{
		// Return false if number is empty
		valid = 0
	}
	for (i =0; i <= phone.value.length -1; i++) {
		if (GoodChars.indexOf(phone.value.charAt(i)) == -1) {

window.alert(phone.value.charAt(i) + " is not a valid Telephone character. Use numbers - + or ().");
   document.technicalform.phone.focus();
   valid = 0
        return false;
    }
	}
	
if(mail.value.match(illegal)) 
	  { 
       window.alert("Your email address contains illegal characters.");
       document.technicalform.email.focus();    
       return false; 
       }
  
  
if(-1 != document.technicalform.email.value.indexOf(" "))
	 { 
       document.technicalform.email.focus(); 
       alert("Your email must not have an space in it." ); 
       return false; 
       }

if(-1 != document.technicalform.email.value.indexOf("!"))
	 { 
       document.technicalform.email.focus(); 
       alert("Your Email address must not have an exclamation point in it." ); 
       return false; 
       }	
	
if (mail.value == "")
    {
        window.alert("Please enter a valid E-mail address.");
        document.technicalform.email.focus();
        return false;
    }
	
	
	
if (mail.value.indexOf("@", 0) < 0)
    {
        window.alert("Please enter a valid E-mail address.");
        document.technicalform.email.focus();
        return false;
    }

if (mail.value.indexOf(".", 0) < 0)
    {
        window.alert("Please enter a valid E-mail address.");
        document.technicalform.email.focus();
        return false;
    }

if(""==document.technicalform.prod.value)
    {
        window.alert("Please enter your product number.");
        document.technicalform.prod.focus();
        return false;
    } 	

		if (""==document.technicalform.prod.value) 
{

		valid = 0
	}
	for (i =0; i <= prod1.value.length -1; i++) {
		if (prodchars.indexOf(prod1.value.charAt(i)) == -1) {
window.alert(prod1.value.charAt(i) + " is not a valid Product character. Use numbers and - .");
   document.technicalform.prod.focus();
   valid = 0
        return false;
    }
	}


if(""==document.technicalform.problem.value)
    {
        window.alert("Please enter your product inquiry.");
        document.technicalform.problem.focus();
        return false;

    }
	

}