function toggleVisibility(strElement1, strElement2) {
	var e1 = document.getElementById(strElement1);
	var e2 = document.getElementById(strElement2);
	
	if (e1.style.display == 'none') {
		e1.style.display = 'block';
		e2.style.display = 'none';
	}
	else {
		e1.style.display = 'none';
		e2.style.display = 'block';
	}

	setTimeout('document.images["imgLoading"].src = document.images["imgLoading"].src', 200); 
	
	return true;
}

function confirmAction(action,title) {

	if (confirm(title))
		window.location.href = action;
	else
		return false;
}

// Use this when you are adding a method to the window.onload event
// This IS the proper way to separate content from the javascript manipulating the DOM
// Taken from http://www.sitepoint.com/blogs/2004/05/26/closures-and-executing-javascript-on-page-load/
// Example:
//		addLoadEvent(nameOfSomeFunctionToRunOnPageLoad);
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}

startList = function() {
	if (document.all&&document.getElementById) {
		if(navRoot = document.getElementById("reportnav")) {
			for (i=0; i<navRoot.childNodes.length; i++) {
				node = navRoot.childNodes[i];
				if (node.nodeName=="LI") {
					node.onmouseover=function() {
						this.className+=" over";
					}
					node.onmouseout=function() {
						this.className=this.className.replace(" over", "");
					}
				}
			}
		}
	}
}

window.onload=startList;