function checkNLformFields() {
missinginfo = "";
if ((document.newsletterSignup.email.value == "") || 
(document.newsletterSignup.email.value.indexOf('@') == -1) || 
(document.newsletterSignup.email.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Email address";
}
if (document.newsletterSignup.fName.value == "") {
missinginfo += "\n     -  First Name";
}
if (document.newsletterSignup.lName.value == "") {
missinginfo += "\n     -  Last Name";
}

if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"You failed to correctly fill in your:\n" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and submit again!";
alert(missinginfo);
return false;
}
else return true;
}
function loginBoxCheck() {
missinginfo = "";
if ((document.myloginBox.email.value == "") || 
(document.myloginBox.email.value.indexOf('@') == -1) || 
(document.myloginBox.email.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Email address";
}
if (document.myloginBox.password.value == "") {
missinginfo += "\n     -  Password";
}

if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"You failed to correctly fill in your:\n" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and submit again!";
alert(missinginfo);
return false;
}
else return true;
}

function checkNLloginFields() {
missinginfo = "";
if ((document.login.login.value == "") || 
(document.login.login.value.indexOf('@') == -1) || 
(document.login.login.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Login";
}
if (document.login.pword.value == "") {
missinginfo += "\n     -  Password";
}

if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"You failed to correctly fill in your:\n" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and submit again!";
alert(missinginfo);
return false;
}
else return true;
}
function checkSpecialGameFields() {
missinginfo = "";
if (document.getElementById('theName').value == "") {
missinginfo += "\n     -  Name";
}
if ((document.getElementById('theEmail').value == "") || 
(document.getElementById('theEmail').value.indexOf('@') == -1) || 
(document.getElementById('theEmail').value.indexOf('.') == -1)) {
missinginfo += "\n     -  Email Address";
}
if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"You failed to correctly fill in your:\n" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and submit again!";
alert(missinginfo);
return false;
}
else return true;
}

function showForm() {
	if (document.getElementById('theButton').className.match("off")) {
		document.getElementById('theForm').style.visibility = "visible";
		document.getElementById('name').focus();
		document.getElementById('theButton').className = document.getElementById('theButton').className.replace(/off/, "on");
	} else {
		document.getElementById('theForm').style.visibility = "hidden";
		document.getElementById('theButton').className = document.getElementById('theButton').className.replace(/on/, "off");
	}
}
function hideForm() {
document.getElementById('theForm').style.visibility = "hidden";
}

function goToURL(url) { window.location = url; }
