
function form_validation()
{
	hh=document.formval;
	
	if(hh.name.value ==""){
		alert("Please enter your  name.");
		hh.name.focus();
		return false;
	}
	
	if(isNaN(hh.name.value)!= true){
			alert("Please Enter Valid  Name.");
			hh.name.focus();
			return false;
		}
	
	if(hh.email.value==""){
		alert("Please enter your email address.");
		hh.email.focus();
		return false;
	}
	if (hh.email.value.indexOf('@') == -1){
		alert("Invalid email address.");
		hh.email.focus();
		return false;
	}
	
		
		
	if (hh.email.value.indexOf('.') == -1){
		alert("Invalid email address.");
		hh.email.focus();
		return false;
	}
		
	if(hh.country.value == ""){
		alert("Please Enter Your Country Name.");
		hh.country.focus();
		return false;
	}	
	
	if(hh.txtphone.value ==""){
		alert("Please Enter Your Phone No.");
		hh.txtphone.focus();
		return false;
	}
	
	if(hh.subject.value ==""){
		alert("Please Enter purpuse of contact.");
		hh.subject.focus();
		return false;
	}

	if(hh.comments.value ==""){
		alert("Please enter message.");
		hh.comments.focus();
		return false;
	}	
	return true;
}
