function validEmail(theInput, errorText){
	if (theInput.value.indexOf("@", 1)==-1 || theInput.value.indexOf(".", 4)==-1){
		alert(errorText);
		theInput.focus();
		return false;
	}
	return true;
}

function validText(theInput, errorText){
	if (theInput.value.length<1){
		alert(errorText);
		theInput.focus();
		return false;
	}
	return true;
}

function validSelect(theInput, errorText){
	if (theInput.options[theInput.selectedIndex].value.length<1){
		alert(errorText);
		theInput.focus();
		return false;
	}
	return true;
}