function vismenu(menuen)
{
	if (document.getElementById(menuen).style.display == "none")
			document.getElementById(menuen).style.display = "block";
	else
			document.getElementById(menuen).style.display = "none";
	lukmenuer(menuen);
}

function lukmenuer(menu)
{
	var oColl = document.all.tags('TABLE');
	for (var i=0; i< oColl.length; i++) 
	{
		if(oColl[i].name != menu)
		{
			if (oColl[i].className == 'menu_tabel') 
				oColl[i].style.display = "none";  
		}
	}	
}
/*
function vismodulMedLink(variabel, modulnavn)
{
	vismenu(variabel);
	window.parent.main.location = "modul.asp?vis=" + modulnavn;	
}

function vismenuMedLink(variabel, visID)
{
	vismenu(variabel);
	window.parent.main.location = "vis.asp?id=" + visID;	
}

function vismodulMedLink(variabel, modulnavn)
{
	window.parent.menu.location = 'ny_menu.asp?visID=' + variabel;
	window.parent.main.location = "modul.asp?vis=" + modulnavn;	
}

function eksterntLinket(adresse, ramme, menuId)
{
	if(ramme == "_blank")
	{
		window.open(adresse);
	}
	else
	{
		window.parent.main.location = adresse;
	}
	window.parent.menu.location = "ny_menu.asp?visID=" + menuId; 
}
*/
