
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;
}

function _$(_ElId)
{
	return document.getElementById(_ElId);
}

function ComplexJavaExplode(_Separator, _ResourceStr)
{
	var tRetArr = new Array();
	var tCh = 0;
	var tBegin = 0;
	for (i = 0; i < _ResourceStr.length; i++)
	{
		if (_ResourceStr.substring(i,i+_Separator.length) == _Separator)
		{
			tRetArr[tCh++] = _ResourceStr.substring(tBegin, i);
			tBegin = i + _Separator.length;
			i += _Separator.length - 1;
		}
	}

	tRetArr[tCh] = _ResourceStr.substring(tBegin);
	return tRetArr;
}