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

function GetWindowHeight()
{
	var l_Height = 0;
	if (typeof(window.innerHeight) == 'number')
	{
		l_Height = window.innerHeight;
	}
	else 
	{
		if (document.documentElement && document.documentElement.clientHeight) 
		{
			l_Height = document.documentElement.clientHeight;
		}
		else 
		{
			if (document.body && document.body.clientHeight) 
			{
				l_Height = document.body.clientHeight;
			}
		}
	}
	return l_Height;
}

function GetWindowWidth()
{
	var l_Width = 0;
	if (typeof(window.innerWidth) == 'number')
	{
		l_Width = window.innerWidth;
	}
	else 
	{
		if (document.documentElement && document.documentElement.clientWidth) 
		{
			l_Width = document.documentElement.clientWidth;
		}
		else 
		{
			if (document.body && document.body.clientWidth) 
			{
				l_Width = document.body.clientWidth;
			}
		}
	}
	return l_Width;
}

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+',left='+left+',top='+top;

	var NewWin=window.open(url,name,params+str);
	
	return NewWin;
}

function ShowModalWin(url,width,height)
{
	if(width==undefined)width=800;
	if(height==undefined)height=600;
	var NewWin=WindowOpen(url,'','menubar=0,status=0,toolbar=0,scrollbars=1,resizable',width,height);
	return NewWin;
}

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