function verifyEmail(oObj) {
	checkEmail = oObj.value
	if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.'))) {	
		alert("Please enter a valid email address");
	} else {
		return true;
	}
}

function checkForm(oObj, sEList, sNList) {
	aElements = sEList.split(",");
	aNames = sNList.split(",");
	sString = "";
	for(var i=0;i<aElements.length;i++) {
		sElement = aElements[i];
		if(oObj[sElement].value == "") {
			sString = sString + aNames[i]+"\n";
		} 
	}
	
	if(sString.length > 0) {
		alert("The following required fields have been left empty:\n\n"+sString);
		return false;
		
	} else {
		
		return true;
		
	}
	
}