function Redirect(url) { document.location.href = url; } function ValidateForm(thepage) { var x; var alertmsg; x=0; alertmsg = "The following fields are required: "; if (thepage == "contact.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 borderit(which,color){ if (document.all||document.getElementById) { which.style.borderColor=color } }