//<!--


function checkForm(f2)
{

	if (f2.Company.value == ""){
	alert( "Please enter a Company" );
	f2.Company.focus();
	return false ;
	}

	if (f2.Telephone.value == ""){
	alert( "Please enter a Telephone No." );
	f2.Telephone.focus();
	return false ;
	}
	
	if (f2.country.value == ""){
	alert( "Please enter a Country" );
	f2.country.focus();
	return false ;
	}
	
	if(f2.email.value == "" ) {
	alert("Kindly enter your E-mail ID.");
	f2.email.focus();
	return false;
    }
	if (f2.email.value.length != 0){ 
		var e_check  = f2.email.value;
		if(f2.email.value.indexOf(" ") != -1)	{
			alert("Kindly enter correct E-Mail ID without any spaces in it.");
			f2.email.focus(); 
			return false;
		}

		if(f2.email.value.indexOf("@") == -1)	{
		alert("Invalid E-Mail ID! Kindly enter correct E-Mail ID.");
		f2.email.focus(); 
		return false;
		}
	   	validarr = f2.email.value.split("@");
	   	if(validarr[0].length==0) {
	   		alert("Invalid E-Mail ID! Kindly enter the correct E-mail ID.");
	   		f2.email.focus(); 
	   	return false;
   		}
	  	if(validarr[1].indexOf("@") >=0) {
		   	alert("Invalid E-Mail ID! Kindly enter the correct E-mail ID.");
		   	f2.email.focus(); 
	   	return false;
	   	}
	   	if(validarr[1].length==0) {
		   	alert("Invalid E-Mail ID! Kindly enter the correct E-mail ID.");
		   	f2.email.focus(); 
		   	return false;
	   	}
	   	if(validarr[1].length != 0){ 
			if(validarr[1].indexOf(".") == -1){
				alert("Invalid E-Mail ID! Kindly enter the correct E-mail ID.");
				f2.email.focus(); 
				return false;
			}
			validemail = validarr[1].split(".");
		   if(validemail[0].length==0){ 
			 alert("Invalid E-Mail ID! Kindly enter the correct E-mail ID.");
			 f2.email.focus(); 
			 return false;
			}
			if(validemail[1].length==0){
				alert("Invalid E-Mail ID! Kindly enter the correct E-mail ID.");
				f2.email.focus(); 
				return false;
			}
		  }
	   }

	 return true;
}

//-->

