function szukaj() { var hand = document.getElementById('szukaj_val'); if(hand=='undefined' || !hand || hand.value=='') { alert('Wpisz jakiķ wyraz do wyszukania!'); return false; } top.location.href='/?akcja=szukaj&v='+encodeURIComponent(hand.value); } function szukaj_onEnter(e) { var key; if(window.event) key = window.event.keyCode; //IE else key = e.which; //firefox if(key==13) { szukaj(); return false; } return true; } function grayOut(vis, options) { var options = options || {}; var zindex = options.zindex || 50; var opacity = options.opacity || 70; var opaque = (opacity / 100); var bgcolor = options.bgcolor || '#000000'; var dark=document.getElementById('darkenScreenObject'); if (!dark) { var tbody = document.getElementsByTagName("body")[0]; var tnode = document.createElement('div'); tnode.style.position='absolute'; tnode.style.top='0px'; tnode.style.left='0px'; tnode.style.overflow='hidden'; tnode.style.display='none'; tnode.id='darkenScreenObject'; tbody.appendChild(tnode); dark=document.getElementById('darkenScreenObject'); } if (vis) { var pageWidth='100%'; var pageHeight=document.body.scrollHeight;//'100%'; dark.style.opacity=opaque; dark.style.MozOpacity=opaque; dark.style.filter='alpha(opacity='+opacity+')'; dark.style.zIndex=zindex; dark.style.backgroundColor=bgcolor; dark.style.width= pageWidth; dark.style.height= pageHeight; dark.style.display='block'; } else { dark.style.display='none'; } } function div_creator_norm(target_id,width,height,x,y,show_destroy_button,value,value_top_container_id,callback_fnc,callback_close_fnc) { // niszczymy ten element jesli juz istnieje: div_dezintegrator(target_id); // jesli mamy dopasowac automatycznie wysokosc / szerokosc do zawartosci to musimy najpierw utworzyc niewidocznego DIVa z ta zawartoscia i pobrac jej rozmiary... if(width==-1 && height == -1) { var tmpDIV=document.createElement("DIV"); tmpDIV.id='tmp_div'; // trzeba wyciac caly mozliwy javascript z testowego DIVa: tmpDIV.innerHTML=value.replace(new RegExp(/