<!--
function checkAlphaNum(strPwd) {
	// If matches any one or more digit.
	regDigit = new RegExp("\\d+");
	// If matches any one or more special character, except UNDERSCORE.
	regSpecial = new RegExp("\\W+");
	// If matches any one or more alphabet or UNDERSCORE.
	regChar = new RegExp("[A-Za-z_]+");
	
	if (!regDigit.test(strPwd)) {
		alert ("The password entered contains only alphabets (A-Z, a-z).\nAs a security measure, password should have at least 1 numeric value (0-9).");
		return false;
	}
	
	if (regSpecial.test(strPwd)) {
		alert ("The password entered contains special characters.\nPlease be informed that only alphabets (A-Z, a-z), numeric values (0-9) and underscore (_) are allowed.");
		return false;
	}
	
	if (!regChar.test(strPwd)) {
		alert ("The password entered does not contain any alphabet (A-Z, a-z).\nAs a security measure, password should have a mix of alphabets (A-Z, a-z), numeric values (0-9) or underscore (_).");
		return false;
	}
	
	return true;
}
// -->
