function togglemenu(subm) {

        if (document.getElementById(subm).style.visibility != 'visible') {
            showID(subm);
        } else {
            hideID(subm);
        }
    }

    function showID(subm) {
        document.getElementById(subm).style.visibility = 'visible';
        document.getElementById(subm).style.display = 'block';
    }
    

    function hideID(subm) {
        document.getElementById(subm).style.visibility = 'hidden';
        document.getElementById(subm).style.display = 'none';
    }

    function underconstr() {
     document.getElementById("hotellbild").style.visibility='hidden';
     document.getElementById("underconstr").style.visibility='visible';

    }
    function closeconstr() {
     document.getElementById("underconstr").style.visibility='hidden';
     document.getElementById("hotellbild").style.visibility='visible';
    }

    function show(rubr,ingr,text,bild) {
     if (bild) {
       foto='<img src="blogg/bilder/' + bild + '">';
     }
     else {
       foto='';
     }
     document.getElementById("center").innerHTML='<table border="0" cellspacing="0"><tr><td><DIV ID="nyhetsrubr">' + rubr + '</DIV><DIV ID="nyhetsingr">' + ingr + '</DIV><p>' + foto + '<br><small><div id="nyhetstext">' + text + '</div></small></p></td></tr></table>';

    }

    function hotell() {
      document.getElementById("footer").style.visibility='hidden';
      document.getElementById("center").innerHTML='<table border="0" cellspacing="0"><tr><td><DIV ID="nyhetsingr"><center>Från och med den 1:a juni 2009 erbjuder vi 8  helrenoverade dubbelrum i hotellets huvudbyggnad.</center></DIV><br><img src="bildspel/3.jpg" width="450"><DIV ID="nyhetstext">Alla rum har dusch och toalett samt ny fräsch inredning med bekväma dubbelsängar.<br>I annexet finns 11 dubbelrum med möjlighet till extrabäddar. Dusch och toalett i korridoren.<p><big><b>Priser:</b></big><br>Dubbelrum i huvudbyggnaden 1.790:-  Dubbelrum i annexet&nbsp;840:-</DIV></td></tr></table>';
    }

    function centerframe(url) {
 //       document.getElementById("footer").style.visibility='hidden';

        if (url=='ajax_start.htm') document.getElementById("footer").style.visibility='visible';
     makeRequest(url);
        document.getElementById("center").innerHTML=svar;
  //             document.getElementById("center").innerHTML='<iframe src="ajax_boka.asp" width="500" height="450"></iframe>';
    }

function bokahkb() {
	var popurl="http://www.hkship.se/REGULJARBOKNING/PRIVATBOKN/PrivatBoknEHK.asp";
	winpops=window.open(popurl,"","scrollbars=no,top=210,left=210,width=560,height=480");
}

function charter(ship) {
	var popurl= "http://www.sweref.se/skeppslista/fartygspresentation.asp?ID=" + ship;
	winpops=window.open(popurl,"","scrollbars=no,top=150,left=150,width=650,height=400");
}
function blogg() {
	var popurl='blogg/NyhetsAdm.asp';
	winpops=window.open(popurl,"","scrollbars=no,top=100,left=100,width=800,height=480");
}
function platsbanken() {
	var popurl='platsbanken/Platsbanksmeny.asp';
	winpops=window.open(popurl,"","scrollbars=no,top=100,left=100,width=800,height=480");
}
function notes(login,pw) {
// alert('notes/Notethreads.asp?anvID=' + login + '&pw=' + pw);
 location.href='notes/Notethreads.asp?anvID=' + login + '&pw=' + pw;
}
function guestlists() {
	var popurl='guestlists/guest_arrivals.asp';
	winpops=window.open(popurl,"","scrollbars=yes,top=160,left=100,width=800,height=480");
}
function admin() {
	var popurl='internt/admin.asp';
	winpops=window.open(popurl,"","scrollbars=no,top=350,left=300,width=400,height=230");
}
function lunchlista() {
	var popurl='http://www.hkship.se/ulvohotel/lunchlistaUH.asp?UN=UH';
	winpops=window.open(popurl,"","scrollbars=yes,top=160,left=100,width=800,height=480");
}
    function closefooter() {
         document.getElementById("footer").style.visibility='hidden';
    }
    function openfooter() {
         document.getElementById("footer").style.visibility='visible';
    }

function Logintest() {

 makeRequest("loginwork.asp?username="+document.getElementById("username").value + "&password=" + document.getElementById("password").value + "&dum=" + Math.random());
 if (svar==='1'){
 	alert("FEL INLOGGNINGSUPPGIFTER!!");
 	document.getElementById("username").value = '';
 	document.getElementById("password").value = '';
 	document.getElementById("username").select();
  return false;
 }
 document.getElementById("username").value = '';
 document.getElementById("password").value = '';
 centerframe("ajax_intern_meny.asp?rights=" + svar);
 return true;
}

function boka() {
	document.getElementById("center").innerHTML="<iframe src=ajax_boka.asp width=500 height=450></iframe>";
}
function bilder() {
	centerframe('ajax_byggbilder.htm');
}
function premiar() {
	document.getElementById("center").innerHTML="<iframe src=ajax_premiar.asp width=500 height=750></iframe>";
}
function jobba() {
	document.getElementById("center").innerHTML="<iframe src=platsbanken/Platsbank.asp width=500 height=450></iframe>";
}
function film() {
	document.getElementById("center").innerHTML="<iframe src=ajax_film.htm width=500 height=450></iframe>";
}