
   function parseScript(strcode) {
     var scripts = new Array();         // Array which will store the script's code
     
     // Strip out tags
     while(strcode.indexOf("<script") > -1 || strcode.indexOf("</script") > -1) {
       var s = strcode.indexOf("<script");
       var s_e = strcode.indexOf(">", s);
       var e = strcode.indexOf("</script", s);
       var e_e = strcode.indexOf(">", e);
       
       // Add to scripts array
       scripts.push(strcode.substring(s_e+1, e));
       // Strip from strcode
       strcode = strcode.substring(0, s) + strcode.substring(e_e+1);
     }
     
     // Loop through every script collected and eval it
     for(var i=0; i<scripts.length; i++) {
       try {
         eval(scripts[i]);
       }
       catch(ex) {
         // do what you want here when a script fails
       }
     }
   }
   
   function doRequest(htmlcontainer, url, parameters) {
       http_request = false;

       // alert(url);
       // alert(parameters);
       document.getElementById(htmlcontainer).innerHTML = '&nbsp;&nbsp;&nbsp;&nbsp;<img src="grafix/loading.gif" alt="" border="0">';

       if (window.XMLHttpRequest) {
            http_request = new XMLHttpRequest();
            if (http_request.overrideMimeType) {
                http_request.overrideMimeType('text/xml');
          }
       } else if (window.ActiveXObject) { // IE
             try {
                http_request = new ActiveXObject("Msxml2.XMLHTTP");
          } catch (e) {
             try {
                http_request = new ActiveXObject("Microsoft.XMLHTTP");
             } catch (e) {}
          }
       }

       if (!http_request) {
          alert('XMLHTTP-Instanz kann nicht erzeugt werden');
          return false;
       }
       http_request.onreadystatechange = function() {
           if (http_request.readyState == 4) {
              if (http_request.status == 200) {
                 document.getElementById(htmlcontainer).innerHTML = http_request.responseText;
                 tb_init('a.thickbox, area.thickbox, input.thickbox');
                 $(document).ready();
                 parseScript(http_request.responseText);
              } else {
                 // alert('ERROR: Beim Request ist ein Problem aufgetreten: ' + http_request.readyState.toString() + ' - ' + http_request.status.toString());
              }
           }
       }
       http_request.open('POST', url, true);
       http_request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
       http_request.send(parameters);

    }

