
     dnes=new Date();
     d=dnes.getDay();

     //Určení dne v týdnu a jeho pojmenování

     if(d==1){document.writeln("pondelok")}
       else {if(d==2){document.writeln("utorok")}
       else {if(d==3){document.writeln("streda")}
       else {if(d==4){document.writeln("štvrtok")}
       else {if(d==5){document.writeln("piatok")}
       else {if(d==6){document.writeln("sobota")}
       else {if(d==0){document.writeln("nedeľa")}
       }}}}}};

