// arguments: url, width, height, window name, left, top
function openWin() { 
if(arguments.length > 4)
	var pos = ',left='+arguments[4]+',top='+arguments[5];
else if (screen.width) 
	var pos = ',left='+screen.width/4+',top='+screen.height/4;
else var pos = '';
if (arguments.length > 3)
	var win = arguments[3];
else var win = 'popWin';
var popWin = window.open(arguments[0],win,'width='+arguments[1]+',height='+arguments[2]+pos+',resizable=1,scrollbars=1,location=0,toolbar=0,status=1,menubar=0');
popWin.focus();
}