/*addition by Simi to confirm password*/
var email
var pass;
var cpass

function verify(form)
{

		//check confirm password
		cpass = form.confirmpassword.value;
		pass = form.password.value;
		email = form.email.value
		
		
		if (email.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1)
		{
			alert("You have entered an invalid e-mail address. Please try again.")
			return false;
		}
		if(pass.length < 1){
			alert("Please enter a password.");
			return false;
		}
		if(cpass != pass){
			alert("Confirmed password does not match password. Please reenter your password.");
			return false;
		}
}
