<!--
function toggleBg(src_name) {
	var check = document.all(src_name).className;
	var lnk_check = "lnk_" + src_name;
	if (check == "mmTextOver"){
		document.all(src_name).className = "mmText";
		document.all(lnk_check).className = "mmLinkText";
		}
	else{
		document.all(src_name).className = "mmTextOver"; 
		document.all(lnk_check).className = "mmLinkTextOver";
		}
};//end function toggleBG(src_name);

function toggleNavBg(src_name) {
	var check = document.all(src_name).className;
	var lnk_check = "lnk_" + src_name;
	if (check == "navTextOver"){
		document.all(src_name).className = "navText";
		document.all(lnk_check).className = "navLinkText";
		}
	else{	
		document.all(src_name).className = "navTextOver"; 
		document.all(lnk_check).className = "navLinkTextOver";
		}
};//end function toggleNabBg(src_name);

function readWidth(){
	sWidth = document.body.offsetWidth;
	if (sWidth < 640) rWidth = 600;
	else rWidth = sWidth - 160;
	return (rWidth);
};

function screenWidth() {
	var sWidth;
	var textShow;
	sWidth = readWidth();
	textShow = "<span id=mainContent STYLE='position:absolute;width:" + sWidth +"px\;'>";
	document.write (textShow);
};


function showMe(list,change) {
    if (list.style.display=="none")    {
		change.src = thisImagePath + "minus.gif";
		list.style.display = "";
    }
    else    {
		change.src = thisImagePath + "plus.gif";
		list.style.display = "none";
    }
};


//QuickMenu's Function, used to toggle the menu.
function toggleQM(){
	if (QuickMenu.style.display=="none")	{
		QuickMenu.style.display="";
		IQuickMenu.title = "Hide this Box";
	}
	else	{
		QuickMenu.style.display = "none";
		IQuickMenu.title = "Show this Box";
	}
};

function showCourseContent(i, d){
	desc = d;
	img = i;
	crsCont.filters[0].apply();
	crsCont.innerHTML = i + d;
	crsCont.filters[0].play(0.5);
};
	
function forceValue(){
	document.all("ipt_phy").checked = true;
};

function showDir(list,change) {
    if (list.style.display=="none")    {
		change.src = thisImagePath + "fldr_o.gif";
		list.style.display = "";
		 }
    else    {
		change.src = thisImagePath + "fldr_c.gif";
		list.style.display = "none";
		}
};

function showDir2(change) {
	var s = change.src;
	s = s.indexOf("space.gif"); 
	if ( s >= 0)   {
		change.src = thisImagePath + "arrow-left-red.gif";    }
    else    {
		change.src = thisImagePath + "space.gif";    }
};

function showCont(target){
thisLayer = target;
thisLayerImg = "I_" + target;
		if (document.all(thisLayer).style.display == ""){
				document.all(thisLayer).style.display = "none";
				document.all(thisLayerImg).src = "/image/plus.gif";	 }
		else{
				document.all(thisLayer).style.display = ""
				document.all(thisLayerImg).src = "/image/minus.gif";	}
};

function toggleMenu(){
	menuName = window.event.srcElement.parentElement.id;
	imageName = "I"+menuName;
	menuName = menuName + "Content";
	showID = 0
	
	if (document.all(menuName).style.display == "none")	{
		document.all(menuName).style.display = "";
		document.all(imageName).title = "Hide this Box";
		showID = 1;
	}
	else	{
		document.all(menuName).style.display = "none";
		document.all(imageName).title = "Show this Box";
		showID = 0;
	}
	
	return (showID);
};

function extShowMenuID(){
	userCookie = ReadCookie(MilcookieName);
	if (userCookie == null)
		showMenuID = 1;
	else
		showMenuID = parseInt(userCookie);
	//alert(showMenuID);
	createCookie(MilcookieName, showMenuID, 90);
	
	if (showMenuID)
		document.writeln("<td ID='QuickMenuContent' class='textContent' valign=top>");
	else
		document.writeln("<td ID='QuickMenuContent' class='textContent' valign=top style='display:none;'>");
};

function wrtShowMenuID(show){
	createCookie(MilcookieName, show, 90);
	//alert(show);
};

function openBrWindow(sURL,wndName,features) {
  window.open(sURL,wndName,features);
};

//-->