// ajax-lib uja070202 - läd php-reply als text/plain in auswerten(txt) ab
// --------------------------------------------------------------------------------------------------------------
function create_httprequest() // returns a browser-independend httpRequest Object
{ var req = null;
  try { req = new ActiveXObject("MSXML2.XMLHTTP"); }                        // IE-Äh
  catch (err_MSXML2)
  { try { req = new ActiveXObject("Microsoft.XMLHTTP"); }                   // Ie-Äh neu
    catch (err_Microsoft)
    { if (typeof XMLHttpRequest != "undefined") req = new XMLHttpRequest; // Mozzarella und Co
    }
  }
  return req;
}

function ajax(req,proggi,qstring) 
{ 
  req.open("GET",proggi+'?'+qstring,true); // Request zusammenstellen - Anfrage senden
  req.onreadystatechange=function()
  { if (req.readyState==4) if (req.status==200) auswerten(req.responseText); 
  }
  req.send(null);
}
