var reqt;
var reqtot;
var loadp = '<table><tr><td nowrap><br /><img src="image/sluzhebn/103.gif" width="100" height="15" border="0" hspace=\"5\"><img src="image/sluzhebn/103.gif" width="100" height="15" border="0" hspace=\"5\"></td></tr></table>';
var loadpp = '<table><tr><td nowrap><br /><img src="image/sluzhebn/103.gif" width="100" height="15" border="0" hspace=\"5\"><img src="image/sluzhebn/103.gif" width="100" height="15" border="0" hspace=\"5\"><img src="image/sluzhebn/103.gif" width="100" height="15" border="0" hspace=\"5\"></td></tr></table>';

function req()
 {   var A;  var msxmlhttp = new Array('Msxml2.XMLHTTP',  'Msxml2.XMLHTTP.5.0',  'Msxml2.XMLHTTP.4.0',  'Msxml2.XMLHTTP.3.0',  'Microsoft.XMLHTTP');
  for (var i = 0; i < msxmlhttp.length; i++)    { try  {  A = new ActiveXObject(msxmlhttp);   }
 catch (e)  {  A = null; }   }
 if(!A && typeof XMLHttpRequest != "undefined") { A = new XMLHttpRequest();  return A; }
  }



function processReqChangeps()
{  try { if (reqt.readyState == 4) {
       if (reqt.status == 200) { cont.innerHTML = reqt.responseText;  } else { alert("Не удалось получить данные"); }    }    }
  catch(e) {  alert("Не удалось получить данные");    }  }

function loadXMLDops(inx,inxx)
 {
   if (inx=="stridt") {  document.getElementById('sp').innerHTML = loadpp;
      text = ((document.all)?document.all['stridt'].value:document.getElementById('stridt').value);
      cont = ((document.all)?document.all['sp']:document.getElementById('sp'));
       }
   if (inx=="goridt") {  document.getElementById('sp1').innerHTML = loadp;
      text = ((document.all)?document.all['goridt'].value:document.getElementById('goridt').value);
      cont = ((document.all)?document.all['sp1']:document.getElementById('sp1')); }

  if (reqt = req())
   {  reqt.onreadystatechange = processReqChangeps;
   reqt.open("POST", "temp/top/tp.php", true);
   reqt.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
   reqt.send("t="+text+"/"+inx+"/"+inxx);   } }




