function check(){
	          if(name())
	          if(address())
	          if(city())
	          if(state())
			  if(zipcode())
	          if(phone())
	          if(email())
              if(validemail())
			  document.provenway.submit()
}
function name(){
if(document.provenway.name.value==""){
alert("Name Must be Filled")
document.provenway.name.focus()
return 0;
} 
return 1;
}	
function address(){
if(document.provenway.address.value==""){
alert("Address Must be Filled")
document.provenway.address.focus()
return 0;
} 
return 1;
}
function city(){
if(document.provenway.city.value==""){
alert("City Must be filled")
document.provenway.city.focus()
return 0;
} 
return 1;
}	
function state(){
if(document.provenway.state.value=="select"){
alert("Please choose your state")
document.provenway.state.focus()
return 0;
} 
return 1;
}
function zipcode(){
if(document.provenway.zipcode.value==""){
alert("Zip Code Must be Filled")
document.provenway.zipcode.focus()
return 0;
} 
return 1;
}	
function phone(){
if(document.provenway.phone.value==""){
alert("Phone Must be filled")
document.provenway.phone.focus()
return 0;
} 
return 1;
}	
function email(){
if(document.provenway.email.value==""){
alert("Email Must be Filled")
document.provenway.email.focus()
return 0;
} 
return 1;
}
function validemail(){
ak=document.provenway.email.value.indexOf("@");
tt=document.provenway.email.value.indexOf(".");
if (ak==0||tt==0||ak==-1||tt==-1||tt==ak+1)
{
 alert ("Email Must be filled with name@domain.com");
 document.provenway.email.focus();
 return 0;
}
return 1;
}
