function validate_contactform(NForm){
	return Validate_Name(NForm) &&
			Validate_Last(NForm) &&
			Validate_company(NForm) &&
			Validate_Email(NForm) &&
			Validate_Phone(NForm) &&
			Validate_city(NForm) &&
			Validate_country(NForm) &&
			Validate_Comment(NForm) &&
				true;
}

function Validate_Name(NForm){
 	NForm.fname.focus();
 	if(NForm.fname.value.length==0){ 
  	alert("You must enter your First Name"); 
  	return false; 
 	}else{
	  return true;
 	}
}

function Validate_Last(NForm){
 	NForm.lname.focus();
 	if(NForm.lname.value.length==0){ 
  	alert("You must enter your Last Name"); 
  	return false; 
 	}else{
	  return true;
 	}
}

function Validate_company(NForm){
 	NForm.company.focus();
 	if(NForm.company.value.length==0){ 
  	alert("You must enter Company"); 
  	return false; 
 	}else{
	  return true;
 	}
}

function Validate_city(NForm){
 	NForm.city.focus();
 	if(NForm.city.value.length==0){ 
  	alert("You must enter City"); 
  	return false; 
 	}else{
	  return true;
 	}
}

function Validate_country(NForm){
 	NForm.country.focus();
 	if(NForm.country.value.length==0){ 
  	alert("You must enter Country"); 
  	return false; 
 	}else{
	  return true;
 	}
}

function Validate_Phone(NForm){
 	NForm.phone.focus();
 	if(NForm.phone.value.length==0){ 
  	alert("You must enter Phone"); 
  	return false; 
 	}else{
	  return true;
 	}
}
function Validate_Email(NForm){
	NForm.email.focus();
	if(NForm.email.value.length==0){ 
		alert("Please enter valid EMAIL!"); 
	  return false; 
	}else{
		NForm.email.focus();
		var str = NForm.email.value;
		var reg1 = /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/; 
		var reg2 = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/;
		if (!reg1.test(str) && reg2.test(str)) {
			return true;
		}else{
			alert("Please enter valid EMAIL!");
			return false; 
		}
	  return false;
	 }
}
function Validate_Comment(NForm){
 	NForm.message.focus();
 	if(NForm.message.value.length==0){ 
  	alert("You must enter Comment"); 
  	return false; 
 	}else{
	  return true;
 	}
}
