function pcpressed(e)
{var pc=$('postcodeinput').value;if(!e)var e=window.event;var code=e.keyCode?e.keyCode:e.which;if(code==13)
{sendpostcode();}
$('postcodeinput').value=pc.toUpperCase();}
function showpostcode()
{$('postcode').style.display='block';$('postcodeinput').focus();}
function closepostcode()
{$('postcode').style.display='none';}
function sendpostcode()
{var pc=$('postcodeinput').value;closepostcode()
new Ajax.Updater('lmap','/update-location-using-postcode',{asynchronous:true,evalScripts:true,parameters:{pc:pc}});}
function dropped()
{var x=$('recticle').offsetLeft+32-10;var y=$('recticle').offsetTop+26-0;r=false;if(x<160){r=true;}
if(x>323){r=true;}
if(y<5){r=true;}
if(y>262){r=true;}
if(x>250&&y<80){r=true;}
if(r==true){x=265;y=187;}
new Ajax.Updater('lmap','/update-location',{asynchronous:true,evalScripts:true,parameters:{x:x,y:y}});}
