function popup(mypage, myname, w, h, scroll) { var winl = (screen.width - w) / 2; var wint = (screen.height - h) / 2; winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable' win = window.open(mypage, myname, winprops) if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } } function ValidateForm(formname) { var x; var alertmsg; x=0; alertmsg = "The following fields are required: "; if(formname=="contactinfo.asp") { if (document.form.name.value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "Name";x = x + 1;} if (document.form.email.value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "Email";x = x + 1;} if (document.form.subject.value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "Subject";x = x + 1;} if (document.form.body.value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "Body";x = x + 1;} } if (x == 0) { document.form.submit(); } else { alert(alertmsg); return false; } } function GetDirections() { var x; var alertmsg; x=0; alertmsg = "The following fields are required: "; if (document.form1.location.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Location"; x = x + 1; } if (document.form1.fromstreet.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Your Street"; x = x + 1; } if (document.form1.fromzip.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Your Zip"; x = x + 1; } if (x == 0) { document.form1.submit(); } else { alert(alertmsg); return false; } } function BorderIt(which,color){ if (document.all||document.getElementById) { which.style.borderColor=color; } }