rem: if (batch.req.status && batch.req.status == 200) eval(reply); else DWREngine._stateChangeError(batch, reply); 
add: if (reply.search("DWREngine._handle") == -1) { DWREngine._stateChangeError(batch, "Invalid reply from server"); } else if (batch.req.status && batch.req.status == 200) { eval(reply); } else { DWREngine._stateChangeError(batch, reply); } 
context: DWREngine._stateChange = function(batch) {  if (batch.req.readyState == 4 && !batch.completed) {    try {      var reply = batch.req.responseText;      if (reply != null && reply != "") {        if (batch.req.status && batch.req.status == 200) eval(reply);        else DWREngine._stateChangeError(batch, reply);      }      else {        DWREngine._stateChangeError(batch, "No data received from server");      }    }    catch (ex) {      DWREngine._stateChangeError(batch, ex);    }    //  Clear up    if (batch.div) batch.div.parentNode.removeChild(batch.div);    if (batch.iframe) batch.iframe.parentNode.removeChild(batch.iframe);    if (batch.form) batch.form.parentNode.removeChild(batch.form);    // Avoid IE handles increase    delete batch.req;    if (batch.postHook) batch.postHook();    // TODO: There must be a better way???    for (var i = 0; i < DWREngine._batches.length; i++) {      if (DWREngine._batches[i] == batch) {        DWREngine._batches.splice(i, 1);        break;      }    }    // If there is anything on the queue waiting to go out, then send it.    // We don't need to check for ordered mode, here because when ordered mode    // gets turned off, we still process *waiting* batches in an ordered way.    if (DWREngine._batchQueue.length != 0) {      var sendbatch = DWREngine._batchQueue.shift();      DWREngine._sendData(sendbatch);      DWREngine._batches[DWREngine._batches.length] = sendbatch;    }    batch.completed = true;  }};
meta: 266	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/5a8db2a4a50e2b3afab612096308af438dbbd933/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js