function setSubMenu(menuCellId) {
	if (menuCellId !== null && menuCellId != null ) {
		var cell = document.getElementById(menuCellId);
		cell.onMouseOver = null;
		cell.onmouseout = null; // "this.className = 'onMoContentMenuLevel1';";
		if (cell.className == 'contentMenuLevel1') {
			cell.className = 'onMoContentMenuLevel1';
		} else {
			cell.className = 'onMoContentMenuLevel2';
		}
		
	}
}

function setTopMenu(menuCellId) {
	if (menuCellId !== null && menuCellId != null ) {
		var cell = document.getElementById(menuCellId);
		cell.onMouseOver = null;
		cell.onmouseout = null; // "this.className = 'onMoContentMenuLevel1';";
		if (cell.className == 'menuTop') {
			cell.className = 'onMoMenuTop';
		}
		
	}
}

function change (url1)
{
location.href = url1;
}


function printTable(elm) {
   if(elm.id == "info") {
       var w = window.open("", "foo");
       with(w.document) {
           open();
          write("<html><head><LINK href='../css/idhammar_stilmall_print.css' type=text/css rel=stylesheet></head><body onload='window.print(); window.close();window.resizeTo(800,650)'>");
           write("<table>" + elm.innerHTML + "</table>");
           write("<body></html>");
           close();
       }
   } else if(elm.parentNode) {
       printTable(elm.parentNode);
   }
}

function printTableKurser(elm) {
   if(elm.id == "info") {
       var w = window.open("", "foo");
       with(w.document) {
           open();
          write("<html><head><LINK href='../css/idhammar_stilmall.css' type=text/css rel=stylesheet></head><body onload='window.print(); window.close();window.resizeTo(800,650)'>");
           write("<table>" + elm.innerHTML + "</table>");
           write("<body></html>");
           close();
       }
   } else if(elm.parentNode) {
       printTable(elm.parentNode);
   }
}

function popup(url, name, width, height)
{
settings=
"toolbar=no,location=no,directories=no,"+
"status=no,menubar=no,scrollbars=yes,"+
"resizable=yes,width="+width+",height="+height;

MittNyaFönster=window.open(url,name,settings);
}





