var klik = "";
function aktiv(el){
    if (klik!="" ) inaktiv(klik);
    klik = el;
    el.className = "aktiv";
}
function inaktiv(el){
    el.className = "menupunkt";
}

function printpage()
{
window.print()
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

  function checkAll( elem ){
      var dkpost = document.dkpost;
        for( i  =0; i<dkpost.length; i++ ){
          if( dkpost.elements[ i ].type == "checkbox" ) {
              dkpost.elements[ i ].checked = elem.checked;
            }
        }
    }

function brugerlog(f) {	

        if (f.brugernavn.value.length < 1) {
            alert("du har glemt at indtaste dit brugernavn");
            return false;
        }
   if (f.password.value.length < 1) {
            alert("du har glemt at indtaste dit password");
            return false;
        }
        
        return true;
    }

    function val(f) {

        if (f.navn.value.length < 1) {
            alert("du har glemt at indtaste dit navn");
            return false;
        }
             return true;
    }  
	
	function nyheds(f) {
    if (emailCheck(f.mail.value) == false) {
            alert('Du har ikke indtastet en gyldig E-mail');
            return false;
        }
        return true;
            }