
//Toggles <DIV> layers ON/OFF
function toggleLayer(divId){
if (document.getElementById) {
	// this is the way the standards work
	var style2 = document.getElementById(divId).style;
	style2.display = style2.display? "":"block";
	}
	else if (document.all)	{
	// this is the way old msie versions work
	var style2 = document.all[divId].style;
	style2.display = style2.display? "":"block";
	}
	else if (document.layers) {
	// this is the way nn4 works
	var style2 = document.layers[divId].style;
	style2.display = style2.display? "":"block";
}
}


// Table row color change function
function changeto(highlightcolor){
source=event.srcElement
if (source.tagName=="TR"||source.tagName=="TABLE")
return
while(source.tagName!="TD")
source=source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}

function changeback(originalcolor){
if (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")
return
if (event.toElement!=source)
source.style.backgroundColor=originalcolor
}