var cityarea = 'City:
'; var community = 'Community:
'; var price_prop_bed = 'Price Range:
Property Type:
Beds & Baths:
'; var formstart = '
'; function changeDiv(divname) { document.getElementById('tdCity').style.backgroundColor='#000000'; document.getElementById('tdCity').style.borderBottom='1px #cabeb9 solid'; document.getElementById('tdCom').style.backgroundColor='#000000'; document.getElementById('tdCom').style.borderBottom='1px #cabeb9 solid'; document.getElementById('tdSub').style.backgroundColor='#000000'; document.getElementById('tdSub').style.borderBottom='1px #cabeb9 solid'; document.getElementById('tdMLS').style.backgroundColor='#000000'; document.getElementById('tdMLS').style.borderBottom='1px #cabeb9 solid'; document.getElementById('tdStreet').style.backgroundColor='#000000'; document.getElementById('tdStreet').style.borderBottom='1px #cabeb9 solid'; document.getElementById('tdZip').style.backgroundColor='#000000'; document.getElementById('tdZip').style.borderBottom='1px #cabeb9 solid'; document.getElementById(divname).style.backgroundColor=''; document.getElementById(divname).style.borderBottom=''; if (divname == 'tdCity') { document.getElementById('quicksearch').innerHTML=formstart+cityarea+price_prop_bed; } else if(divname == 'tdCom') { document.getElementById('quicksearch').innerHTML=formstart+community+price_prop_bed; } else if(divname == 'tdStreet') { document.getElementById('quicksearch').innerHTML=formstart+'Address
'+price_prop_bed; } else if(divname == 'tdSub') { document.getElementById('quicksearch').innerHTML=formstart+'Subdivision(s) (separate by commas)
'+price_prop_bed; } else if(divname == 'tdMLS') { document.getElementById('quicksearch').innerHTML=formstart+'MLS #

MLS #

MLS #

MLS #
'; } else if(divname == 'tdZip') { document.getElementById('quicksearch').innerHTML=formstart+'Zip Code(s) (separate by commas)
'+price_prop_bed; } } function popWishList(pars) { //alert('request made'); http_request2 = false; if (window.XMLHttpRequest) { http_request2 = new XMLHttpRequest(); if (http_request2.overrideMimeType) { http_request2.overrideMimeType('text/xml'); } } else if (window.ActiveXObject) { try { http_request2 = new ActiveXObject('Msxml2.XMLHTTP'); } catch (e) { try { http_request2 = new ActiveXObject('Microsoft.XMLHTTP'); } catch (e) {} } } if (!http_request2) { alert('Cannot create XMLHTTP instance'); return false; } else { http_request2.open('GET', '/wishlist.php' + '?' + pars , true); http_request2.onreadystatechange = showResponse; http_request2.send(null); } //alert('request coming'); } function showResponse () { //alert('request here'); if (http_request2.readyState == 4) { //alert('good - '+http_request2.status); if (http_request2.status == 200) { //alert(http_request2.responseText); if (http_request2.responseText) { //alert(http_request2.responseText); document.getElementById('wishlist').innerHTML = http_request2.responseText; //document.getElementById('wishlist').style.visibility = "visible"; //document.getElementById('wishlist2').style.visibility = "block"; } else { //document.getElementById('wishlist').innerHTML = ""; //document.getElementById('wishlist2').style.display = "none"; //document.getElementById('wishlist').style.visibility = "hidden"; } } else { //alert('request processing1'); } } else { //alert('bad - '+http_request2.readyState); } }