// JavaScript Document

function displayAnnonce (parameterContent){
	document.getElementById('displayAnnonce').innerHTML = parameterContent;
}




startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;


function setHome(){
   document.body.style.behavior='url(#default#homepage)';
   document.body.setHomePage(window.location.href);
}



function validate_form(thisform){
	
var avlernummer = document.getElementById("avlernummer");
//alert ('anv: '+avlernummer.value);
	if (avlernummer.value==null || avlernummer.value==""){
		alert ("venligst indtast avlernummer");
		return false;
	} else {
		return true;
	}
}

