

function ajax(urlis,divs) 
{
	var back;
	back = '';

	if (arguments[2]=='backend') 
	{
		back = '../';
		urlis =urlis+'&backend=backend';
	}
	urlis = back+'more.php?'+urlis;
	http.open("GET", urlis, true);
	http.setRequestHeader("Content-Type", "text/xml");
	http.setRequestHeader("Charset", "Windows-1251");
	http.onreadystatechange=function() { handleHttpResponse(divs); };
	http.send(null);
 }

function handleHttpResponse(vars) 
{ 
	if (http.readyState == 4) 
	{
	// Split the comma delimited response into an array 
	results = http.responseText; 
	window.document.getElementById(vars).innerHTML = "";
	window.document.getElementById(vars).innerHTML = results;
	} 
}

function getHTTPObject() {
  var xmlhttp;

  /*@cc_on

  @if (@_jscript_version >= 5)

    try {

      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");

    } catch (e) {

      try {

        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");

      } catch (E) {

        xmlhttp = false;

      }

    }

  @else

  xmlhttp = false;

  @end @*/

  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {

    try {

      xmlhttp = new XMLHttpRequest();

    } catch (e) {

      xmlhttp = false;

    }

  }
  return xmlhttp;
}

var http = getHTTPObject(); // We create the HTTP Object
