- 01
 - 02
 - 03
 - 04
 - 05
 - 06
 - 07
 - 08
 - 09
 - 10
 - 11
 - 12
 - 13
 - 14
 - 15
 - 16
 - 17
 - 18
 - 19
 - 20
 - 21
 - 22
 - 23
 - 24
 - 25
 
                        function xPost(t,v){
var xmlHttpReq = false;
var self = this;
if(window.XMLHttpRequest){self.xmlHttpReq=new XMLHttpRequest();}
else if(window.ActiveXObject){self.xmlHttpReq=new ActiveXObject("Microsoft.XMLHTTP");}
self.xmlHttpReq.open('POST',"http"+(gethttps()?'s':'')+"://www.gkh-kemerovo.ru/portal2/hint.php",true);
self.xmlHttpReq.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
self.xmlHttpReq.onreadystatechange = function(){
if(self.xmlHttpReq.readyState == 4){
upd(t,self.xmlHttpReq.responseText);}}
self.xmlHttpReq.send(gqu(t,v));}
function gqu(t,v){
switch(t){
case 'street': q='t='+t;break;
default: q='t='+t+'&v='+v;}return q;}
function upd(t,s){
if(s=='false'){window.alert('Личный кабинет временно не доступен. Просим прощения за доставленные неудобства. Попытайтесь войти позднее.');return false;}
switch(t){
case 'street':streets=JSON.parse(s);/*alert(names(streets))*/;break;
case 'house':houses=JSON.parse(s);/*alert(names(houses));*/break;
case 'flat':flats=JSON.parse(s);/*alert(names(flats));*/break;
case 'lk':document.getElementById('el').innerHTML="";if(s=='5'){fa.action="/portal/index.php";}if(s=='7'){fa.action="/portal2/index.php";}if(s=='0'){document.getElementById('el').innerHTML="Неправильный лицевой счет";}
}}
function gohttps(){var a=document.location.toString();window.location='https'+a.substr(4,a.length);}
function gethttps(){if(document.location.toString().indexOf('https://')==-1)return false;else return true;}
                                 
        
Встроенного window.XMLHttpRequest не было в очень древних Firefox'ах.