/**
* confirm passwords
* author: Mark Gil M. Libres
* on: 8/6/2008
* email: markglibres@yahoo.com
*/
function confirmPassword(password1,password2,minLen)
{
	if(trim(password1).length < minLen)
	{
		alert("Password must be at least "+minLen+" characters in length");
		return false;
	}
	if(trim(password1) != trim(password2))
	{
		alert("Passwords do not match. Please try again.");
		return false;	
	}
	return true;
}

