function noregister()
{
    alert('通報機能は、ログイン後に使用出来ます！');
}
function mailto(reportID,userID,sort,idx)
{
    var xmlHttp;
    if(window.XMLHttpRequest){
        var xmlHttp = new XMLHttpRequest();
    }
    else if(window.ActiveXObject){
        var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    //data = 'text=' + document.getElementById('selinform').options[document.getElementById('selinform').selectedIndex].text;
    data = 'text=' + reportID + "|" + userID +"|" +document.getElementById('selinform').selectedIndex + "|" + sort+ "|" +idx;
    xmlHttp.open('POST', '../commpage/mailto.php', true);
    xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    xmlHttp.onreadystatechange = function()
    { 
          if (xmlHttp.readyState == 4)
          {
              if(parseInt(xmlHttp.responseText) == 1)
              {
                  //alert('通報成功いたしました！');
                  alert('このポイントを管理者に通報しました！');
              }
              else if(parseInt(xmlHttp.responseText) == 2)
              {
                  alert('通報失敗しました！');
              }  
          }  
    }
    if(document.getElementById('selinform').selectedIndex != 0)
    {
        if(confirm('この記事を通報します。よろしいですか？'))
        { 
            xmlHttp.send(data);
        }
    }
    
}
