﻿// Abstract
function ErrorPanel()
{
   this._strTagName = null;
   this._strStyles = null;
   this._strInnerText = null;
   this._fncRenderControl = function()
   {
      if(this._strStyles == null)
      {
         return "<" + this._strTagName + ">" + this._strInnerText + "</" + this._strTagName + ">";
      }
      else
      {
         return "<" + this._strTagName + " style = \"" + this._strStyles + "\" >" + this._strInnerText + "</" + this._strTagName + ">";
      }
   }
}

ErrorPanel.prototype.SetTagName = function(str)
{
  this._strTagName = str;
}

ErrorPanel.prototype.SetStyles = function(str)
{
  this._strStyles = str;
} 

ErrorPanel.prototype.SetInnerText = function(str)
{
  this._strInnerText = str;
}

ErrorPanel.prototype.Message = function()
{
  return this._fncRenderControl();
}