function valid(frm){
	if (((frm.password.value.length)<4)||((frm.password.value.length)>12)){
    alert("Field 'password' must have 4-12 letters or numbers. Please fill in correctly.");
	 frm.password.focus();
	 frm.password.select();
	 return false;
	 exit;
	}
	if (frm.password.value!=frm.confirmpassword.value){
    alert("'password' and 'confirm password' must match. Please fill in correctly.");
	 frm.password.focus();
	 frm.password.select();
	 return false;
	 exit;
	}
	return true;
}