<!--
	
	function grabValue(objFrom,objTo)
	{
		if (Trim(objFrom.value) != "")
		{
			objTo.value = objFrom.value
		}
	}

	function expandCollapse(strTR)
	{
		try
		{
			if (document.getElementById(strTR).style.display == '')
				document.getElementById(strTR).style.display = 'none';
			else
				document.getElementById(strTR).style.display = '';			
		}
		catch(err)
		{
			return 0;
		}
	}

	function enableDisable(objComponent,boolEnable)
	{
		try
		{
			if (boolEnable != null)			
			{
				if (boolEnable)
				{
					objComponent.disabled = false;
					objComponent.focus();
				}
				else
					objComponent.disabled = true;
			}
			else
			{
				if (objComponent.disabled)
				{
					objComponent.disabled = false;
					objComponent.focus();
				}
				else
					objComponent.disabled = true;			
			}
		}
		catch(err)
		{
			return 0;
		}		
	}
	
	function printProduct(intPageNo)
	{
		var i;
		var boolValid = false;
		var strProdId = "";
		
		try{
			with (document.frmPrint)
			{
				for (i=0; i<elements.length; i++)
				{
					if (elements[i].checked) 
					{
						strProdId = strProdId + elements[i].name + ",";
						boolValid = true;					
					}
				}

				if (boolValid) 
					window.open('print.asp?pg=' + intPageNo + '&prodid=' + strProdId,'Print_Preview','width=600,height=600,toolbar=no,menubar=no,location=no,status=no,scrollbars=yes');
				else
				{	
					alert("No product selected. Please specify the product to be printed.");
					return false;
				}
			}
		}
		catch(err)
		{
			alert("No product to be printed.");
			return false;
		}
	}

		

//-->
