function ValidateContact() { var x; var alertmsg; x=0; alertmsg = "The following fields are required: "; if (document.form.tname.value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "Name";x = x + 1;} if (document.form.temail.value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "Email";x = x + 1;} if (document.form.tsubject.value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "Subject";x = x + 1;} if (document.form.tbody.value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "Body";x = x + 1;} if (x == 0) { document.form.submit(); } else { alert(alertmsg); return false; } } 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 Jump(tUrl) { window.location=tUrl; }