// Javascript utility functions

// called to open a new browser window
function openBrowser(myURL, myName, myWidth, myHeight, myType, myTop, myLeft)
{
	if (myTop == null) { myTop = 0 }
	if (myLeft == null) { myLeft = 0 }
	
	if (myType == 'Frame') {
		var myAttributes = 'width=' + myWidth + ',height=' + myHeight + ',top=' + myTop + ',left=' + myLeft + ',toolbar=no,menubar=no,location=no,status=no,scrollbars=no,resizable=no'
	}
	else if (myType == 'View') {
		var myAttributes = 'width=' + myWidth + ',height=' + myHeight + ',top=' + myTop + ',left=' + myLeft + ',toolbar=no,menubar=no,location=no,status=no,scrollbars=yes,resizable=yes'
	}
	else if (myType == 'ViewS') {
		var myAttributes = 'width=' + myWidth + ',height=' + myHeight + ',top=' + myTop + ',left=' + myLeft + ',toolbar=no,menubar=no,location=no,status=yes,scrollbars=yes,resizable=yes'
	}
	else {	// Full assumed
		var myAttributes = 'width=' + myWidth + ',height=' + myHeight + ',top=' + myTop + ',left=' + myLeft + ',toolbar=yes,menubar=yes,location=yes,status=yes,scrollbars=yes,resizable=yes'
	}
	
	//alert (myAttributes);
	window.open(myURL, myName, myAttributes);
}

// called when a user rolls over a list
function highlightOver(src, clrOver) 
{
    if (!src.contains(event.fromElement)) {
	  src.bgColor = clrOver; }
}
function highlightOut(src, clrIn) 
{
	if (!src.contains(event.toElement)) {
	   src.bgColor = clrIn;	}
}
