  function isEmail(str) {
		var at="@" ;
		var dot="." ;
		var lat=str.indexOf(at) ;
		var lstr=str.length  ;
		var ldot=str.indexOf(dot)  ;
		
		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   return false ;
		}
		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)== lstr ){
		    return false  ;
		}
		if (str.indexOf(at,(lat+1))!=-1){
		    return false  ;
		}

		if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    return false  ;
		}

		if (str.indexOf(dot,(lat+2))==-1){
		    return false  ;
		}
		
		if (str.indexOf(" ")!=-1){
		    return false ;
		}

		if (str.indexOf(" ") >= 0){
		    return false ;
		}
 		return true ;					
	}
  
  function validateSubmit()
  	{	
  		var need = document.webcontactform.need;
		  		
		if(need=="" || need==null) {
		  	alert("Please select a need")
		  	return false
  		}
                
		var needdetails = document.webcontactform.needdetails.value
              	if (needdetails=="" || needdetails==null) {
                	document.webcontactform.needdetails.focus()
                	alert("Please enter additonal details about your intended purchase, customer service, or information need.")
                	return false
                }
                
  		var name =document.webcontactform.FirstName.value
  		var name2 =document.webcontactform.LastName.value
  		
  		if(name=="" || name==null || name2=="" || name2==null) {
  			document.webcontactform.FirstName.focus()
  			alert("Please enter your first and last names")
  			return false
  		}
  		
  		var add = document.webcontactform.Address.value 
  		if(add=="" || add==null) {
  			document.webcontactform.Address.focus()
  			alert("Please enter your Address ")
  			return false
  		}
  		
  		var city =document.webcontactform.City.value
  		if(city=="" || city==null) {
  			document.webcontactform.City.focus()
  			alert("Please enter your City")
  			return false
  		}
  		
  		var state =document.webcontactform.State.value 
  		if(state=="" || state==null) {
  			document.webcontactform.State.focus()
  			alert("Please enter your State ")
  			return false
  		}
  		
  		var zip =document.webcontactform.Zip.value 
  		if(zip=="" || zip==null) {
  			document.webcontactform.Zip.focus()
  			alert("Please enter your Zipcode")
  			return false
  		}
  		
  		var country =document.webcontactform.Country.options[document.webcontactform.Country.selectedIndex].value
  		if(country=="" || country==null || country =="Please select") {
  			document.webcontactform.Country.focus()
  			alert("Please Select your Country ")
  			return false
  		}
  		
		var eml = document.webcontactform.Email.value
		   		
		if(!isEmail(eml)) {
			alert("Please enter a valid Email Address")
		  	document.webcontactform.Email.focus()
		  	return false
  		}
				
		var industry =document.webcontactform.Industry.options[document.webcontactform.Industry.selectedIndex].value
  		if(industry=="" || industry==null || country =="Please select") {
  			document.webcontactform.Industry.focus()
  			alert("Please Select your Industry ")
  			return false
  		}
  	} 

function refresh()
{
	document.webcontactform.reset();
}