function ValidateData()
{
	var objForm = eval ('window.document.CartViewForm');
	var numOfElements = objForm.elements.length ;
	var control ;
	var strControlName ;
	for(i=0 ; i<numOfElements ; i++) {
		control = eval ('objForm.elements[i]') ;
		strControlName = control.name.toString() ;

		if ( strControlName. indexOf("txtQuantity") == 0 )
		{
			
			if (trimValue(control.value) == "") 
			{
				alert('Please enter the Quantity.');
				control.focus ();
				return false;
			}
			
			if (!(isInteger(control.value)))
			{
				alert('Please enter Valid Quantity.');
				control.focus ();
				control.select () ;
				return false;
			}
			
		}
	}

}

/*
function openPricePolicyWindow()
	{
	window.location.href = 'PricePolicy.asp?LastURL=' + window.location.href;
	//window.open ('PricePolicy.asp', 'PricePolicy', 'height=300,width=600,status=no,toolbar=no,menubar=no,location=no,top=0,left=0,scrollbars=yes,resizable=yes');
	}
*/
