<!--
	function validatePassword(passwordItem1, passwordItem2, minLength, maxLength, allowSpaces, callFocus)
	{
		if (!allowSpaces)
		{
			var temp = new String(passwordItem1.value);
			
			for(i = 0; i < temp.length; i++)
			{
				if(temp.charAt(i) == " ")
				{
					alert("'Passwords' may not contain any spaces. Please\nremove the space(s) and try again.");
					if(callFocus) passwordItem1.focus(); 
					return(false);
				}
			}
		}

		if(passwordItem1.value != passwordItem2.value)
		{
			alert("Please re-enter and re-confirm your password.");

			passwordItem1.value = "";
			passwordItem2.value = "";

			if(callFocus)
			{
				passwordItem1.focus();
			}

			return(false);
		}
		else
		{
			var str = new String(passwordItem1.value);

			if((str.length < minLength) || (str.length > maxLength))
			{
				alert("'Password' must be between " + minLength + " and " + maxLength + " characters long.");

				passwordItem1.value = "";
				passwordItem2.value = "";

				if(callFocus)
				{
					passwordItem1.focus();
				}

				return(false);
			}
		}
		return(true);
	}
//-->
