
function isMozzi()
{
	return navigator.appName == 'Netscape';
}
function isExplorer()
{
	return navigator.appName == 'Microsoft Internet Explorer';
}

function windowopen(url,name,params,width,height)
{
	var left=(screen.availWidth-width)/2;
	var top=(screen.availHeight-height)/2;

	var str=',width='+width+',height='+height;
	if(!isMozzi())
	{
		str+=',left='+left+',top='+top;
	}
	NewWin=window.open(url,name,params+str);
	if(isMozzi())
	{
		NewWin.moveTo(left,top);
	}
	return NewWin;
}

function ShowModalWin(url,width,height)
{
	if(width==null)width=600;
	if(height==null)height=600;
	NewWin=windowopen(url,'','menubar=0,status=0,toolbar=0,scrollbars=1,resizable',width,height);
	NewWin.focus();
	return NewWin;
}

