function xmlhttpPost(operacja, strURL, i, id_podstrony) { var xmlHttpReq = false; var self = this; // Mozilla/Safari if (window.XMLHttpRequest) { self.xmlHttpReq = new XMLHttpRequest(); } // IE else if (window.ActiveXObject) { self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP"); } self.xmlHttpReq.open('POST', strURL, true); self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); self.xmlHttpReq.onreadystatechange = function() { if (self.xmlHttpReq.readyState == 4) { updatepage(self.xmlHttpReq.responseText, 'result'+i); } } self.xmlHttpReq.send(getquerystring(operacja, 'f'+i,id_podstrony )); } function getquerystring(operacja,form1,id_podstrony) { var word ='id_podstrony='+id_podstrony+'&strona="2222"&operacja='+operacja; qstr = word; // NOTE: no '?' before querystring ///escape return qstr; } function updatepage(str,divn){ str1=str; str1=str1.replace(/ololol/g,"±"); str1=str1.replace(/elelel/g,"ê"); str1=str1.replace(/eell/g,"³"); str1=str1.replace(/eeesss/g,"¶"); str1=str1.replace(/88cccc/g,"æ"); str1=str1.replace(/88oooo/g,"ó"); str1=str1.replace(/88zzzz/g,"¿"); str1=str1.replace(/99zzzz/g,"¡"); str1=str1.replace(/88AAAA/g,"¡"); str1=str1.replace(/88EEEE/g,"Ê"); str1=str1.replace(/88LLLL/g,"£"); str1=str1.replace(/88SSSS/g,"¦"); str1=str1.replace(/88CCCC/g,"Æ"); str1=str1.replace(/88OOOO/g,"Ó"); str1=str1.replace(/88ZZZZ/g,"¯"); str1=str1.replace(/99ZZZZ/g,"¬"); str1=str1.replace(/88nnnn/g,"ñ"); str1=str1.replace(/88NNNN/g,"Ñ"); document.getElementById(divn).innerHTML = str1; }