var _IFramelHttpRequestID=-1;
function IFramelHttpRequest(){
this.ID=_IFramelHttpRequestID++;
this.name="iframe"+this.ID;
}

IFramelHttpRequest.prototype.open=function(method,url){
var iframe=document.createElement("iframe");
iframe.name=this.name;
iframe.id=this.name;
iframe._httpReq=this;
iframe.onload=function(){
//alert(1);
var f=window.frames[this.name];
this._httpReq.responseXML=f.document.body.firstChild;
if(this._httpReq.onload)this._httpReq.onload();
setTimeout("_killIFrame('"+this.name+"')",100);
}
iframe.style.border="none";
iframe.style.width=0;
iframe.style.height=0;
document.body.appendChild(iframe);
setTimeout("_loadIFrame('"+url+"','"+iframe.name+"')",50);

}

function _loadIFrame(url,name){
window.open(url,name);
}

function _killIFrame(name){

document.body.removeChild(document.getElementById(name))

