function frmSearch_jsValidate() {
  bout = true;
  try {
    sErrors = '';
    txtPurchaseMax = document.getElementById('frmSearch_purchasemax');
    txtPlace = document.getElementById('frmSearch_place');
    txtBedroomMin = document.getElementById('frmSearch_bedroommin');
    cmbPropertyType = document.getElementById('frmSearch_propertytype');
    cmbDeveloper = document.getElementById('frmSearch_developer');

    if (txtPurchaseMax.value.length>0) {
      sMaxPrice = txtPurchaseMax.value.replace(/[^\d]*/ig,'');
      if (!isNaN(sMaxPrice)) {
        if (sMaxPrice<10000) {sErrors += '\nPlease enter a value of more than £10,000 for maximum price';}
      }else{
        sErrors += '\nPlease enter a value in Pounds for maximum price';
      }
    }

    if (txtPlace.value.length == 0 && cmbPropertyType.value == 0 && cmbDeveloper.value == 0 && txtPurchaseMax.value.length == 0) {sErrors += '\nPlease enter a location';}

    if (sErrors.length>0) {alert(sErrors); bout = false;}
  }catch (e) {
    // error occurred
    bout = true;
    //alert('Error: '+e.message);
  }
  return bout;
}