
/*-----------------------------------------------------------------------------
Function:	validateLocation
Purpose:	validate the location data
Author:		Ben Lochner
Date:		03/25/05
Modify:		06/23/05 - Ben Lochner
Inputs:		objFormInput - username text input (document.formname)
Output:		success - true
			failure - alert window, false
*/
function validateLocation(objFormInput) 
{	
	/*remove leading spaces, if any...*/
	leftTrim(objFormInput.locDesc);

	if (objFormInput.locDesc.value == "")
	{
		alert("You must fill in the location description.");
		objFormInput.locDesc.focus();
		return false;
	}
	else
	{
		/*remove leading spaces, if any...*/
		//leftTrim(objFormInput.locAdd1);
		//if (objFormInput.locAdd1.value == "")
		//{
		//	alert("You must fill in the location address line 1.");
		//	objFormInput.locAdd1.focus();
		//	return false;
		//}
		//else
		//{
			/*remove leading spaces, if any...*/
		//	leftTrim(objFormInput.locCity);
		//	if (objFormInput.locCity.value == "")
		//	{
		//		alert("You must fill in the location city.");
		//		objFormInput.locCity.focus();
		//		return false;
		//	}
		//	else
		//	{
				/*remove leading spaces, if any...*/
		//		leftTrim(objFormInput.locState);
		//		if (objFormInput.locState.value == "")
		//		{
		//			alert("You must fill in the location state.");
		//			objFormInput.locState.focus();
		//			return false;
		//		}
		//		else
		//		{
					/*remove leading spaces, if any...*/
		//			leftTrim(objFormInput.locZipCode);
		//			if (objFormInput.locZipCode.value == "")
		//			{
		//				alert("You must fill in the location zip code.");
		//				objFormInput.locZipCode.focus();
		//				return false;
		//			}
		//			else
		//			{
		//				return true;
		//			}
		//		}
		//	}
		//}
		
		return true;
	}
}