// JavaScript Document
<!--
editabile=false; 
function  CheckForm_property() {
//Var
    var title = document.frmEnquiry_property.strtitle_property.value;
	var name = document.frmEnquiry_property.strfname_property.value;
	var surname = document.frmEnquiry_property.strsname_property.value;
	var tel = document.frmEnquiry_property.strtel_property.value;
	var email = document.frmEnquiry_property.stremail_property.value;
	var premises = document.frmEnquiry_property.strpremises.value;
	var address_property = document.frmEnquiry_property.strAdd_property.value;
	var general = document.frmEnquiry_property.strGeneral.value;
	var rent = document.frmEnquiry_property.strRent.value;
	var type = document.frmEnquiry_property.strTyp.value;
	//email
	 var email_reg_exp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;
	
	//NAME + SURNAME CHECK
	 var char_exp = /^([a-zA-Z\])+\(([a-zA-Z\]{2,})+\)+([a-zA-Z]{2,})+$/;
	 
	send=true;
	//control title
	if ((title == "") || (title == "undefined")) {
	alert("Title owner is mandatory");
	document.frmEnquiry_property.strtitle_property.focus();
	send=false;
	return send;
	}
	//control name
	if ((name == "") || (name == "undefined")) {
	alert("First name of owner is mandatory");
	document.frmEnquiry_property.strfname_property.focus();
	send=false;
	return send;
	}
	
	// CONTROL LENGHT OF NAME
	if (!char_exp.test(name) || (name == "undefined"))  
				{
				alert ("Please enter a First name using CHARACTERS only with no spacing","");
				document.frmEnquiry_property.strfname_property.focus();
		send=false;
	return send;
		}
	//control surname
	if ((surname == "") || (surname == "undefined")) {
		alert("Last name of owner is mandatory");
		document.frmEnquiry_property.strsname_property.focus();
		send=false;
	return send;
		}
		
	// CONTROL LENGHT OF SURNAME
	if (!char_exp.test(surname) || (surname == "undefined"))  
				{
				alert ("Please enter a Last name using CHARACTERS only with no spacing","");
				document.frmEnquiry_property.strsname_property.focus();
		send=false;
	return send;
		}	
		//control tel
		if((tel == "") || (tel == "undefined")) {
		alert("Please enter a telephone number");
		document.frmEnquiry_property.strtel_property.focus();
		send=false;
	return send;
		}
	if ((tel != "") && ((isNaN(tel))|| (tel == "undefined")))  {
		alert("Please enter numbers ONLY");
		document.frmEnquiry_property.strtel_property.value = "";
		document.frmEnquiry_property.strtel_property.focus();
		send=false;
	return send;
		}
	//Control email
		if((email== "")|| (email == "undefined")) {
		alert("Please enter an email address");
		document.frmEnquiry_property.stremail_property.select();
			send=false;
	return send;
	}
	if((email != "") && (!email_reg_exp.test(email) || (email == "undefined"))) {
		alert("Please enter a valid email address");
		document.frmEnquiry_property.stremail_property.select();
			send=false;
	return send;
			}
		//Control Premises Trading
	if((premises == "") || (premises == "undefined")) {
		alert("Please enter Premises trading");
		document.frmEnquiry_property.strpremises.focus();
		send=false;
	return send;
		}
		//Control Address of property
	if((address_property == "") || (address_property == "undefined")) {
		alert("Please enter the address of property");
		document.frmEnquiry_property.strAdd_property.focus();
		send=false;
	return send;
		}
		//Control General information
	if((general == "") || (general == "undefined")) {
		alert("Please enter General information");
		document.frmEnquiry_property.strGeneral.focus();
		send=false;
	return send;
		}
		//Control  Rent amount
	if((rent  == "") || (rent  == "undefined")) {
		alert("Please enter the Rent amount");
		document.frmEnquiry_property.strRent.focus();
		send=false;
	return send;
		}
		if ((rent != "") && ((isNaN(rent))|| (rent == "undefined")))  {
		alert("Please enter numbers ONLY");
		document.frmEnquiry_property.strRent.value = "";
		document.frmEnquiry_property.strRent.focus();
		send=false;
	return send;
		}
		//Control Type of property
	if((type  == "") || (type  == "undefined")) {
		alert("Please enter the type of property");
		document.frmEnquiry_property.strTyp.focus();
		send=false;
	return send;
		}
	}//end function
	//-->