function set_zip() { zip_code = false; pbox = document.getElementById("dprompt_text"); if (pbox) { zip_code = pbox.value; document.getElementById("prompter").innerHTML=""; } if (!zip_code) dprompt("Please enter your zip code so we can locate your distributor:", "set_zip"); else window.location = "/php/set_zip.php?zip="+zip_code+"&url="+window.location; } function zip_by_box() { zip_code = document.getElementById('zip_set').value; window.location = "/php/set_zip.php?zip="+zip_code+"&url="+window.location; } function kill_prompt() { document.getElementById("prompter").innerHTML=""; } function dprompt(msg,func) { cont = document.getElementById("prompter"); cont.innerHTML = "
×

"+msg+"

"; document.getElementById("dprompt_text").focus(); } function dprompt_submit() { }