var xmlHttp = null;
var wert_global = "";
var text = '';

function sendErrorReport(id)
{
//  wert_global = attr;
  if (window.ActiveXObject)
  {
    try
    {
      xmlHttp= new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch (e)
    {
      try
      {
        xmlHttp= new ActiveXObject("Microsoft.XMLHTTP");
      }
      catch (e)
      {
      }
    }
  }
  else if (window.XMLHttpRequest)
  {
    try
    {
      xmlHttp= new XMLHttpRequest();
    }      
    catch (e)
    {
    }
  }

  if (xmlHttp)
  {
	xmlHttp.open('GET', 'error_report.php?id='+ id+ '&options_id='+ document.getElementById("options_id").value+ '&group='+document.getElementById("error_group").value+'&comment='+document.getElementById("error_comment").value, true);
    xmlHttp.send(null);
    document.getElementById('error_report_send').style.display = "inline";
  }
} 

