﻿<!--//
var windowwidth,windowheight,windowleft,windowtop;
var _toolbar,_location,_directories,_status,_scrollbars,_resizable,_copyhistory;

// Param functions        
function setPopUpSize(w,h,l,t) {
	if (w) windowwidth=w;
	if (h) windowheight=h;
	if (l) {windowleft=l} else if (window.screen) windowleft=(screen.width-windowwidth)/2;
	if (t) {windowtop=t;} else if (window.screen) windowtop=(screen.height-windowheight)/2;
}

function setPopUpParamDef(lWidth,lHeight) {
	setPopUpSize(lWidth,lHeight);
	_toolbar='no';_location='no';_directories='no';
	_status='yes';_scrollbars='yes';_resizable='yes';_copyhistory='no';
}

function PopUpEx(url,sPageName,lWidth,lHeight) {
	setPopUpParamDef(lWidth,lHeight)
	shown=window.open(url, sPageName, 'left='+windowleft+',top='+windowtop+
		',toolbar='+_toolbar+',location='+_location+',directories='+_directories+',menubar=yes'+
		',status='+_status+',scrollbars='+_scrollbars+',resizable='+_resizable+
		',copyhistory='+_copyhistory+',width='+windowwidth+',height='+windowheight);
	shown.focus();
	return false;
}
//-->

