/* General functions for popup windows */
/*
* NOTE: These functions are obsolute and should not be used.  Please use makePopupWindow
*@see /js/singair_2_0.js
*@deprecated
function showWindow(url, height, width)
{
	var winOptions;
		winOptions = "toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=no,width=" + width + "px,height=" + height + "px,top=150px,left=100px";
	popupWindow = window.open(url,"popupShowWindow",winOptions);
}
function showContent(url)
{
	var winOptions;
		winOptions = "toolbar=no,location=yes,directories=no,status=yes,menubar=yes,resizable=yes,copyhistory=no,scrollbars=yes,width=350px,height=450px,top=150px,left=100px";
    
	popupWindow = window.open(url,"popupContentWindow",winOptions);
}*/
function showContentPopup(filePath, fileName) {
	var winOptions;
		winOptions = "toolbar=no,location=yes,directories=no,status=yes,menubar=yes,resizable=yes,copyhistory=no,scrollbars=yes,width=300px,height=450px,top=150px,left=100px";
	popupWindow = window.open(WEBAPP_CONTEXT + "/Util/GenericContentLoader.jsp?filePath=" + filePath + "&fileName=" + fileName,"popupCntWindow",winOptions);
}
function closeWindow()
{
	popupWindow.close();
}
function showPrintWindow(url, height, width)
{
	var winOptions;
		winOptions = "toolbar=yes,location=no,directories=no,status=no,menubar=yes,resizable=yes,copyhistory=no,scrollbars=yes,width=" + width + "px,height=" + height + "px,top=150px,left=100px";
	popupWindow = window.open(url,"popupPrintWindow",winOptions);
}
