
var isDOM = (document.getElementById ? true : false); 
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var browser = null;
if (isDOM)browser = "IE5+ or NS6+";
if (browser == null && isIE4)browser = "IE4";
if (browser == null && isNS4)browser = "NS4";
if (browser == null)browser = "Not Detected";
//alert("You are using a " + browser);

function GoTo(href)
{
	window.location = href
}

function getRef(id)
{
	if (isDOM) return document.getElementById(id);
	if (isIE4) return document.all[id];
	if (isNS4) return document.layers[id];
}

function getStyle(id)
{
	return (isNS4 ? getRef(id) : getRef(id).style);
}

function oPop(url,name)
{
	leftPos = (screen.availWidth - 1024) / 2;
	topPos = (screen.availHeight - 700) / 2;
			
	window.open(url, name, 'resizable=No, scrollbars=Yes, toolbar=No, location=No, MenuBar=No, Width=800, Height=600, left=' + leftPos + ', top='+ topPos);
	return false;
}
