function fPrintPage(theWidth,theNavid,theItemid,theRawurl,theParams) {
	var theUrl = 'print.php?navid='+theNavid+'&url='+theRawurl;
	if (theItemid)			theUrl += '&itemid='+theItemid;
	if (theParams)			theUrl += theParams;
	printWin = window.open(theUrl,'fPrintWin','status=yes,menubar=yes,scrollbars=yes,resizable=yes,width='+theWidth+',height=600');
	printWin.focus();
}

//booking

function getScrollTop(){
	if(typeof pageYOffset!= 'undefined'){
		//most browsers
		return pageYOffset;
	}
	else{
		var B= document.body; //IE 'quirks'
		var D= document.documentElement; //IE with doctype
		D= (D.clientHeight)? D: B;
		return D.scrollTop;
	}
}
function AvoidDeepScroll() {
	var maxScrollAfterPageLoad = 700;
	if(getScrollTop() > maxScrollAfterPageLoad) {
		parent.scrollTo(0,maxScrollAfterPageLoad);
	}
}
