/*-----------------------------------------------------------------------------
Function:	validateUpload
Purpose:	validate upload form
Author:		Ben Lochner
Date:		06/15/05
Inputs:		objFormInput - document.formname
Output:		success - true
			failure - alert window, false
*/
function validateUpload(objFormInput) 
{	
	///remove leading spaces, if any...
	leftTrim(objFormInput.InvInventoryID);

	//make sure inventory has been select
	if (objFormInput.InvInventoryID.value == "")
	{
		alert("Please, select inventory item.");
		return false;
	}
	else 
	{
		///remove leading spaces, if any...
		leftTrim(objFormInput.userfile);

		//Look for upload file
		if (objFormInput.userfile.value == "")
		{
			alert("Please, select picture to upload.");
			return false;
		}
		else
		{
			return true;
		}
	}
}