var popUpWin=0;
function popUpWindow(URLStr, w, h)
{
	/*
	if(popUpWin)
	{
		if(!popUpWin.closed) popUpWin.close();
	}*/
	
	var name = navigator.appName;
	
	var myH;
	width 	=w;
	height	=h;
	if (name == "Microsoft Internet Explorer") {
		myH = screen.availWidth
		myV = screen.availHeight		
	} else {
		myH = window.outerWidth
		myV = window.outerHeight
	}
	
	var left = myH*.5 - width*.5;
	var top = myV*.5 - height*.5;
	
	popUpWin = open(URLStr, '', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
	//popUpWin.moveTo(centerH,centerV);
	popUpWin.focus();
}
var popUpWin=0;
