function tracker(tpid) { var newWindow; var pageName = "/tracker?log="+tpid; newWindow = window.open(pageName, "tacker", "width=200, height=200") } function showCommentsWindow(question, page) { var newWindow; var referer = "/lib/js/standard"; var pageName = "/comments?question="+question+"&page="+referer; newWindow = window.open(pageName, "comments", "width=420, height=420") } function launchPrivacy() { var newWindow; var pageName = "/privacy"; newWindow = window.open(pageName, "comments", "width=650, height=400, scrollbars=1") } function changePlace(type, placeid) { var newWindow; var pageName = "/changeplace?type=" + type + "&placeid=" + placeid; newWindow = window.open(pageName, "ChangeArea", "width=420, height=420") } function doSelectAll() { num = document.forms["form1"]["selected_agentid[]"].length; for(i = 0; i < num; i++) { document.forms["form1"]["selected_agentid[]"][i].checked = true; } } function doDeselectAll() { num = document.forms["form1"]["selected_agentid[]"].length; for(i = 0; i < num; i++) { document.forms["form1"]["selected_agentid[]"][i].checked = false; } } function cleartopsearchbox() { document.top_search_box.q.value = ""; } function showtplist() { document.getElementById("tplist").style.display = "block"; document.getElementById("tplistselector").style.display = "none"; } function hidetplist() { document.getElementById("tplist").style.display = "none"; document.getElementById("tplistselector").style.display = "block"; } if (document.getElementById("pleasewait")) { document.getElementById("pleasewait").style.display = "none"; } function focusfield() { if (document.getElementById("focusfield")) { document.getElementById("focusfield").focus(); } } window.onload=focusfield; function checkSellingPosition(x) { if(document.getElementById) { if(x.selectedIndex == 3 || x.selectedIndex == 4 || x.selectedIndex == 5) { document.getElementById('valuation').style.display = 'block'; } else { document.getElementById('valuation').style.display = 'none'; document.forms['form1'].valuation[0].checked = 'true'; document.forms['form1'].selling_info.value=""; } } } function togglePlaceinfo() { st = document.getElementById('placeinfo').style; if (st) { st.display = st.display=='block'? 'none':'block'; } } function toggleVisability(element) { st = document.getElementById(element).style; if (st) { // Firefox vs IE: 'block' display tables wrong in Firefox, use 'table' instead', but IE doesn't support 'table'. thus display='' works in both st.display = st.display=='none'? '':'none'; }else{alert('didnt find object');} } function fetchmap(lat, lng) { /*var tabs = new Array('tabproperty','tabagent','tabmap');*/ var tabs = new Array('tabagent','tabmap'); for(i=0;i function showstreatsearch() { $('streatsearch').show(); $('map').hide(); $('tabstreatsearch').addClassName('on'); $('tabmap').removeClassName('on'); } function fetchpropertiesmap(lat, lng, type) { var tabs = new Array('tabstreatsearch','tabmap'); for(i=0;i var searchtype = "location"; function doAjaxSearch(x) { new Ajax.Request('/searchajax', { method: 'get', parameters: 'q='+x+'&t='+searchtype, onSuccess: formatsearchresults }); } function formatsearchresults(x) { result = x.responseText.evalJSON(true); output=""; if(result !=null) { for(i=0;i"+result[i][0]+" ("+result[i][1]+")"; } } else { output="
No results
"; } $('search_results').update(output); $('search_results').style.display='block'; } function choosesearch(x) { $('sch_loc').value=x; $('search_results').style.display='none'; } function open_property_win(id,m) { newwindow=window.open('http://www.extate.co.uk/buy/view/'+id,"_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no, width=790, height=580") if (window.focus) {newwindow.focus()} } function delayed_redirect(new_location, delay) { setTimeout('redirect(\'' + new_location + '\')',delay) } function redirect(new_location) { try { self.parent.location=new_location; } catch (Exception) {} } function coveroptions(val){ if(val == 'no'){ document.getElementById('doesyourpartnersmoke').style.display = 'none'; document.getElementById('yourpartnerdob').style.display = 'none'; } if(val == 'yes'){ document.getElementById('doesyourpartnersmoke').style.display = ''; document.getElementById('yourpartnerdob').style.display = ''; } }