var DokB = 0, DokH = 0;
var sokeord;

if (typeof( window.innerWidth ) == 'number' ) {
  //Non-IE
  DokB = window.innerWidth;
  DokH = window.innerHeight;
}
else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
  //IE 6+ in 'standards compliant mode'
  myWidth = document.documentElement.clientWidth;
  myHeight = document.documentElement.clientHeight;
}
else if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
  //IE 4 compatible
  myWidth = document.body.clientWidth;
  myHeight = document.body.clientHeight;
}

/* MARTIN: Dette funker ikke...
DokB = document.body.innerWidth;
DokH = document.body.innerHeight; */

  function AdminKnapp () {
  document.getElementById("topp").innerHTML += "<input type=\"button\" value=\" \" style=\"position: absolute; top: 0; left: 50%; margin-left: 480px; padding: 0; width: 5px; height: 5px; font-size: 1px; outline: none; border: none; background-color: inherit;\" onclick=\"window.location='admin'\" />";
  
    if (document.sok != undefined) {
      sokeord = "Søkeord...";
      document.sok.sokord.value=sokeord;
      document.sok.sokord.style.color='#445544';
    }
  }

  function FiksPrFelt () {
  Div = document.getElementById("prfelt");
  Div.style.width = (DokB - 200) + "px";
  Div.style.height = (DokH - 500) + "px";
  }