

arrretour = new Array();
function ajaxFunction()
  {

  var xmlHttp;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
      catch (e)
        {
        alert("Your browser does not support AJAX!");
        return false;
        }
      }
    }
    
    zielobjekt = document.getElementById("ziel");
    schieberobjekt = document.getElementById("schieber");

    var getwerte = "zl=" + zielobjekt.offsetLeft + "&zt=" + zielobjekt.offsetTop +
        "&sl=" + schieberobjekt.offsetLeft + "&st=" +schieberobjekt.offsetTop;
        
    var file = "qzcheck.php?" //FRAGEZEICHEN AM ENDE DES STRINGS!!

    xmlHttp.open("GET", file + getwerte, true);
    xmlHttp.send(null);

    xmlHttp.onreadystatechange=function(){
     if(xmlHttp.readyState==4){

     // DATEN-EMPFANG:
        var retour = xmlHttp.responseText
        if(retour == "ok"){  //WENN DIE POSITION OK IST, RAHMEN BLAU MACHEN
           document.getElementById("ziel").style.border = '3px solid blue';


        }
        else{
        document.getElementById("ziel").style.border = '3px solid red';
        }
     }
    }

  }//Ende ajaxFunction
