// JavaScript validatePassword(p1,p2)
//  Script to validate that two passwords are identical
//  Pass the html input objects as parameters.
//  The function returns a boolean for success or failure so it may be used in form submit
function validatePassword(p1,p2) {
	if(p1.value!=p2.value){
		alert("The two passwords entered do not match.  Please re-enter your password.");
		p1.focus();
	    return false;
	}
	else{
		return true;
	}
}