/*
###########################################################################################################################
# P91AUC V.1.0 by PA-S.de
###########################################################################################################################
# P91AUC V.1.0 by PA-S.de
# Copyright 2003-2007 PA-S.de
# Script Url: www.pa-s.de
# Kontakt: kontakt [@] pa-s [.] de
# Dieser unsichtbare Verweis darf nicht entfernt werden!
###########################################################################################################################
*/
// <![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");
    heurix .innerHTML = P91.responseText;
  }
}
// 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="img/loading.gif" alt="Lade..." />'; // Lade Grafik
  P91.open("GET", "usernamecheck.php?usernamecheck=" + pas); // Daten holen
  P91.onreadystatechange = P91AUC_heuri;
  P91.send(null);
}
// Script laden
var heurix = P91AUC_system();
// ]]>