 function HTMLWait(sys, formID, code, posX, posY, width, height, value) {
  this.create(sys, formID, code, posX, posY, width, height, '', value);  
  this.designComponent();
  
  this.icon = "Skins/Default/loadingdr.gif";

}

HTMLWait.inherits(HTMLElementBase);

HTMLWait.prototype.name = 'HTMLWait';
HTMLWait.prototype.tabable = false;

HTMLWait.prototype.designComponent = function(doc) {
	
	(this.posX) ? posX = this.posX : posX = (document.documentElement.offsetWidth - this.width);
	(this.posY) ? posY = this.posY : posY = 0;
		
	this.div = this.getDiv('WFRWait'+this.code, posX, posY, this.width, this.height, 10, true);
	
  	var content = "";
  	content += "<table height='100%' width='100%' border='0' cellpadding='0' cellspacing='0'>";
  	content += "      <tr>";
  	content += "        <td width='1' height='1' bgcolor='#a5a5a5'></td>";
  	content += "        <td height='1' bgcolor='#a5a5a5'></td>";
  	content += "        <td width='1' height='1' bgcolor='#a5a5a5'></td>";
  	content += "      </tr>";
  	content += "      <tr>";
  	content += "        <td width='1' bgcolor='#a5a5a5'></td>";
  	content += "        <td bgcolor='#f6f6f4'><table height='100%' width='100%' border='0' cellpadding='0' cellspacing='0'>";
  	content += "          <tr>";
  	content += "            <td width='30' align='center' valign='middle'><img id='iconLoad' src='"+ this.icon +"'></td>";
  	content += "            <td><span>"+ this.value +"</span></td>";
  	content += "            <td width='20'>&nbsp;</td>";
  	content += "          </tr>";
  	content += "        </table></td>";
  	content += "        <td width='1' bgcolor='#a5a5a5'></td>";
  	content += "      </tr>";
  	content += "      <tr>";
  	content += "        <td width='1' height='1' bgcolor='#a5a5a5'></td>";
  	content += "        <td height='1' bgcolor='#a5a5a5'></td>";
  	content += "        <td width='1' height='1' bgcolor='#a5a5a5'></td>";
  	content += "      </tr>";
  	content += "    </table>";

  	
  	this.div.innerHTML = content;
  	
  	document.body.appendChild(this.div);
  	  	 	
  	this.show();
}

HTMLWait.prototype.show = function() {
  this.div.style.display = "block";
}

HTMLWait.prototype.hide = function() {
  this.div.style.display = "none";
}

HTMLWait.prototype.setIcon = function(url) {
	var image = document.getElementById("iconLoad");
	alert(image);
}