/* PNG FIX for IE6 */ if (document.all && /MSIE (5\.5|6)/.test(navigator.userAgent) && document.styleSheets && document.styleSheets[0] && document.styleSheets[0].addRule) { document.styleSheets[0].addRule('.pngFix', 'behavior: url(/js/iepngfix.htc)'); }

/* POPUP */
var win=null;
function pop(ref,w,h,wname,scroll){

	if(screen.width <= w) w = (screen.width);
	if(screen.height <= h) h = (screen.height);

	leftpos=(screen.width)?(screen.width-w)/2:100;toppos=(screen.height)?(screen.height-h)/2:100;
	settings='width='+w+',height='+h+',top='+toppos+',left='+leftpos+',scrollbars='+scroll+',location=no,directories=no,menubar=no,toolbar=no,resizable=no,status=no';
	win=window.open(ref,wname,settings);
	if(win.focus)	win.focus();
}

function CloseNewWin(){
	if(win!=null && win.open)	win.close()
}