 // JavaScript Document
function ff1()
{
		if(document.f1.name.value=="")
	{
		alert("Enter the Company Name!");
		document.f1.name.focus();
		return false;
	}
	if(document.f1.select.value=="")
	{
		alert("Select the Area Name !");
		document.f1.select.focus();
		return false;
	}
	if(document.f1.address.value=="")
	{
		alert("Enter the Address!");
		document.f1.address.focus();
		return false;
	}
	if(document.f1.city.value=="")
	{
		alert("Enter the City!");
		document.f1.city.focus();
		return false;
	}
	if(document.f1.select1.value=="")
	{
		alert("Select the Pin Code !");
		document.f1.select1.focus();
		return false;
	}
	
	if(document.f1.phone.value=="")
	{
		alert("Enter the Phone No!");
		document.f1.phone.focus();
		return false;
	}
	var a=document.f1.phone.value;
	if(isNaN(a))
	{
		alert("Enter No only!");
		document.f1.phone.select();
		document.f1.phone.focus();
		return false;
	}
	if(document.f1.mobile.value=="")
	{
		alert("Enter the Mobile No!");
		document.f1.mobile.focus();
		return false;
	}
	var a=document.f1.mobile.value;
	if(isNaN(a))
	{
		alert("Enter No only!");
		document.f1.mobile.select();
		document.f1.mobile.focus();
		return false;
	}
	if(document.f1.email.value=="")
	{
		alert("pleas Enter your Email_Id");
		document.f1.email.focus();
		return false;
	}
		var name=new RegExp("^[a-z0-9][a-z0-9_.]*[@]{1,1}[a-z0-9]+[.]{1,1}[a-z0-9]+", "i")
		n=document.f1.email.value;
	if(!(name.test(n)))
	{
		alert("Enter the Correct Email_Id");
		document.f1.email.select();
		document.f1.email.focus();
		return false;
	}
	
	if(document.f1.web.value=="")
	{
		alert("Enter the Web Site!");
		document.f1.web.focus();
		return false;
	}
	if(document.f1.contact.value=="")
	{
		alert("Enter the Contact Person !");
		document.f1.contact.focus();
		return false;
	}
	if(document.f1.des.value=="")
	{
		alert("Enter the Designation!");
		document.f1.des.focus();
		return false;
	}
	
	
}

function val()
{
	
	if(document.f1.name.value=="")
	{
		alert("Enter the company name to search!");
		document.f1.name.focus();
		return false;
	}
	var c=document.f1.name.value;
	var e=c.length;
	if(e<3){
		alert("Enter minimum three charecters!");
		document.f1.name.focus();		
		return false;
	}
		
}
function val1()
{
	if(document.f1.select.value=="")
	{
		alert("Select the Area Name to search!");
		document.f1.select.focus();
		return false;
	}
}

