// JavaScript Document

//function checkpassword()
//{
//if (document.getElementById("regPassword").value!== document.getElementById("regVerifyPass").value){
//alert ("Passwords Not Equal")}
//}


function checkRequired()
{
if (document.getElementById("regName").value==""
							||document.getElementById("regEmail").value==""
							||document.getElementById("regOfficePh").value==""
							||document.getElementById("regPassword").value==""
							||document.getElementById("regUser").value==""){
alert ("A Required Field is Blank")}

else if (document.getElementById("regPassword").value!== document.getElementById("regVerifyPass").value){
alert ("Passwords Not Equal")}

else{document.getElementById("theform").submit();}
}


function checkEmail() {
var email = document.getElementById("regEmail");
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (!filter.test(email.value)) {
alert("Please provide a valid email address");
email.focus
return false;
}
}

function verifyEmail() {
var email = document.getElementById("email");
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (!filter.test(email.value)) {
alert("Please provide a valid email address");
email.focus
return false;
}
}


function verifyRequired()
{
if (document.getElementById("group").value==""
							||document.getElementById("email").value==""
							||document.getElementById("officeph").value==""
							||document.getElementById("name").value==""
							||document.getElementById("program").value==""
							||document.getElementById("session").value==""
														)


{
alert ("A Required Field is Blank")}

else{document.getElementById("theform").submit();}
}

