function clientSideInclude(id, url) { if ( typeof clientSideInclude.checker == 'undefined' ) {clientSideInclude.checker = 0; }; if (clientSideInclude.checker!=1) { clientSideInclude.checker=1; if (id == "platid") { document.getElementById(id).innerHTML="
"; } else { document.getElementById(id).innerHTML="
";} var req = false; // For Safari, Firefox, and other non-MS browsers if (window.XMLHttpRequest) { try { req = new XMLHttpRequest(); } catch (e) { req = false; } } else if (window.ActiveXObject) { // For Internet Explorer on Windows try { req = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { req = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { req = false; } } } var element = document.getElementById(id); if (!element) { /* alert("Bad id " + id + "passed to clientSideInclude." + "You need a div or span element " + "with this id in your page."); */ clientSideInclude.checker=0; return; } if (req) { // Synchronous request, wait till we have it all req.open('GET', url, false); req.send(null); ttext=req.responseText; element.innerHTML = ttext; try { if (ttext.toLowerCase().indexOf(""))); } } catch(e) {alert("Nie mozna uruchomic skryptow JS!");} } else { element.innerHTML = "Sorry, your browser does not support " + "XMLHTTPRequest objects. This page requires " + "Internet Explorer 5 or better for Windows, " + "or Firefox for any system, or Safari. Other " + "compatible browsers may also exist."; } clientSideInclude.checker=0; } //checker!=1 } function clientSideIncludePOST(id, url, parametry) { if ( typeof clientSideInclude.checker == 'undefined' ) {clientSideInclude.checker = 0; }; if (clientSideInclude.checker!=1) { clientSideInclude.checker=1; if (id == "platid") { document.getElementById(id).innerHTML="
"; } else { document.getElementById(id).innerHTML="
";} var req = false; // For Safari, Firefox, and other non-MS browsers if (window.XMLHttpRequest) { try { req = new XMLHttpRequest(); } catch (e) { req = false; } } else if (window.ActiveXObject) { // For Internet Explorer on Windows try { req = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { req = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { req = false; } } } var element = document.getElementById(id); if (!element) { /* alert("Bad id " + id + "passed to clientSideInclude." + "You need a div or span element " + "with this id in your page."); */ clientSideInclude.checker=0; return; } if (req) { // Synchronous request, wait till we have it all req.open('POST', url, false); req.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); req.setRequestHeader("Content-length", parametry.length); req.setRequestHeader("Connection", "close"); req.send(parametry); ttext=req.responseText; element.innerHTML = ttext; try { if (ttext.toLowerCase().indexOf(""))); } } catch(e) {alert("Nie mozna uruchomic skryptow JS!");} } else { element.innerHTML = "Sorry, your browser does not support " + "XMLHTTPRequest objects. This page requires " + "Internet Explorer 5 or better for Windows, " + "or Firefox for any system, or Safari. Other " + "compatible browsers may also exist."; } clientSideInclude.checker=0; } //checker!=1 } //loadingpages var vurls = new Array(); var vtexts = new Array(); function clearpage() {vurls.shift();vtexts.shift();} function filtr(url) { url = this.String(url); url = url.replace(/"/g,""); url = url.replace(/'/g,""); url = url.replace(/\n/g,":::enter:::"); return url; } function rempage(url, id){vurls.push(url);vtexts.push(document.getElementById(id).innerHTML);setTimeout("clearpage()", 1000 * 60 * 10);;}; function loadpage(id, url) { mypage=""; for (k=0;k<=100;k++) {if (vurls[k] == url) {mypage=vtexts[k]; } ;} if (mypage.length > 0) { document.getElementById(id).innerHTML=mypage; ;} else { //document.all[id].innerHTML="
"; url = filtr(url); setTimeout("clientSideInclude(\""+ id + "\", \"" + url + "\"); rempage(\"" + url + "\", \"" + id + "\");", 0); };} function loadpage2(id, url) { mypage=""; for (k=0;k<=100;k++) {if (vurls[k] == url) {mypage=vtexts[k]; } ;} if (mypage.length > 0) { document.getElementById(id).innerHTML=mypage; ;} else { //document.all[id].innerHTML="
"; url = filtr(url); setTimeout("clientSideInclude(\""+ id + "\", \"" + url + "\"); rempage(\"" + url + "\", \"" + id + "\");", 0); };} function getpageanim(id, url) { //document.all[id].innerHTML="
"; url = filtr(url); setTimeout("clientSideInclude(\""+ id + "\", \"" + url + "\");", 0);;} function getpageanim2(id, url) { //document.all[id].innerHTML="
"; url = filtr(url); setTimeout("clientSideInclude(\""+ id + "\", \"" + url + "\");", 0);; } function getpage(id, url) {url = filtr(url);clientSideInclude(id, url);} function checkPESEL(str) { if (str.length == 11) { wynik = str.substr(0,1) * 1; wynik = wynik + str.substr(1,1) * 3; wynik = wynik + str.substr(2,1) * 7; wynik = wynik + str.substr(3,1) * 9; wynik = wynik + str.substr(4,1) * 1; wynik = wynik + str.substr(5,1) * 3; wynik = wynik + str.substr(6,1) * 7; wynik = wynik + str.substr(7,1) * 9; wynik = wynik + str.substr(8,1) * 1; wynik = wynik + str.substr(9,1) * 3; wynik = wynik + str.substr(10,1) * 1; if (wynik%10 == 0) {return true;} else {return false;}; } else {return false;} } function changeCharsx(str){ var strn=""; if (str.length > 0){ for (i=0;i switch (str.charCodeAt(i)) { case 261: strn = strn + "**" + str.charCodeAt(i)+"***"; break; case 281: strn = strn + "**" + str.charCodeAt(i)+"***"; break; case 243: strn = strn + "**" + str.charCodeAt(i)+"***"; break; case 347: strn = strn + "**" + str.charCodeAt(i)+"***"; break; case 322: strn = strn + "**" + str.charCodeAt(i)+"***"; break; case 380: strn = strn + "**" + str.charCodeAt(i)+"***"; break; case 378: strn = strn + "**" + str.charCodeAt(i)+"***"; break; case 263: strn = strn + "**" + str.charCodeAt(i)+"***"; break; case 324: strn = strn + "**" + str.charCodeAt(i)+"***"; break; case 280: strn = strn + "**" + str.charCodeAt(i)+"***"; break; case 211: strn = strn + "**" + str.charCodeAt(i)+"***"; break; case 260: strn = strn + "**" + str.charCodeAt(i)+"***"; break; case 346: strn = strn + "**" + str.charCodeAt(i)+"***"; break; case 321: strn = strn + "**" + str.charCodeAt(i)+"***"; break; case 379: strn = strn + "**" + str.charCodeAt(i)+"***"; break; case 377: strn = strn + "**" + str.charCodeAt(i)+"***"; break; case 262: strn = strn + "**" + str.charCodeAt(i)+"***"; break; case 323: strn = strn + "**" + str.charCodeAt(i)+"***"; break; default: strn = strn + "" + str.charAt(i); } //switch } //for } //if return strn; } //function function formChkActiveElements(formName) { var str = ''; var elem = document.getElementById(formName).elements; for(var i = 0; i < elem.length; i++) { if (elem[i].type == 'checkbox') { if (elem[i].checked) {str += elem[i].name + ","} } //if } return str; } function printWindow(winName){ lewa = Math.round((screen.availWidth - 800) / 2); gora = Math.round((screen.availHeight - 600) / 2); try { if (document.getElementById(winName).style.display) {;} var toINNER = new String(); winprint=window.open("","winprint", "scrollbars=1, width=800, height=600, menubar=1, left=" + lewa + ", top=" + gora); toINNER = document.getElementById(winName).innerHTML.replace(/onclick/g,"xonclick"); toINNER = toINNER.replace(/onmouseover/g,"xonmouseover"); winprint.document.write("\nSRDS2 - Drukowanie\n
\n" + toINNER + "\n"); } catch(e){ alert("Brak elementu do druku."); } } function xlsCreate(winName){ try { document.getElementById(winName).method="post"; document.getElementById(winName).action="xls_create.php"; document.getElementById(winName).target="_blank"; velem = document.createElement('input'); velem.id = 'toXLS'; velem.name = 'toXLS'; velem.value = document.getElementById(winName).innerHTML; document.getElementById(winName).appendChild(velem); document.getElementById(winName).submit(); document.getElementById(winName).removeChild(velem); } catch(e) { alert("Brak elementu do utworzenia dokumentu XLS."); } } function linkON(obiekt){ obiekt.style.textDecoration='underline'; } function linkOUT(obiekt){ obiekt.style.textDecoration='none'; }