function ValidatePassword(objForm)
{
	if (!objForm) return true; 
	
	//var strOldPassword = objForm.txtPassword.value;
	var strNewPassword = objForm.txtNewPassword.value;
	var strConfirmPassword = objForm.txtConfirmPassword.value;
			
	var blnValid = true; 
	var strErrorMsg = "Could not change password.\n\n";
			
	//if (strOldPassword == strNewPassword)
	//{
	//	blnValid = false;
	//	strErrorMsg += "You new password must not be the same as your old password.\n";
	//}
	if (strNewPassword != strConfirmPassword) 
	{
		blnValid = false;
		strErrorMsg += "You did not properly confirm your password.\n"; 
	}
	if (strNewPassword.length < 8 || strNewPassword.length > 16) 
	{
		blnValid = false;
		strErrorMsg += "The password must be between 8 and 16 characters.\n";  
	}	
	if (blnValid) return true;
			
	alert(strErrorMsg);
	return false; 
}

function ValidatePasswordNewUser(objForm)
{
	if (!objForm) return true; 
	
	var objPassword = objForm.txtPassword;
	var objConfirmPassword = objForm.txtConfirmPassword;
	
	if (!objPassword) return true;
	
	var strPassword = objPassword.value;
	var strConfirmPassword = objConfirmPassword.value;
	
	if (strPassword.length == 0) return true; 
			
	var blnValid = true; 
	var strErrorMsg = "Could not change password.\n\n";
			
	if (strPassword != strConfirmPassword) 
	{
		blnValid = false;
		strErrorMsg += "You did not properly confirm your password.\n"; 
	}
	if (strPassword.length < 8 || strPassword.length > 16) 
	{
		blnValid = false;
		strErrorMsg += "The password must be between 8 and 16 characters.\n";  
	}	
	if (blnValid) return true;
			
	alert(strErrorMsg);
	return false; 
}