function treeView(id, imgId, baseURI) {
	var flg = "";
	if ( (document.getElementById) && ( navigator.appName.indexOf("Netscape") != -1) ) {
		var disp = document.getElementById(id).style.display;
		flg = "Nes" ;
	} else {
		var disp = document.all(id).style.display;
	}

	if (disp == "block") {
		if (flg == "Nes") {
			document.getElementById(id).style.display ="none";
			document.getElementById(imgId).src = contextPath + "/img/icon1.png";
		} else {
			document.all(id).style.display = "none";
			document.all(imgId).src = contextPath + "/img/icon1.png";
		}
	} else {
		if (flg == "Nes") {
			document.getElementById(id).style.display = "block";
			document.getElementById(imgId).src = contextPath + "/img/icon2.png";
		} else {
			document.all(id).style.display = "block";
			document.all(imgId).src = contextPath + "/img/icon2.png";
		}
	}
}

function treeViewHistory(id, imgId, baseURI) {
	var flg = "";
	if ( (document.getElementById) && (navigator.appName.indexOf("Netscape") != -1) ) {
		var disp = document.getElementById(id).style.display;
		flg = "Nes" ;
	} else {
		var disp = document.all(id).style.display;
	}

	if (disp == "block") {
		if (flg == "Nes") {
			document.getElementById(id).style.display ="none";
			document.getElementById(imgId).src = contextPath + "/img/icon1h.png";
		} else {
			document.all(id).style.display = "none";
			document.all(imgId).src = contextPath + "/img/icon1h.png";
		}
	} else {
	 	if (flg == "Nes") {
			document.getElementById(id).style.display = "block";
			document.getElementById(imgId).src = contextPath + "/img/icon2h.png";
		} else {
			document.all(id).style.display = "block";
			document.all(imgId).src = contextPath + "/img/icon2h.png";
		}
	}
}

function treeView_r(id, imgId, baseURI) {
	var flg = "";
	if ((document.getElementById) && ( navigator.appName.indexOf("Netscape") != -1 ) ) {
		var disp = document.getElementById(id).style.display;
		flg = "Nes" ;
	} else {
		var disp = document.all(id).style.display;
	}

	if (disp == "block") {
		if (flg == "Nes") {
			document.getElementById(id).style.display ="none";
			document.getElementById(imgId).src = contextPath + "/img/icon1_r.png";
		} else {
			document.all(id).style.display = "none";
			document.all(imgId).src = contextPath + "/img/icon1_r.png";
		}
	} else {
	 	if (flg == "Nes") {
			document.getElementById(id).style.display = "block";
			document.getElementById(imgId).src = contextPath + "/img/icon2_r.png";
		} else {
			document.all(id).style.display = "block";
			document.all(imgId).src = contextPath + "/img/icon2_r.png";
		}
	}
}

function treeViewOld(id, imgId, baseURI) {
	var flg = "";
	if ( (document.getElementById) && ( navigator.appName.indexOf("Netscape") != -1) ) {
		var disp = document.getElementById(id).style.display;
		flg = "Nes" ;
	} else {
		var disp = document.all(id).style.display;
	}

	if (disp == "block") {
		if (flg == "Nes") {
			document.getElementById(id).style.display ="none";
			document.getElementById(imgId).src = contextPath + "/img/icon1_old.png";
		} else {
			document.all(id).style.display = "none";
			document.all(imgId).src = contextPath + "/img/icon1_old.png";
		}
	} else {
		if (flg == "Nes") {
			document.getElementById(id).style.display = "block";
			document.getElementById(imgId).src = contextPath + "/img/icon2_old.png";
		} else {
			document.all(id).style.display = "block";
			document.all(imgId).src = contextPath + "/img/icon2_old.png";
		}
	}
}

