    /* if (window != top)
    top.location.href = location.href;*/
    var styleNum = 2;
    document.styleSheets[0].href = "sys/styles/styles.css";
    document.styleSheets[1].href = "sys/styles/commonstyles.css";

    var sPopupMenu0 = "";
    function preparePopupMenuNorveg()
    {
      sPopupMenu0 = document.getElementById("hiddenpumenu0").innerHTML;
      document.getElementById("hiddenpumenu0").innerHTML = "";
    }

    function popupMenu0(show)
    {
      if (show == true)
      {
        document.getElementById("pumenu0").innerHTML = sPopupMenu0;
      } else
      {
        document.getElementById("pumenu0").innerHTML = "&nbsp;";
      }
    }

    function popupMenuNorveg(show)
    {
      if (show == false)
      {
        document.getElementById("pumenu0").innerHTML = "&nbsp;";
      }
    }


    function changeStyle()
    {
      if (styleNum == 1)
      {
        document.styleSheets[0].href = "sys/styles/styles.css";
        styleNum = 2;
      } else 
      {
        document.styleSheets[0].href = "sys/styles/styles2.css";
        styleNum = 1;
      }
    }

    function printThisPage()
    {
       var sOptions = "toolbar=yes, location=no, directories=yes, menubar=yes, scrollbars=yes, width=750, height=600, left=100, top=25";
       var sContents = document.getElementById('lrcontents').innerHTML;
       var printWindow = window.open("", "printer", sOptions);

       printWindow.document.open();
       var S = '<html><head><link rel="stylesheet" href="sys/styles/printstyles.css" type="text/css"></head><body bgcolor="#FFFFFF">' + 
         '<p><center><b>' + document.title + '</b><hr><br></center></p><center>' + sContents + '</center>' +
         '<center><form><input type="button" OnClick="window.close()" value="Close window"></form><br><hr></center>' +
         '<p><center>www.norveg.org</center></p></body></html>';
       printWindow.document.write(S);
       printWindow.document.close();
       printWindow.focus();
    }

    function newEmail(address, addrName)
    {
       var sOptions = "toolbar=yes, location=no, directories=yes, menubar=yes, scrollbars=yes, width=400, height=400, left=100, top=25";
       var emailWindow = window.open("", "printer", sOptions);

       emailWindow.document.open();
       var S = '<html><body bgcolor="#FFFFFF"><center><p><b>' + document.title + '</b></p><hr>' +
         '<p>' + addrName + '<br>' + address + '</p>' +
         '<a href="mailto:' + address + '">Send using your e-mail client ></a><p>&nbsp;</p>' +
         '<form><input type="button" OnClick="window.close()" value="Close window"></form><br><hr>' +
         '<p>www.norveg.org</p></center></body></html>';
       emailWindow.document.write(S);
       emailWindow.document.close();
       emailWindow.focus();
    }

    function tableStart() { document.write('<table border="0" cellspacing="0" cellpadding="0"><tbody><tr><td>'); }
    function tableRow() { document.write('</tr><tr>'); }
    function tableCol() { document.write('</td><td>'); }
    function tableEnd() { document.write('</td></tr></tbody></table>'); }