function updateQuantity(boxID,lineItem,rowID) {
	if (getFieldValue('quan'+boxID) < 0) {
		alert('negative values are not allowed');	
	} else { 
		location.href='/?section=168&mode=updateShoppingCart&lineItemID='+lineItem+'&rowID='+rowID+'&quantity='+getFieldValue('quan'+boxID);
	}
}


function alertSize() {
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if(document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight )) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	}

	
	if (docWidth < 1440) {hideByID('skyBanner2');}
	if (docWidth < 1200) {hideByID('skyBanner1');}
	return myWidth;
}

function addToCartJB(productID,numLineItems,atca) {
	if (numLineItems==1) {
		location.href='/basket.php?quantity=1&'+atca;
	} else {
		changeText('getLineIn'+productID,'<img src="/templates/t1981/images/ajax-loader.gif" /><br />Loading. Please Wait');
		showBlockByID('getLine'+productID);
		reloadPage('/indexAjax.php?section=321&product='+productID,'','getLineIn'+productID);
		
	}
}
