function checkEmail(formPath){
	if (formPath.value != "") {
		if (formPath.value.indexOf("@") == -1 || formPath.value.indexOf(".") == -1) {
			alert(formPath.value+"is not a valid email address. Please enter a valid email address and re-submit this form.");
			formPath.value = "";
		}
	}
}	

function clearKeyword(formPath){
	if (formPath.value == "keyword") formPath.value = "";
}
function clearKeyword2(formPath, content){
	if (formPath.value == content) formPath.value = "";
}

var popupWin;
// wit & hite will determine where the window opens on the screen
function openWin(windowURL,windowName,wit,hite,scroll) { 
	var winH = (screen.height - hite) / 2;
	var winW = (screen.width - wit) / 2;
	popupWin = window.open( windowURL, windowName, "menubar=no,status=no,toolbar=no,location=no,scrollbars="+scroll+",screenx=1,screeny=1,width=" + wit + ",height=" + hite + ",top="+winH+",left="+winW);
	popupWin.focus();
}

function nextBox(valueLen, nextSpot) {
	if (valueLen == 2) nextSpot.focus();
}