function Input(pElement, pForm)
{
  this.element      = pElement;
  this.form         = pForm;
  this.error;
  this.label;
  
  var domHelper     = new DomHelper();
  
  try
  {
    var tags = domHelper.findTagsByAttribute("for", this.element.id);
    // by attribute 'label=true' or tag //<label for=
    for( var x = 0; x <= tags.length; x++ )
    {
      if( tags[x] )
      {
        if( tags[x].getAttribute("label") || tags[x].tagName.toLowerCase() == "label" )
        {
          this.label = tags[x];
        }
        else if( tags[x].getAttribute("error") )
        {
          this.error = tags[x];
        }
      }
    }
  }
  catch(e){alert(e);}
  
}

