function CFormValidation(theForm) 
	{
		if (theForm.Name.value == "")
		{
			alert("\"First Name\" is a required field.");
			theForm.Name.focus();
			return (false);
		}
		
    	if (theForm.Email.value == "")
		{
			alert("\"Email\" is a required field.");
			theForm.Email.focus();
			return (false);
		}
		
		
		if (  theForm.Email.value.indexOf("@") < 1 ||
		      theForm.Email.value.indexOf(".") == -1 ||
		      (   (theForm.email.value.indexOf("@")  + 1) >=  (theForm.email.value.lastIndexOf(".")) )
		   )
		{
			alert("The  email you entered is not formatted correctly");
			theForm.Email.focus();
			return(false);
		}
		
		if (theForm.Comment.value == "")
		{
			alert("\"Comment\" is a required field.");
			theForm.Comment.focus();
			return (false);
		}
		

		return (true);
}
function WordFormValidation(theForm) 
	{
		if (theForm.Name.value == "")
		{
			alert("\"First Name\" is a required field.");
			theForm.Name.focus();
			return (false);
		}
		
		if (theForm.IjawWord.value == "")
		{
			alert("\"Ijaw Word\" is a required field.");
			theForm.IjawWord.focus();
			return (false);
		}
		
		if (theForm.Dialect.value == "")
		{
			alert("\"Dialect\" is a required field.");
			theForm.Dialect.focus();
			return (false);
		}
		if (theForm.EngTrans.value == "")
		{
			alert("\"English Trans\" is a required field.");
			theForm.EngTrans.focus();
			return (false);
		}
		
    	if (theForm.Email.value == "")
		{
			alert("\"Email\" is a required field.");
			theForm.Email.focus();
			return (false);
		}
		
		
		if (  theForm.Email.value.indexOf("@") < 1 ||
		      theForm.Email.value.indexOf(".") == -1 ||
		      (   (theForm.email.value.indexOf("@")  + 1) >=  (theForm.email.value.lastIndexOf(".")) )
		   )
		{
			alert("The  email you entered is not formatted correctly");
			theForm.Email.focus();
			return(false);
		}
		

		return (true);
}


function formUserUpdateValidation(theForm) 
{
		
		if (theForm.firstName.value == "")
		{
			alert("\"First Name\" is a required field.");
			theForm.firstName.focus();
			return (false);
		}
		if (theForm.lastName.value == "")
		{
			alert("\"Last Name\" is a required field.");
			theForm.lastName.focus();
			return (false);
		}
		
		if (theForm.firstName.value.length == 1)
		{
			alert("The \"First Name\" field must have more than 1 character.");
			theForm.firstName.focus();
			return(false);
		}
		if (theForm.lastName.value.length == 1)
		{
			alert("The \"Last Name\" field must have more than 1 character.");
			theForm.lastName.focus();
			return(false);
		}
		
		if (theForm.address1.value == "")
		{
			alert("\"Address1\" is a required field.");
			theForm.address1.focus();
			return (false);
		}
		if (theForm.city.value == "")
		{
			alert("\"City\" is a required field.");
			theForm.city.focus();
			return (false);
		}
		if (theForm.state.selectedIndex < 1)
		{
			alert("\"State\" is a required field.");
			theForm.state.focus();
			return (false);
		}
		
		 if (theForm.workPhone.value == "")
		{
			alert("\"Daytime Phone\" is a required field.");
			theForm.workPhone.focus();
			return (false);
		}
		if (theForm.phone.value == "")
		{
			alert("\"Phone\" is a required field.");
			theForm.phone.focus();
			return (false);
		}
	
		if (theForm.zip.value == "")
		{
			alert("\"Zip\" is a required field.");
			theForm.zip.focus();
			return (false);
		}
		if (theForm.password.value == "")
		{
			alert("\"Password\" is a required field.");
			theForm.password.focus();
			return (false);
		}
		
		
		if (theForm.password.value.length < 4)
		{
			alert("The \"Password\" field must have more than 3 characters.");
			theForm.password.focus();
			return(false);
		}
		
		if (theForm.workPhone.value.length < 10)
		{
			alert("The \"Daytime Phone\" field must have at least 10 digits.");
			theForm.workPhone.focus();
			return(false);
		}
		if (theForm.phone.value.length < 10)
		{
			alert("The \"Phone Number\" field must have at least 10 digits.");
			theForm.phone.focus();
			return(false);
		}
		
		return (true);
}