
var $j = jQuery.noConflict();
// form validation to make sure they have input something in the required fields
function checkSignupForm(){

// set variable to false
var blnValid = false;

// create alert message
var strMsg = "Please fix the following errors:\r\n";

// declare some variables
var blnEmail = false;
var strEmailMsg = "";

// check email
var strEmailRegex = /^([A-Za-z0-9_\-\.\+])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
if(strEmailRegex.test($j("#emailAddress").val())){
	// set blnEmail to true
	blnEmail = true;
} else {
	// if the email address doesn't fit the regex, then yell at them
	strEmailMsg = "  - Enter a valid email address\r\n";
	blnEmail = false;
}


// set the validity of the form equal to the AND of all three
blnValid = (blnEmail);

//if the form is invalid, then alert the user
if(!blnValid){
 alert(strMsg + strEmailMsg);
}

// return the validity of the form

return blnValid;

}
