var a; var p; function overButton(e) { e.style.cursor = 'hand'; } function outButton(e) { e.style.cursor = 'arrow'; } function copyAddress(o) { f = o.form; if(f.checky.checked) { if(f.home_address.value=='' && f.home_postcode.value=='') { alert('You should check this box after adding your home address details. They will then be copied to your advertised address details'); event.returnValue = false; } else { p = f.ad_postcode.value; a = f.ad_address.value; f.ad_address.value = f.home_address.value; f.ad_postcode.value = f.home_postcode.value; } } else { f.ad_postcode.value = p; f.ad_address.value = a; } } function chooseSub(l) { if(l!='' && locs[l] && locs[l]!='') { var s = document.forms['Search'].lselect; if(!exists(l, s.options)) s.options[s.options.length] = new Option(locs[l], l, 0, 0); } } function mapClick(l) { chooseSub(l); return; var s = document.getElementById('subs'); s.innerHTML = 'Locations in '+locs[l]+'
'+locs[l]; for(var i=0;i - '+sublocs[l][i]; } function mapMove() { o = document.getElementById('mapLoc'); o.style.left = num(event.clientX+document.body.scrollLeft)+3; o.style.top = num(event.clientY+document.body.scrollTop)-15; } function mapOver(l) { o = document.getElementById('mapLoc'); o.innerHTML = locs[l]; o.style.display = 'inline'; } function mapOut(l) { o = document.getElementById('mapLoc'); o.style.display = 'none'; } function num(s) { return parseInt(s, 10); } function exists(v, o) { for(var i=0;i