function Book()
{
	var width = 320;
	var height = 210;
	var winName = "Book";
	var theURL = "../../general/popUpNotBookable.aspx";
	theURL = resolveUrl(theURL)
	var options = 'toolbar=no,menubar=no,location=no,directories=no,status=no,scrollbars=auto,resizable=no,copyhistory=no';
		
	options += ',width=' + width + ',height=' + height;
	if (window.screen)
	{
		windowLeft = (screen.availWidth - width)/2;
		windowTop = (screen.availHeight - height)/2;
		options += ',left=' + windowLeft + ',top=' + windowTop;
	}
	newwindow = window.open(theURL, winName, options);
	newwindow.document.close();
	newwindow.opener = this;
	newwindow.focus();
}
	
	
function OpenPDFWindow(level, entity, attribute)
{
	var width = 735;
	var height = 600;
	var winName = "PDF";
	var theURL = '../../general/pdfLoader.aspx?entityLevel=' + level + '&entityId=' + entity + '&attributeId=' + attribute;
	theURL = resolveUrl(theURL)
	var options = 'toolbar=no,menubar=no,location=no,directories=no,status=no,scrollbars=auto,resizable=yes,copyhistory=no';
		
	options += ',width=' + width + ',height=' + height;
	if (window.screen)
	{
		windowLeft = (screen.availWidth - width)/2;
		windowTop = (screen.availHeight - height)/2;
		options += ',left=' + windowLeft + ',top=' + windowTop;
	}
	newwindow = window.open(theURL,winName,options);
	newwindow.opener = this;
	newwindow.focus();
}


function OpenPriceInfoWindow(level, entity)
{
	var width = 510;
	var height = 470;
	var winName = "PriceInfo";
	var theURL = '../../priceInfo/rhbform.aspx?entityLevel=' + level + '&entityId=' + entity;
	theURL = resolveUrl(theURL)
	var options = 'toolbar=no,menubar=no,location=no,directories=no,status=no,scrollbars=auto,resizable=yes,copyhistory=no';
		
	options += ',width=' + width + ',height=' + height;
	if (window.screen)
	{
		windowLeft = (screen.availWidth - width)/2;
		windowTop = (screen.availHeight - height)/2;
		options += ',left=' + windowLeft + ',top=' + windowTop;
	}
	newwindow = window.open(theURL,winName,options);
	newwindow.opener = this;
	newwindow.focus();
}


function OpenSendAFriendWindow(level, entity)
{
	
	var width = 450;
	var height = 320;
	var winName = "SendAFriend";
	
	var theURL = '../../SendAFriend/popUpSendAFriend.aspx?level=' + level + '&entity=' + entity;
	theURL = resolveUrl(theURL)
	var options = 'toolbar=no,menubar=no,location=no,directories=no,status=no,scrollbars=auto,resizable=no,copyhistory=no';
	options += ',width=' + width + ',height=' + height;
	if (window.screen)
	{
		windowLeft = (screen.availWidth - width)/2;
		windowTop = (screen.availHeight - height)/2;
		options += ',left=' + windowLeft + ',top=' + windowTop;
	}
	newwindow = window.open(theURL,winName,options);
	newwindow.opener = this;
	newwindow.focus();
}
	
function Print()
{
	window.print();
}

