function openWin(URL, winWidth, winHeight, bars) {
	var scrX = Math.round((screen.width - winWidth) / 2);
   var scrY = Math.round((screen.height - winHeight) / 2);

	var winName = 'gaz' + Math.floor(Math.random()*1000)

	newWin = window.open(URL, winName, 'dependent='+bars+',hotkeys='+bars+',height='+winHeight+',width='+winWidth+',location='+bars+',menubar='+bars+',resizable='+bars+',scrollbars='+bars+',toolbar='+bars+', status='+bars+',left='+scrX+',top='+scrY);

	newWin.focus();
	
	return false;
}
