function sw(objName,onoff) {
	var e = document.getElementById(objName);
	if (onoff == 1) {
	
		if (e.overFileName == null) {
			e.myFileName = e.src;
			var extStart = 0;
			if (e.src.indexOf(".gif") > 1) {
				extStart = e.src.indexOf(".gif");
			} else if (e.src.indexOf(".jpg") > 1) {
				extStart = e.src.indexOf(".jpg");
			} else {
				extStart = e.src.indexOf(".png");
			}
			var overFileName = e.src.substr(0,extStart) + "_over" + e.src.substr(extStart,e.src.length);
			e.overFileName = overFileName;
		}

		e.src = e.overFileName;
		
	} else {
		e.src = e.myFileName;
	}
}

function openWin(url,w,h) {
	
	window.open(url,"erd","height=" + h + ",width=" + w + ",menubar=no,toolbar=no,scrollbars=yes,titlebar=no");
	
}

function showDiv(divID) {
	
	var e = document.getElementById(divID);
	e.style.display = "block";
	
}

function hideDiv(divID) {
	
	var e = document.getElementById(divID);
	if (e != undefined) e.style.display = "none";
	
}
