function AddUser(thisForm)
{
	if (thisForm["userID"].value.length < 5)
	{
		alert("User ID must be between 6 and 32 characters");
		return false;
	}
	
	if (thisForm["userFirstName"].value.length < 2)
	{
		alert("First Name must be between 2 and 255 characters");
		return false;
	}

	if (thisForm["userLastName"].value.length < 2)
	{
		alert("Last Name must be between 2 and 255 characters");
		return false;
	}
	
	if (thisForm["userPassword"].value.length < 6)
	{
		alert("Password must be between 6 and 32 characters");
		return false;
	}
	
	if (thisForm["userPassword"].value.toLowerCase() != thisForm["userPasswordCheck"].value.toLowerCase())
	{
		alert("Passwords do not match");
		return false;
	}
}

function EditUser(thisForm)
{
	if (thisForm["userID"].value.length < 6)
	{
		alert("User ID must be between 6 and 32 characters");
		return false;
	}
	
	if (thisForm["userFirstName"].value.length < 2)
	{
		alert("First Name must be between 2 and 255 characters");
		return false;
	}

	if (thisForm["userLastName"].value.length < 2)
	{
		alert("Last Name must be between 2 and 255 characters");
		return false;
	}
	
	if (thisForm["userPassword"].value.length > 0 || thisForm["userPasswordCheck"] > 0)
	{
		if (thisForm["userPassword"].value.toLowerCase() != thisForm["userPasswordCheck"].value.toLowerCase())
		{
			alert("Passwords do not match");
			return false;
		}
	}
}

function ComposeLetter(thisForm)
{
	
	
}