<!--
/* programerbarlink.js */
// alert("oop");

function menulinktest(kode){
 // alert("link oop 2" + kode);
 if(kode == 'velkommen'){ 
   // alert("link test 2" + kode);
   // window.location.href="hjemmesiden/velkomstlogin/velkommen.html"; 
   window.location.href="hjemmesiden/velkomstlogin/velkommen.html"; 
 }
}


function pgmlink(kode){
 // alert("test 1" + kode);
 if(kode == "side1"){ window.location.href="side1.html";}
 if(kode == "side2"){ window.location.href="side2.html";}
 if(kode == "side3"){ window.location.href="side3.html";}

 /*
 if(kode == "retur"){ window.location.href="programerbarlink-standard-layout.html";}
 if(kode == "retur"){ window.location.href="programerbarlink-standard-oop-layout.html";}
 if(kode == "hovedsiden"){ window.location.href="programerbarlink-standard-oop-layout.html";}
 if(kode == "hovedsidenoop"){ hovedsiden.Skiftlinkside(); }
 */
 if(kode == "velkommen"){ velkomstsiden.Skiftlinkside(); }
 // if(kode == "velkommen"){ window.location.href="hjemmesiden/velkomstlogin/velkommen.html"; }
 if(kode == "forsiden"){ forsiden.Skiftlinkside(); }


}
/*
Valdemar = new Card("Valdemar Christensen", "-", "-", "-", "-"); 
Alfred.PrintCard();
hovedsiden = new Card("programerbarlink-standard-oop-layout.html", "-", "-", "-", "-"); 
hovedsiden.PrintCard();
hovedsiden = new Card("programerbarlink-standard-oop-layout.html", "-", "-", "-", "-"); 

*/
forsiden = new Card("../../index.html", "-", "-", "-", "-"); 

velkomstsiden = new Card("hjemmesiden/velkomstlogin/velkommen.html", "-", "-", "-", "-"); 

function Skiftlinkside(){
   // window.location.href="programerbarlink-standard-oop-layout.html";
   window.location.href=this.navn;
}

function PrintCard() {
   alert("oop 1");
   /*
   document.write("<B>     </B> ", this.navn, "<BR>");
   
   document.write("<B>Navn:</B> ", this.navn, "<BR>");
   document.write("<B>Hustru:</B> ", this.hustru, "<BR>");
   document.write("<B>Børn:</B> ", this.navn_boern, "<BR>");
   document.write("<B>Født:</B> ", this.foedt_sted, "<BR>");
   document.write("<B>Fødeegn:</B> ", this.foedested_navn, "<HR>");
   */
}
function Card(navn,hustru,boern,sted,foedested) {
   this.navn = navn;
   this.hustru = hustru;
   this.navn_boern = boern;
   this.foedt_sted = sted;
   this.foedested_navn = foedested;
   this.PrintCard = PrintCard;
   this.pgmlink = pgmlink;
   this.Skiftlinkside = Skiftlinkside;
}


//-->
