function SBox_Space() {document.write("<tr><td ID=MI_S></td></tr>");}
function SBox_Line() {document.write("<tr><td ID=MI_L></td></tr>");}
function SBox_Head(Nr,n) {document.write("<tr><td ID=MI_Hed><table Class=MI_Hed_T><tr><td ID=MI_Hed_T_1 onclick=\42SBox_Ev_ShowHide("+Nr+")\;test("+Nr+")\;\42><center><img ID='cool"+Nr+"' src=\42"+App_GfxPath+"Menus/arrow.down.png\42></center></td><td ID=MI_Hed_T_2>"+n+"</td></tr></table></td></tr>");}
function SBox_Heads(Nr,n,pix) {
if (pix == "0") {IPix = "arrow.right.png";} 
else{IPix = "arrow.down.png";}
document.write("<tr><td ID=MI_S></td></tr><tr><td ID=MI_L></td></tr><tr><td ID=MI_Hed><table Class=MI_Hed_T><tr><td ID=MI_Hed_T_1 onclick=\42SBox_Ev_ShowHide("+Nr+")\;test("+Nr+")\;BoxExt("+pix+","+Nr+")\;\42><center><img ID='cool"+Nr+"' src=\42"+App_GfxPath+"Menus/"+IPix+"\42></center></td><td ID=MI_Hed_T_2>"+n+"</td></tr></table></td></tr><tr><td ID=MI_L></td></tr>");}
var IStat="";
function SBox_Start(Nr,Bs,Ha){
IStat = (Bs == "")?"none":"";
document.write("<tr id='Side_Box_S_"+Nr+"' style=\42display:"+IStat+"\42><td height='"+Ha+"' ID=\42MI_Con\42>"+"<p ID=MI_Box>");
}
function SBox_End(Nr){document.write("</td></tr> <tr ID='Side_Box_E_"+Nr+"' style='display:"+IStat+";' ><td ID=\42MI_L\42></td></tr>");}
function SBox_Ev_ShowHide(Nr){st=document.getElementById('Side_Box_S_'+Nr).style;st.display=(st.display=='none')?'block':'none';st=document.getElementById('Side_Box_E_'+Nr).style;st.display=(st.display=='none')?'block':'none';}
function test(Nr) {testpic=document.getElementById('cool'+Nr);if (testpic.src.indexOf('down')>-1) testpic.src='gfx/Menus/arrow.right.png'; else testpic.src='gfx/Menus/arrow.down.png';}

function GfxPic(i,x,y){document.write("<img src=\"",App_GfxPath,"",i,"\" width=",x," height=",y,">");}
Epic='gfx/c.gif'
function BoxExt(CS,BI) {
RStr = "S="+CS+"&B="+BI
document.getElementById('Box_Win').src='BoxExt.Asp?'+RStr;
}
function unuser(Nr){document.getElementById('app'+Nr).checked = false;}
function unchek(Nro){document.getElementById('appra'+Nro).checked = false;document.getElementById('apprb'+Nro).checked = false;}
function S_L(Let) {document.write("<a href=UsrViewUserList.Asp?LetP="+Let+">"+Let+"</a> \174 ");}
function S_L_E() {document.write("<a href=UsrViewUserList.Asp?LetP=1>Andre</a>");}


function Showdat(){
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var daym=mydate.getDate()
var month=mydate.getMonth()
if (daym<10)
daym="0"+daym
var dayarray=new Array("Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag")
var montharray=new Array("Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December")
document.write("<small><font color='000000' face='Verdana' font size='1' >"+dayarray[day]+" d. "+daym+" "+montharray[month]+" "+year+"</b></font></small>")
}