window.opera = (navigator.userAgent.indexOf("Opera") != -1); 

function HTTPBuffer(id) {
  this.id = id;
  document.write('<IFRAME id="'+this.id+'" name="'+this.id+'" src="about:blank" width="0" height="0" frameborder="0"></IFRAME>');  
}

HTTPBuffer.prototype.loadURI = function(URI) {
  this.onWait();
  if (document.frames && !opera)
    document.frames[this.id].location.replace(URI);
  else 
    document.getElementById(this.id).src = URI;
}
    
HTTPBuffer.prototype.getDocument = function() {
  if (document.frames)
    return document.frames[this.id].document;
  else 
    return document.getElementById(this.id).contentDocument;
}   
    
HTTPBuffer.prototype.free = function()
{
  this.getDocument().body.innerHTML = "";
} 
    
HTTPBuffer.prototype.destroy = function()
{
  document.body.removeChild(document.getElementById(this.id));
}

HTTPBuffer.prototype.onWait = function() {
}

HTTPBuffer.prototype.onLoad = function()
{
}



                     