function createRequest() {

   try {
    xmlhttp = new myXMLHttpRequest();
   } catch (e) {
    xmlhttp = false;
   }

  return xmlhttp;
}

function myXMLHttpRequest() {
	  var xmlhttplocal;

	  try {
	   
	    xmlhttplocal= new ActiveXObject("Msxml2.XMLHTTP")
	 } catch (e) {
	  try {
	    xmlhttplocal= new ActiveXObject("Microsoft.XMLHTTP")
	  } catch (E) {
	    xmlhttplocal=false;
	  }
	 }

	if (!xmlhttplocal && typeof XMLHttpRequest!='undefined') {
	 try {
	  var xmlhttplocal = new XMLHttpRequest();
	 } catch (e) {
	  var xmlhttplocal=false;
	  alert('couldn\'t create xmlhttp object');
	 }
	}
	return(xmlhttplocal);
}


function changeText( elementId, text ) {

  var viewer = document.getElementById(elementId);

  if (!viewer)
    alert(elementId);
  
  viewer.innerHTML = text;
}


function krut(eName) {

  changeText(eName, '<img src="/layout/public/images/working.gif" />');

}