// Copyright 2005 MapBuilder.net // You can't use this script or parts of this script without written permission from MapBuilder.net or Andrew Bidochko. // This script is a part of the service provided by MapBuilder.net and the script can be used from MapBuilder.net server only. var MBDirectionFormBox=false;function MBDirectionFormState(mode,force){var MBCurrID=document.getElementById("MBLocID").value; document.getElementById("addr1").value = aLocations[MBCurrID][0].getPoint().lat() + ", " + aLocations[MBCurrID][0].getPoint().lng() + " ("+ aLocations[MBCurrID][1] +")"; if(mode=='to'){document.getElementById("MBDirectionAddr").innerHTML='Start address';document.getElementById("addr1").name='daddr';document.getElementById("addr2").name='saddr';} else{document.getElementById("MBDirectionAddr").innerHTML='End address';document.getElementById("addr1").name='saddr';document.getElementById("addr2").name='daddr';} if(force){document.getElementById('MBDirectionForm').style.display=(MBDirectionFormBox?'none':'block');} else{document.getElementById('MBDirectionForm').style.display='block';} MBDirectionFormBox=(!MBDirectionFormBox);} function GetDirectionForm(LocID){return "
[+] Directions: To here - From here
Start address
"}