function Otevri_popup(sirka, vyska) { msg = window.open('content/popup.php', 'nove_okno', 'toolbar=no,menubar=no,location=no,directories=no, scrollbars=no,resizable=yes,status=no,width='+sirka+',height='+vyska+',top=50,left=50') //Pozor, definice prom?nné msg musí být napsána na jednom ?ádku! } function image_preview(imageurl, width, height, previewfile) { msg = window.open('templates/'+previewfile+'?image_path='+imageurl, 'image', 'toolbar=no,menubar=no,location=no,directories=no, scrollbars=no,resizable=yes,status=no,width='+width+',height='+height+',top=50,left=50') //Pozor, definice proměnné msg musí být napsána na jednom řádku! } function runList(limit,from) { document.getElementById('from').value = from; document.getElementById('limit').value = limit; var oForm = document.getElementById('formular'); oForm.submit(); } function setCheckboxes(the_form, do_check) { var elts = (typeof(document.forms[the_form].elements['check[]']) != 'undefined') ? document.forms[the_form].elements['check[]'] : document.forms[the_form].elements['check[]']; var elts_cnt = (typeof(elts.length) != 'undefined') ? elts.length : 0; if (elts_cnt) { for (var i = 0; i < elts_cnt; i++) { elts[i].checked = do_check; } // end for } else { elts.checked = do_check; } // end if... else return true; } function rozbal_menu(nov_str,img) { z = nov_str; x = document.getElementById(z).style.display; y = 'none'; document.getElementById(img).src = "images//plus.gif"; if (x == 'none') { document.getElementById(img).src = "images//minus.gif"; y = 'inline'; } document.getElementById(z).style.display = y; } function nastav_homepage(link) { document.body.style.behavior='url(#default#homepage)'; document.body.setHomePage(link); } function setFormAction(objForm, strAction){ objForm.action=strAction; objForm.submit(); } function setFormTargetAction(objForm, strTarget, strAction){ objForm.action=strAction; objForm.target=strTarget; objForm.submit(); } function getFormAction(objForm){ return objForm.action; } function getFormTarget(objForm){ return objForm.target; } function changeFormTargetAction(objForm, strTarget, strAction){ objForm.action=strAction; objForm.target=strTarget; } function updateFormAction(objForm, strAction){ if (objForm.action == ''){ var str_and = ""; } else { var str_and = "&" } objForm.action = objForm.action + str_and + strAction; objForm.submit(); } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i