//<![CDATA[
function erase_msg(num) {
	var erase_field = document.getElementById("input_value" + num + "_er");
	erase_field.value = "";
	erase_field.id = "input_value" + num;
	erase_field.onclick = dummy();
}

function dummy() {/*だ*/}

function httpHandler_ask(){
	if(xmlhttp_ask.readyState == 4 && xmlhttp_ask.status== 200) {
		document.getElementById("reset_action_frame").innerHTML = xmlhttp_ask.responseText;
	}
}

function ask_login_mail() {
	var url_ask_mail = "../php/ask_login_mail.php";

	var iv2_elm = document.getElementById("input_value2");
	if (iv2_elm) {
		var iv2_vl = document.getElementById("input_value2").value;
	}

	var iv3_elm = document.getElementById("input_value3");
	if (iv3_elm) {
		var iv3_vl = document.getElementById("input_value3").value;
	}

	var iv4_elm = document.getElementById("input_value4");
	if (iv4_elm) {
		var iv4_vl = document.getElementById("input_value4").value;
	}

	var iv5_elm = document.getElementById("input_value5");
	if (iv5_elm) {
		var iv5_vl = document.getElementById("input_value5").value;
	}

	var data_by_post_ask_mail = "dispaction_code=" + 528 + "&iv2=" + iv2_vl + "&iv3=" + iv3_vl + "&iv4=" + iv4_vl + "&iv5=" + iv5_vl;

	if (document.uniqueID ) {
		xmlhttp_ask = new ActiveXObject("Microsoft.XMLHTTP");
	} else {
		xmlhttp_ask = new XMLHttpRequest();
	}

	xmlhttp_ask.onreadystatechange = httpHandler_ask;
	xmlhttp_ask.open("POST", url_ask_mail);
	xmlhttp_ask.setRequestHeader("Content-Type" , "application/x-www-form-urlencoded");
	xmlhttp_ask.send(data_by_post_ask_mail);
}

function httpHandler_reset() {
	if (xmlhttp_reset.readyState == 4 && xmlhttp_reset.status== 200) {
		document.getElementById("reset_action_frame").innerHTML = xmlhttp_reset.responseText;
	}
}

function reset_login_pwd() {
	var url_reset_pwd = "../php/reset_login_pwd.php";

	var iv1_elm = document.getElementById("input_value1");
	if (iv1_elm) {
		var iv1_vl = document.getElementById("input_value1").value;
	}

	var data_by_post_reset_pwd = "dispaction_code=" + 511 + "&iv1=" + iv1_vl;

	if (document.uniqueID ) {
		xmlhttp_reset = new ActiveXObject("Microsoft.XMLHTTP");
	} else {
		xmlhttp_reset = new XMLHttpRequest();
	}

	xmlhttp_reset.onreadystatechange = httpHandler_reset;
	xmlhttp_reset.open("POST", url_reset_pwd);
	xmlhttp_reset.setRequestHeader("Content-Type" , "application/x-www-form-urlencoded");
	xmlhttp_reset.send(data_by_post_reset_pwd);
}

function reset_btn() {
	reset_login_pwd();
}

function askmail_btn() {
	ask_login_mail();
}

function httpHandler() {
	if (xmlhttp.readyState == 4 && xmlhttp.status== 200) {
		document.getElementById("reset_action_frame").innerHTML = xmlhttp.responseText;
	}
}

function dispAction(evt) {
	var targetElm = dom.event.target(evt);
	var is_reset_li = targetElm.id.match(/reset_li/);

	if (is_reset_li == "reset_li") {
		var is = targetElm.id;

		var url = "../php/disp_reset_action.php";
		var data_by_post = "dispaction_code=" + 510 + "&item_code=" + is;

		if (document.uniqueID ) {
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} else {
			xmlhttp = new XMLHttpRequest();
		}

		xmlhttp.onreadystatechange = httpHandler;
		xmlhttp.open("POST", url);
		xmlhttp.setRequestHeader("Content-Type" , "application/x-www-form-urlencoded");
		xmlhttp.send(data_by_post);
	}
}

function setListeners(e) {
	var eSource = document.getElementById("reset_login_design");
	addListener(eSource, "click", dispAction, false);
}

addListener(window, "load", setListeners, false);
//]]>

