// JavaScript Document
function loadSend(){

var req = null;
	if(window.XMLHttpRequest) {
	   req = new XMLHttpRequest(); // Mozilla, Firefox, Safari, IE7
	} else if(window.ActiveXObject) {	// IE5, IE6
	   try {
	       req = new ActiveXObject("Msxml2.XMLHTTP");	// MSXML3
	   } catch(e) {
	       req = new ActiveXObject("Microsoft.XMLHTTP");	// MSXML2まで
	   }
	}
var acount_val = document.getElementById('acount').value;
var domain_val = document.getElementById('domain').value;

	
req.open("GET","/script/mail_class.php?acount=" + acount_val + "&domain=" + domain_val, true);

// 通信状態が変化した時に発生するイベントを定義
	req.onreadystatechange = function() {
		    if (req.readyState == 4 
		    		&& req.status == 200) {

// ID属性が「text_box」のタグにレスポンスデータをセット
document.getElementById('text_box').innerHTML = req.responseText;

		    }
		}
		
	// サーバにリクエストを送信
	req.send("");
}
function loadMb(){

var req = null;
	if(window.XMLHttpRequest) {
	   req = new XMLHttpRequest(); // Mozilla, Firefox, Safari, IE7
	} else if(window.ActiveXObject) {	// IE5, IE6
	   try {
	       req = new ActiveXObject("Msxml2.XMLHTTP");	// MSXML3
	   } catch(e) {
	       req = new ActiveXObject("Microsoft.XMLHTTP");	// MSXML2まで
	   }
	}
var mail_val = document.getElementById('user_mail').value;

	
req.open("GET","/script/mail_class.php?user_mail=" + mail_val, true);

// 通信状態が変化した時に発生するイベントを定義
	req.onreadystatechange = function() {
		    if (req.readyState == 4 
		    		&& req.status == 200) {

// ID属性が「text_box」のタグにレスポンスデータをセット
document.getElementById('text_box').innerHTML = req.responseText;

		    }
		}
		
	// サーバにリクエストを送信
	req.send("");
}

function loadBack(){

var req = null;
	if(window.XMLHttpRequest) {
	   req = new XMLHttpRequest(); // Mozilla, Firefox, Safari, IE7
	} else if(window.ActiveXObject) {	// IE5, IE6
	   try {
	       req = new ActiveXObject("Msxml2.XMLHTTP");	// MSXML3
	   } catch(e) {
	       req = new ActiveXObject("Microsoft.XMLHTTP");	// MSXML2まで
	   }
	}
var back_val = document.getElementById('back').value;
var acount_val = document.getElementById('acount').value;
var domain_val = document.getElementById('domain').value;
	
req.open("GET","/script/mail_class.php?back=" + back_val + "&acount=" + acount_val + "&domain=" + domain_val, true);

// 通信状態が変化した時に発生するイベントを定義
	req.onreadystatechange = function() {
		    if (req.readyState == 4 
		    		&& req.status == 200) {

// ID属性が「text_box」のタグにレスポンスデータをセット
document.getElementById('text_box').innerHTML = req.responseText;

		    }
		}
		
	// サーバにリクエストを送信
	req.send("");
}
