var slock = 0; var ssubmit = 0; function submitProc() { if (ssubmit == 0) { ssubmit = 1; return true; } return false; } function lock() { slock = 1; } function unlock(){ slock = 0; } function disableLeftMeni() { try { parent._cgleft.unlock(); }catch(napaka) {} } function go(s) { if (s != "") parent._cgmain.location = s; } function goDelete(s) { if (s != "") if (confirm('Da li ste sigurni?')) parent._cgmain.location = s; } function goL(s) { if (s != "") parent._cgleft.location = s; } function goSL(s, l) { RedHighLightOn(l); goL(s); } function goX(s) { if (s != "") parent.location = s; } function go1(s, l) { if (s != "" && slock == 0) { lock(); if (DefMeni != "") RedHighLightOff(DefMeni); DefMeni = l; RedHighLightOn(l) parent._cgmain.location = s; } } function goXX(s) { if (s != "") { parent._cgmain.location = 'CGBlank.html'; parent._cgmenu.location = 'CGBlank.html'; parent._cgmain.location = s; } } function showHint(atr) { atr = 'ZZiEclHintServlet?atr=' + atr; parent._cgbottom.location = atr; } var DefMeni = ""; function HighLightOn(s) { s.style.background="#C0C0C0"; //s.style.background="DarkOliveGreen"; //s.style.color="#336699"; s.style.color="#1144EE"; } function HighLightOff(s) { if (s != DefMeni) { s.style.background="transparent"; s.style.color="Black"; } else RedHighLightOn(s); } function RedHighLightOn(s) { //s.style.background="#336699"; //s.style.background="#6699cc"; s.style.background="#000000"; s.style.color="White"; } function RedHighLightOff(s) { s.style.background="transparent"; s.style.color="black"; } function placeFocus() { if (document.forms.length > 0) { var field = document.forms[0]; for (i = 0; i < field.length; i++) { if (((field.elements[i].type == "text") || (field.elements[i].type == "textarea") || (field.elements[i].type == "password") || (field.elements[i].type.toString().charAt(0) == "s")) && (!field.elements[i].disabled)) { document.forms[0].elements[i].focus(); break; } } } } function openTwoLinesWindow(sHeader, sTekst1, sTekst2) { var sZapri = "Zatvori" var horSize = 0; if (sTekst1.length > sTekst2.length) horSize = sTekst1.length *20; else horSize = sTekst2.length *20; var verSize = 0; if (sTekst2 == null || sTekst2 == "") verSize = 150; else verSize = 200; var attr = "width=" + horSize + " height=" + verSize; attr += " left=" + ((screen.width-horSize)/2) + " top=" + (screen.height - verSize)/2 + " resizable=no, toolbar=no, directories=no, menubar=no"; PrvoOkno = open("", "mojeokno",attr); PrvoOkno.document.writeln(""); PrvoOkno.document.writeln(""); PrvoOkno.document.writeln("
"); PrvoOkno.document.writeln(""); PrvoOkno.document.writeln("