/* ----------- BROWSER DETECTION ----------- */
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

if((browserName == "Netscape" && browserVer >=3)||(browserName == "Microsoft Internet Explorer" && browserVer >=4))
	browser = "ver3";
else browser = "ver2";


/* ----------- POPUP WINDOW FUNCTIONS ----------- */
var newWin
function closeWin()
{
	if(newWin && !newWin.closed)
	{
		newWin.close()
	}
}

function openWin(obj,wt,ht)
{
	if ((browser == "ver3") && (browserName == "Microsoft Internet Explorer" && navigator.platform != "MacPPC"))
	{
		itsNav3(obj,wt,ht)
	}
	else if (browser == "ver2")
		{
			ie3(obj,wt,ht)
		}
		else
		{
			ie2(obj,wt,ht)
		}
}

function itsNav3(obj,wt,ht)
{
	if(newWin == null || newWin.closed)
	{
		newWin = window.open(obj, "", "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=" + wt + ",height=" + ht + ",top=150,left=150")
	}
	else
	{
		newWin.close()
		newWin = window.open(obj, "","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=" + wt + ",height=" + ht + ",top=150,left=150")
	}
}

function ie3(obj,wt,ht)
{
	if(newWin == null || newWin.closed)
	{
		newWin = window.open(obj, 'newWin', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=' + wt + ',height=' + ht + ',top=150,left=150')
	}
	else
	{
		newWin = window.open(obj, 'newWin','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=' + wt + ',height=' + ht + ',top=150,left=150')
	}
}

function ie2(obj,wt,ht)
{
		newWin = window.open(obj, "", "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=" + wt + ",height=" + ht + ",top=150,left=150")
}