/*Array ( ) */ function doSearchHome() { // fade in activity gif $("#ajaxBlue").fadeIn(); // the updatable div and option values $("#propChoice").get(0).disabled = true; $("#resortChoice").get(0).disabled = true; u = $("#searchHome").get(0); resC = document.getElementById("resortChoice"); propC = document.getElementById("propChoice"); type = "home"; var url="/include/getFields.php"; resC; rC = resC.value; pC = propC.value; url = url+"?rC="+rC+"&pC="+pC+"&l=en&search="+type; $.get(url, function(data){ // update the selection area with the return from the script u.innerHTML = data; // fade out activity gif $("#ajaxBlue").fadeOut(); }); } var fromLoc; function doSearchRes(){ type = "resales"; var url="/include/getFields.php"; $("#propChoice").get(0).disabled = true; $("#resortChoice").get(0).disabled = true; $("#priceChoice").get(0).disabled = true; $("#bedChoice").get(0).disabled = true; $("#orderChoice").get(0).disabled = true; // fade in activity gif $("#ajaxBlue").fadeIn(); // the updatable div and option values u = $("#searchHome").get(0); resC = document.getElementById("resortChoice"); propC = document.getElementById("propChoice"); bedC = document.getElementById("bedChoice"); priceC = document.getElementById("priceChoice"); orderC = document.getElementById("orderChoice"); var url="/include/getFields.php"; url = url+"?search=resales&rC="+resC.value+"&pC="+propC.value+"&l=en"; url = url + "&bC=" + bedC.value + "&prC=" + priceC.value + "&oC=" + orderC.value; $.get(url, function(data){ // update the selection area with the return from the script u.innerHTML = data; var detailR = detailR || false; if(!detailR){ getResults(); } // fade out activity gif $("#ajaxBlue").fadeOut(); }); } function getResults(){ var detailR = detailR || false; if(detailR){ window.location="/en/properties/resales" ; } type = "resales"; // fade in activity gif $("#ajaxBlue").fadeIn(); // the updatable div and option values u = $("#contents #resaleArea").get(0); resC = document.getElementById("resortChoice"); propC = document.getElementById("propChoice"); bedC = document.getElementById("bedChoice"); priceC = document.getElementById("priceChoice"); orderC = document.getElementById("orderChoice"); var url="/include/getResults.php"; url = url+"?search=resales&rC="+resC.value+"&pC="+propC.value+"&l=en"; url = url + "&bC=" + bedC.value + "&prC=" + priceC.value + "&oC=" + orderC.value; $.get(url, function(data){ // update the selection area with the return from the script u.innerHTML = data; // fade out activity gif $("#ajaxBlue").fadeOut(); }); }