<!--///*function checkNull() {	var illegalNull = 0;	for (n=0; n < document.form_cont.elements.length; n++) {		if (document.form_cont.elements[n].name != 'address_2' && 		   (document.form_cont.elements[n].value == "" || 			document.form_cont.elements[n].value == null || 			document.form_cont.elements[n].value == -1 || 			document.form_cont.elements[n].value == -2)) {			illegalNull = n;			nameNull = document.form_cont.elements[n].name;		}	}	if (illegalNull > 0) {		alert("You have not filled out the required fields");		return false;	} else {		return true;	}}*/function checkNull() {	var illegalNull = 0;	for (n=0; n < document.form_cont.elements.length; n++) {		if (document.form_cont.elements[n].name == 'email' && document.form_cont.elements[n].value == "") {			illegalNull = 1;		}	}	if (illegalNull > 0) {		alert("You have not filled out the required fields");		return false;	} else {		return true;	}}function clearChecked() {	for (xx=0; xx < document.form_cont.elements.length; xx++) {		if (document.form_cont.elements[xx].type == 'checkbox' | document.form_cont.elements[xx].type == 'radio') {			document.form_cont.elements[xx].checked = false;		}	}	document.form_cont.brsHide.value = "none";	document.form_cont.ptypHide.value = "none";}function checkCheck() {	var propertyType = document.form_cont.ptypHide.value;	var brsValue = document.form_cont.brsHide.value;	//Check to make sure a buy/rent/sell is selected	if (brsValue == "none") {		alert("Please select what you are interested in first.");		clearChecked();	} else {		//Selling price are same as buying prices		//no need for a new array, just set selling to		//buying prices.		if (brsValue == 2) {			brsValue = 0;		} else if (brsValue == 3) {			brsValue = 1;		} 		//Checks to make sure only rentable propertyTypes can		//be selected. ei... Hotels can not be rented. So this		//is an invalid choice. Selections will be cleared		//and specific form items reset		if (propertyType > 1 && brsValue == 1) {			alert("You can not Rent those types of properties.");			//Unchecks radio buttons			clearChecked();		} else {			//if all goes well we will not build the price range			//pulldown			if (propertyType != "none") {				if (brsValue == 0) {					buildSelect(document.form_cont.sear_range, buypriceArray, propertyType); 				} else {					buildSelect(document.form_cont.sear_range, rentpriceArray, propertyType); 				}			}				}	}}function setBrsValue(whichRadio) {	document.form_cont.brsHide.value = eval(whichRadio.value);}function setPtypValue(whichRadio) {	document.form_cont.ptypHide.value = eval(whichRadio.value);}function regiCheck(currentSelect) {	if (currentSelect.options.value == -1 || currentSelect.value == -1) {		alert("You must select a Sub Region, the main Region will be automatically applied.");		for (i = 0; i < document.form_cont.sear_regi.options.length; i++) {			document.form_cont.sear_regi.options[i].selected = false; 		}		document.form_cont.sear_regi.options[0].selected = true;	}}function refreshRange(thisSelect) {	if (thisSelect.options.value == -2 || thisSelect.value == -2) {		checkCheck();	}}//-->