function printPage() {
getObj("printHolder").style.display="block";
getObj("printHolder").innerHTML = getObj("printHolder").innerHTML + getObj("contentBody").innerHTML;
getObj("master").style.display="none";
}
function printPageReset() {
getObj("printHolder").style.display="none"
getObj("master").style.display="block";
}
	
function getObj(nm) {
	if (document.getElementById) {
		return document.getElementById(nm);
	} else if (document.all) {
		return document.all[nm];
	} else {
		return eval("document." + nm);
	}
}

// menu
var mtimer=new Array();

// Turns a menu on
function menuOn(whatMenu) {
	if (mtimer[whatMenu]) {
		clearTimeout(mtimer[whatMenu]);
	}
	getObj("menu" + whatMenu).style.display = "inline";
	getObj("menu" + whatMenu).style.zIndex = 99;
}

// Called when mouse is moved away from a menu
function menuOut(whatMenu) {
	if (mtimer[whatMenu]) {
		clearTimeout(mtimer[whatMenu]);
	}
	getObj("menu" + whatMenu).style.zIndex = 98;
	eval("mtimer[whatMenu]=setTimeout('closeMenu(\"" + whatMenu + "\")', 300)");
}

// Turns a menu off
function closeMenu(whatMenu) {
	getObj("menu" + whatMenu).style.display = "none";
}

function getObj(nm) {
	if (document.getElementById) {
		return document.getElementById(nm);
	} else if (document.all) {
		return document.all[nm];
	} else {
		return eval("document." + nm);
	}
}

var mtimer=new Array();
	var ls=-1;
	function getObj(nm) {
		if (document.getElementById) {
			return document.getElementById(nm);
		} else if (document.all) {
			return document.all[nm];
		} else {
			return eval("document." + nm);
		}
	}

function menuOnImg(whatMenu, image) {
	getObj("menuHeaderImage" + whatMenu).src = "graphics/button_" + image + "_on.jpg";
}

function menuOutImg(whatMenu, image) {
	getObj("menuHeaderImage" + whatMenu).src = "graphics/button_" + image + "_off.jpg";
}

function buttonSwapOn(whatMenu, image) {
	getObj("buttonImage" + whatMenu).src = "graphics/button_" + image + "_on.gif";
}

function buttonSwapOff(whatMenu, image) {
	getObj("buttonImage" + whatMenu).src = "graphics/button_" + image + "_off.gif";
}

/********************************************************************************/
/* For all the general JS functions                                             */
/* edk 22 april 2004                                                            */
/********************************************************************************/

/********************************************************************************/
/* To allow a window to open for a full image view                              */
/********************************************************************************/
function show(s, t) {
	//alert("hello");
	window.open("image.asp?s=" + escape(s) + "&t=" + escape(t), "imgWin", "scrollbars=0,toolbar=0,resize=0,width=0,height=50");
}

/********************************************************************************/
/* To work with the show() function above with imag pop ups                     */
/********************************************************************************/
function openWin( windowURL, windowName, windowFeatures ) { 
	return window.open( windowURL, windowName, windowFeatures ) ; 
}
