﻿// JScript File yeah right it's javascript you monkey
function highlight(element)
{
//alert(element.className);
	element.className = element.className + "_high";
}

function lowlight(element)
{
	element.className = element.className.substring(0, element.className.indexOf("_high"));
//alert(element.className);
}

function toggleMenuItem(subMenuID)
{
	oldVisibility = document.getElementById(subMenuID).style.display;

	switch ( oldVisibility )
	{
	case "":
	case "none":
		document.getElementById (subMenuID).style.display = "block";
		break;
	default:
		document.getElementById (subMenuID).style.display = "none";
	}
}

function popUp(strURL, strType, strHeight, strWidth)
{
	var strOptions="";
	
	if ( strType == "console" )
	{
		strOptions="resizable,scrollbars,height=" + strHeight + ",width=" + strWidth;
	}
	
	if ( strType == "fixed" )
	{
		strOptions = "status,height=" + strHeight + ",width=" + strWidth;
	}
	
	if ( strType == "elastic" )
	{
		strOptions = "toolbar,menubar,scrollbars,resizable,location,height=" + strHeight + ",width=" + strWidth;
	}
	window.open(strURL, 'newWin', strOptions);
}