function CheckFields () { var sEmail; var sAbout; var sClassinfo; sEmail = document.getElementById("email").value; sAbout = document.getElementById("about").value; sClassinfo = document.getElementById("classinfo").value; if (document.getElementById("survivor").value == '') { document.getElementById("survivor").focus(); alert("Please specify name of survivor"); return; } if (document.getElementById("yourname").value == '') { document.getElementById("yourname").focus(); alert("Please enter your name"); return; } if (sEmail == '') { document.getElementById("email").focus(); alert("Please enter your email address"); return; } if (sEmail == "webmaster@olafire.com") { document.getElementById("email").value = ''; document.getElementById("email").focus(); alert("Please enter YOUR email address"); return; } if (sEmail.indexOf("@guvan.com") >= 0) { alert("Spam not allowed"); return; } if (sEmail.indexOf("@") < 0) { alert("Invalid email address specified - please enter your email address"); return; } if (sAbout.toUpperCase().indexOf("HTTP://") >= 0) { alert("Spam not allowed"); return; } if (sAbout.toUpperCase().indexOf("HTTPS://") >= 0) { alert("Spam not allowed"); return; } if (sAbout.toUpperCase().indexOf("WWW.") >= 0) { alert("Spam not allowed"); return; } if (sClassinfo.toUpperCase().indexOf("HTTP://") >= 0) { alert("Spam not allowed"); return; } if (sClassinfo.toUpperCase().indexOf("HTTPS://") >= 0) { alert("Spam not allowed"); return; } if (sClassinfo.toUpperCase().indexOf("WWW.") >= 0) { alert("Spam not allowed"); return; } document.getElementById("sendinfo").submit() }