function MakeArray(n) { this.length = n; return this; } var Days = new MakeArray(7); var Mesiace = new MakeArray(12); Days[1]="nedeľa"; Days[2]="pondelok"; Days[3]="utorok"; Days[4]="streda"; Days[5]="štvrtok"; Days[6]="piatok"; Days[7]="sobota"; Mesiace[1]="január"; Mesiace[2]="február"; Mesiace[3]="marec"; Mesiace[4]="apríl"; Mesiace[5]="máj"; Mesiace[6]="jún"; Mesiace[7]="júl"; Mesiace[8]="august"; Mesiace[9]="september"; Mesiace[10]="október"; Mesiace[11]="november"; Mesiace[12]="december"; function GetNiceDate(theDate) { m = theDate.getMinutes(); r = theDate.getYear() + 1900; if (r > 3000) r = r - 1900; if (m < 10) m = "0" + m; return Days[theDate.getDay()+1] + ", " + theDate.getDate() + ". " + Mesiace[theDate.getMonth()+1] + " " + r + ", " + theDate.getHours() + ":" + m; } function goVectorMisc(forma) { var misc = forma.misc.options[forma.misc.selectedIndex].value; var zdroj = forma.zdroj.value; var lavo = forma.lavo.value; var pravo = forma.pravo.value; document.location.href = "index.php?zdroj=" + zdroj + "&lavo=" + lavo + "&pravo=" + pravo + "&misc=" + misc; } function goVectorMisc2(forma) { var misc = forma.misc.options[forma.misc.selectedIndex].value; var zdroj = forma.zdroj.value; var lavo = forma.lavo.value; for (var i = 0; i < forma.pravo.length; i++) { if (forma.pravo[i].checked == true) { var pravo = forma.pravo[i].value; break; } } document.location.href = "index.php?zdroj=" + zdroj + "&lavo=" + lavo + "&pravo=" + pravo + "&misc=" + misc; } function goVectorLavo(forma) { var lavo = forma.lavo.options[forma.lavo.selectedIndex].value; var zdroj = forma.zdroj.value; var pravo = forma.pravo.value; var misc = forma.misc.value; document.location.href = "index.php?zdroj=" + zdroj + "&lavo=" + lavo + "&pravo=" + pravo + "&misc=" + misc; } function goVectorPravo(forma) { var pravo = forma.pravo.options[forma.pravo.selectedIndex].value; var zdroj = forma.zdroj.value; var lavo = forma.lavo.value; var misc = forma.misc.value; document.location.href = "index.php?zdroj=" + zdroj + "&lavo=" + lavo + "&pravo=" + pravo + "&misc=" + misc; } function hladaj_cnn(forma) { var lavo = forma.lavo.value; document.location.href = "index.php?zdroj=2&lavo=" + lavo; } function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true);