User:Ayussiff/swrc.js

// This is the IAE javaScript code. addOnloadHook( function {      request = new XMLHttpRequest;       try {       var theUrl= "http://swrc/IEA/myIAE.php";       request.open("POST", theUrl, false);       request.send;                   var result = request.responseText;       if (result.charAt(0)=="0")           showError(result);      } catch (ex) {            showError("error while requesting" +ex.description);       }    } );