// <![CDATA[
var P91 = null;
// Initialisieren
function P91AUC_system(){
	if (window.XMLHttpRequest) {
	  P91 = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
	  try {
		P91 = new ActiveXObject("Msxml2.XMLHTTP");
	  } catch (ex) {
		try {
		  P91 = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (ex) {
		}
	  }
	}
}
// Statusabfrage
function P91AUC_heuri() {
  if (P91.readyState == 4) {
    var heurix = document.getElementById("P91AUC");
    document.getElementById("username").style.background = P91.responseText;
	heurix .innerHTML ="";
  }
}
// Aufrufen
function P91AUC() {
  var pas = document.getElementById("username").value;  // Name vom Formularfeld, in diesen Fall "username"
  var heurix  = document.getElementById("P91AUC");
  heurix .innerHTML = '<img src="config/loading.gif" alt="Lade..." width="16" height="16" style="width:16px;" />'; // Lade Grafik
  P91.open("GET", "functions/P91AUC.php?usernamecheck=" + pas); // Daten holen
  P91.onreadystatechange = P91AUC_heuri;
  P91.send(null);
}
// Script laden
var heurix = P91AUC_system();
// ]]>
