function HTMLPage(sys, formID, code, posX, posY, width, height, nav) {
  this.create(sys, formID, code, posX, posY, width, height, '', '');
  this.nav = nav;
  this.loaded = false;
}

HTMLPage.inherits(HTMLElementBase);

HTMLPage.prototype.name = 'HTMLPage';
HTMLPage.prototype.ignore = true;

HTMLPage.prototype.designComponent = function(doc) {
  this.page = document.createElement("iframe");
  this.page.frameBorder = 0;
  this.page.src = 'nothing.html';
  this.page.width = pt(this.doc.style.width);
  this.page.height = pt(this.doc.style.height);
  this.page.setAttribute('frameborder', 'no');
  this.page.setAttribute('border',0);
  this.page.setAttribute('marginwidth',0);
  this.page.setAttribute('marginheight',0);
  this.page.setAttribute('scrolling','no');
  this.context.appendChild(this.page);
}

HTMLPage.prototype.load = function(e) {
  if (!this.loaded) {
    this.page.src = 'javascript:false';
    this.page.src = 'basic_query.jsp?sys='+this.sys+'&formID='+this.formID+'&title=&width='+pt(this.doc.style.width)+'&height='+pt(this.doc.style.height);
    this.loaded = true;
  }
  this.nav.query();
}

HTMLPage.prototype.focus = function() { return false; }

HTMLPage.prototype.blur = function() { return false; }
