         
function order()
{
	because=document.form1.because;
	if(because.value=="") 
	{
		alert("Enter the because");
		because.focus();
		return false;
	}
		mean=document.form1.mean;
	if(mean.value=="")
	{
		alert("Enter the To me it means that");
		mean.focus();
		return false;
	}
	
	it=document.form1.it;
	if(it.value=="")
	{
		alert("Enter the It is important to me because");
		it.focus();
		return false;
	}
	
	be=document.form1.be;
	if(be.value=="")
	{
		alert("Enter the If I do not have it the consequences will be ");
		be.focus();
		return false;
	}
	
	worries=document.form1.worries;
	if(worries.value=="")
	{
		alert("Enter the This worries me because");
		worries.focus();
		return false;
	}
	
	first=document.form1.first;
	if(first.value=="") 
	{
		alert("Enter the First Name");
		first.focus();
		return false;
	}
	
	last=document.form1.last;
	if(last.value=="") 
	{
		alert("Enter the Last Name");
		last.focus();
		return false;
	}
	
	address=document.form1.address;
	if(address.value=="") 
	{
		alert("Enter the Address");
		address.focus();
		return false;
	}
	
	city=document.form1.city;
	if(city.value=="") 
	{
		alert("Enter the City");
		city.focus();
		return false;
	}
	
	state=document.form1.state;
	if(state.value=="") 
	{
		alert("Enter the State");
		state.focus();
		return false;
	}
	
	state=document.form1.state;
	if(state.value=="") 
	{
		alert("Enter the State");
		state.focus();
		return false;
	}
	
	zip=document.form1.zip;
	if(zip.value=="") 
	{
		alert("Enter the Zip");
		zip.focus();
		return false;
	}
	
	phone=document.form1.phone;
	if(phone.value=="") 
	{
		alert("Enter the Phone");
		phone.focus();
		return false;
	}
	
	calls=document.form1.calls;
	if(calls.value=="") 
	{
		alert("Enter the What is the best time call you?");
		calls.focus();
		return false;
	}
	
	email=document.form1.email;
	if(email.value=="") 
	{
		alert("Enter the Email");
		email.focus();
		return false;
	}
	
		email=document.form1.email;
	 if (!validateEmail(document.form1.email.value,1,1)) 
	 	{
		 document.form1.email.focus();
		 return false;
		 }
	
	function validateEmail(addr,man,db) {
	if (addr == '' && man) {
	   if (db) alert('Email address is mandatory');
	   return false;
	}
	var invalidChars = '\/\'\\ ";:?!()[]\{\}^|';
	for (i=0; i<invalidChars.length; i++) {
	   if (addr.indexOf(invalidChars.charAt(i),0) > -1) {
		  if (db) alert('Email address contains invalid characters');
		  return false;
	   }
	}
	for (i=0; i<addr.length; i++) {
	   if (addr.charCodeAt(i)>127) {
		  if (db) alert("Email address contains non ascii characters.");
		  return false;
	   }
	}
	var atPos = addr.indexOf('@',0);
	if (atPos == -1) {
	   if (db) alert('Email address must contain an @');
	   return false;
	}
	if (atPos == 0) {
	   if (db) alert('Email address must not start with @');
	   return false;
	}
	if (addr.indexOf('@', atPos + 1) > - 1) {
	   if (db) alert('Email address must contain only one @');
	   return false;
	}
	if (addr.indexOf('.', atPos) == -1) {
	   if (db) alert('Email address must contain a period in the domain name');
	   return false;
	}
	if (addr.indexOf('@.',0) != -1) {
	   if (db) alert('period must not immediately follow @ in email address');
	   return false;
	}
	if (addr.indexOf('.@',0) != -1){
	   if (db) alert('period must not immediately precede @ in email address');
	   return false;
	}
	if (addr.indexOf('..',0) != -1) {
	   if (db) alert('two periods must not be adjacent in email address');
	   return false;
	}
	var suffix = addr.substring(addr.lastIndexOf('.')+1);
	if (suffix.length != 2 && suffix != 'com' && suffix != 'net' && suffix != 'org' && suffix != 'edu' && suffix != 'int' && suffix != 'mil' && suffix != 'gov' & suffix != 'arpa' && suffix != 'biz' && suffix != 'aero' && suffix != 'name' && suffix != 'coop' && suffix != 'info' && suffix != 'pro' && suffix != 'museum') {
	   if (db) alert('invalid primary domain in email address');
	   return false;
	}
return true;
}

	
	
}
