﻿function send() {
  try {
    xmlReq1 = new ActiveXObject("Microsoft.XMLHTTP");
  } catch(e) {
    xmlReq1 = new XMLHttpRequest();
  }
  xmlReq1.onreadystatechange = function() {
     var msg = document.getElementById("qr");
     if (xmlReq1.readyState == 4) {
      if (xmlReq1.status == 200) {
        msg.innerHTML = xmlReq1.responseText;
      } else {
        msg.innerHTML = "通信に失敗しました。リロードしてください。";
      }
    } else {
      msg.innerHTML = "通信中…";
    }
  }  
xmlReq1.open("POST","http://reser.jp/links/topqrcode.php",true);
xmlReq1.setRequestHeader("content-type",
  "application/x-www-form-urlencoded;charset=UTF-8");
xmlReq1.send();
}

