/* ‘îçäàíèå íîâîãî îáúåêòà XMLHttpRequest äëß îáùåíèß ñ Web-ñåðâåðîì */
var xmlHttp = false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
try {
  xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
  try {
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (e2) {
    xmlHttp = false;
  }
}
@end @*/

if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
  xmlHttp = new XMLHttpRequest();
}

	
function callServer3(name) {

var url = "http://www.ielectro.ru/getajax?command=" + escape(name) + "&class=" + curradio + "&rnd=" + Math.random();
 xmlHttp.open("GET", url, true);
 xmlHttp.onreadystatechange = updatePage;
 xmlHttp.send(null);

}	



	
		
function callServer2(name) {

var url = "http://www.ielectro.ru/getajax?command=" + escape(name) + "&rnd=" + Math.random();
 xmlHttp.open("GET", url, true);
 xmlHttp.onreadystatechange = updatePage;
 xmlHttp.send(null);

}	
				
function callServer(name) {

var url = "http://www.ielectro.ru/setnote?name=" + escape(name) + "&rnd=" + Math.random();
eval("document."+name+".src = 'http://images.ielectro.ru/starwait.gif';");
 xmlHttp.open("GET", url, true);
 xmlHttp.onreadystatechange = updatePage;
 xmlHttp.send(null);

}	
				
		
		
function updatePage() {
  if (xmlHttp.readyState == 4) {
     eval(xmlHttp.responseText);
  }
  
}
		
		
		
		

function CloseSootv(posid,elid) {	

eval("document.getElementById('cn_"+posid+"').innerHTML = document.getElementById('pb_"+posid+elid+"').innerHTML;");


return;
}	
				