function Validate(form)
{
	v1=form.lname
	if(isblank(v1)==false) 
	{
	alert("Last name cannot be blank.");
	v1.focus(); 
	return false;
	}
	
	v1=form.fname
	if(isblank(v1)==false) 
	{
	alert("First name cannot be blank.");
	v1.focus(); 
	return false;
	}
	
		
	v1=form.email
	if(isblank(v1)==false) 
	{
	alert("E-mail cannot be blank.");
	v1.focus(); 
	return false;
	}

	if(isEmail(v1)==false) 
	{
	alert("The email \""+ v1.value+" \"is not valid email");
	v1.focus(); 
	return false;
	}
		
	//v1=form.address
	if(isblank(v1)==false) 
	{
	alert("Address cannot be blank.");
	v1.focus(); 
	return false;
	}
	
		v1=form.country
	if(isblank(v1)==false) 
	{
	alert("Country cannot be blank.");
	v1.focus(); 
	return false;
	}

   v1=form.wphone
	if(isblank(v1)==false) 
	{
	alert("Work phone no. cannot be blank.");
	v1.focus(); 
	return false;
	}
	if(isNaN(form.wphone.value)==true)
	{ 
	alert("Please enter numerics value for phone!");
	return false;	
	}
	
	   v1=form.hphone
	if(isblank(v1)==false) 
	{
	alert("Home phone no. cannot be blank.");
	v1.focus(); 
	return false;
	}
	if(isNaN(form.hphone.value)==true)
	{ 
	alert("Please enter numerics value for phone!");
	return false;	
	}
	
	   v1=form.cphone
	if(isblank(v1)==false) 
	{
	alert("Cell phone no. cannot be blank.");
	v1.focus(); 
	return false;
	}
	if(isNaN(form.cphone.value)==true)
	{ 
	alert("Please enter numerics value for phone!");
	return false;	
	}
	
	//v1=form.people
//	if(isblank(v1)==false) 
//	{
	//alert("No of people Can not be Blank");
	//v1.focus(); 
	//return false;
//	}
//	if(isNaN(form.people.value)==true)
//	{ 
//	alert("Please enter numerics value for Year!");
//	return false;	
//	}
	
//v1=form.ftype
	//	if(isblank(v1)==false) 
//	{
	//	alert("Flight Type Can not be Blank");
		//v1.focus(); 
//	return false;
	//}
	
function isblank(s3) 
{
	if (s3.value == "") 
	{
	return false;
	}
else 
	{
	return true;
   }
}

function isEmail(s2) 
{
	if ((s2.value == "" || s2.value.indexOf('@', 0) == -1) || s2.value.indexOf('.')<5) {
	return false;
}

else {
	return true;
   }
}
}
