// JavaScript Document

function newWindow(url, width, height, name, toolbar, scrollbar, resizable)
{
	if(name==null||name=='') name = (new Date()).getTime().toString();		
	if(toolbar==null||toolbar=='') toolbar = 'no';
	if(scrollbar==null||scrollbar=='') scrollbar = 'no';
	if(resizable==null||resizable=='') resizable='yes';
	
	var left = (screen.width/2) - width/2;
	var top = (screen.height/2) - height/2;
	
	var styleStr = 'toolbar='+toolbar+',location=no,directories=no,status=no,menubar=no,scrollbars='+scrollbar+',resizable='+resizable+',width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
	var msgWindow = window.open(url, name, styleStr);
	msgWindow.opener = self;
	msgWindow.focus();
	return msgWindow;
}