<!--
function frameCheck()
{ 
	if (self != top && parent.top || window.opener)
		return;

	str = location.pathname.substring(1);
	params = location.search + '';
	if ((str.indexOf("kp")>-1))
		url = "/kp/index.asp";
	else
		url	= "/index2.asp";
	top.location.replace( url + '?' + str + location.search + location.hash );
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function hidemail(part2, part1, part3, part4) {
  var part1;
  var part2;
  var part3;
  var part4;
  document.write('<a href="' + '&#109;&#97;&#105;&#108;' + '&#116;&#111;&#58;' + part3 + '%20%3c' + part1 + '&#064;');
  document.write(part2 + '%3e' + '"'+ ' onmouseover="window.status=\'' + '&#109;&#97;&#105;&#108;' + '&#116;&#111;&#58;');
  document.write(part1 + '&#64;' + part2 + '\'; return true" onmouseout="window.status=\'\'; return true"');
  document.write(' onclick="window.status=\'\'; return true"');
  document.write(part4);
  document.write('>' + part1 + '&#064;' + part2 + '</a>');
}

function hidemail2(part2, part1, part3, part4) {
  var part1;
  var part2;
  var part3;
  var part4;
  document.write('<a href="' + '&#109;&#97;&#105;&#108;' + '&#116;&#111;&#58;' + part3 + '%20%3c' + part1 + '&#064;');
  document.write(part2 + '%3e' + '"'+ ' onmouseover="window.status=\'' + '&#109;&#97;&#105;&#108;' + '&#116;&#111;&#58;');
  document.write(part1 + '&#64;' + part2 + '\'; return true" onmouseout="window.status=\'\'; return true"');
  document.write(' onclick="window.status=\'\'; return true"');
  document.write(part4);
  document.write('>E-post</a>');
}

function CountChars(s) {
  l=s.length;
  document.all('charcount').innerText=l;
}

function CountChars2(s) {
  l=s.length;
  document.all('charcount2').innerText=l;
}

function NewPage(xxx) {
  window.document.Search.page.value=xxx;
  window.document.Search.submit();
  return true;
}

function removeError(mytagid) {
  var newColor = "transparent";
  if((document.getElementById)&& (document.getElementById(mytagid)!=null)) {
    var myElement = document.getElementById(mytagid);
    if ((myElement.style)&& (myElement.style.backgroundColor!=null)) {
      document.getElementById(mytagid).style.backgroundColor = newColor;
    }
    else { 
      return;
    }
  }
  else {
    return;
  }
}

function openPopup(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function openPictureWindow_Fever(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) {  // v4.01
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	if (imageType == "swf"){
	newWindow.document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('<param name=movie value=\"'+imageName+'\"><param name=quality value=high>');
	newWindow.document.write('<embed src=\"'+imageName+'\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('</embed></object>');	}else{
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">'); 	}
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
// OBS! ingen radbrytning i texten nedan
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
//slut på område utan radbrytning
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//-->