function cls_xmlResult(xmlData)
{
  this.failed = false;
  this.xRoot = xmlData;
  if(!this.xRoot.hasChildNodes()){this.failed = true;return false;}
  this.eStatus = xmlData.getElementsByTagName('status')[0];
  this.eResult = xmlData.getElementsByTagName('result')[0];
}

cls_xmlResult.prototype.statusCode = function()
{
  return parseInt(this.eStatus.getAttribute('code'));
}

cls_xmlResult.prototype.statusLoader = function()
{
  var eLoader = this.eStatus.getElementsByTagName('loader')[0];
  if(eLoader){return eLoader.firstChild.nodeValue;}
}

cls_xmlResult.prototype.getResult = function()
{
  if(this.eResult)
  {
    return this.eResult;
  }
  else
  {
    return false;
  }
}

cls_xmlResult.prototype.statusRedirect = function()
{
  var eRedirect = this.eStatus.getElementsByTagName('redirect')[0];
  if(eRedirect){return eRedirect.firstChild.nodeValue;}
}
