<!--
BR=BRV=0;
var win_det=null;
var shi = window.screen.availHeight;
var swi = window.screen.availWidth;



function ShowPopup(url, w_width, w_height, set_scrollbars){
	if(win_det && win_det.closed==false){
		if (!BR || BR==2) closepopup();
		else reswin(w_width,w_height);
		}
	if(win_det && win_det.closed==false) {
		if(url) win_det.location.replace(url);
		}
	else {	
		var alH = parseInt(shi, 10) - 35;		
		if(w_height > alH){
			if(set_scrollbars=="") scrollbars  = 'yes';		
			w_width = parseInt(w_width, 10) + 17;
			}
		else
		if(set_scrollbars=="") scrollbars  = 'no';						
		var lf=(swi-w_width)/2;
		var tp=(shi-w_height)/2;
		win_det=window.open(url, "" , "left=" + lf + ", top=" + tp+", scrollbars=" + set_scrollbars+", menubar=no,resizable=no, status=yes, toolbar=no, width=" + w_width + ",height=" + w_height);
		}
	win_det.focus();	
}


 

function closepopup(){
	if(win_det!=null && win_det.open) 
	win_det.close();
}

if (BR==2 || !BR) 
window.onunload=closepopup;

function reswin(w_width,w_height) {
if(win_det && !win_det.closed) {
	x1 = BR==1 ? win_det.document.body.clientWidth  : win_det.innerWidth;
	y1 = BR==1 ? win_det.document.body.clientHeight : win_det.innerHeight;
	if (x1!=w_width || y1!=w_height)win_det.resizeBy(w_width-x1, w_height-y1);
	}
}
//-->
