/*
// ¿À¸¥ÂÊ ¸¶¿ì½º¿Í Å°¸·±â
function mouse_down() {
	if((event.button == 2) || (event.button==3) || (event.keyCode == 93)) {
		window.alert("www.insdata.net");
	}return false;
}
document.onmousedown = mouse_down;
document.onkeydown = mouse_down;
*/

// È¸¿ø¸ñ·Ï°Ë»öÃ¢ ¿­±â
var msw = null;
function openmembersearch(msw_url,msw_target,msw_option) {
	msw = window.open(msw_url,msw_target,msw_option);
}

// ¿ìÆí¹øÈ£°Ë»öÃ¢ ¿­±â
var zcw = null;
function openzipcode(zcw_url,zcw_target,zcw_option) {
	zcw = window.open(zcw_url,zcw_target,zcw_option);
}

// ¼±ÅÃ°è¾à »èÁ¦
function update_delete() {
	count = 0;
	for(i=0;i<document.insertform.elements.length;i++) {
		if (document.insertform.elements[i].checked == true) {
			count++;
		}
	}
	if(count == 0) {
		alert("¼±ÅÃµÈ °è¾àÀÌ ¾ø½À´Ï´Ù.");
	}
	else {
		if(window.confirm("Àá±ñ!\nÈ®ÀÎÀ» ´©¸£¸é ÀÔ·ÂµÈ °è¾à°ÇÀÌ ¿ÏÀüÈ÷\n»èÁ¦µÇ°í º¹±¸°¡ ºÒ°¡´ÉÇÏ°Ô µË´Ï´Ù.\nÁ¤¸»·Î »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?")) {
			document.insertform.action = "update_delete.php";
			document.insertform.submit();
		}
	}
}

// ¼±ÅÃ°è¾à ¼ö¼ö·áÁö±Þ º¯°æ
function commission_yes(yes_type) {
	count = 0;
	for(i=0;i<document.insertform.elements.length;i++) {
		if (document.insertform.elements[i].checked == true) {
			count++;
		}
	}
	if(count == 0) {
		alert("¼±ÅÃµÈ °è¾àÀÌ ¾ø½À´Ï´Ù.");
	}
	else {
		if(window.confirm("¼±ÅÃÇÑ °è¾àÀÇ "+yes_type+"¼ö¼ö·á(°øÁ¦) Áö±Þ¿©ºÎ¸¦ YES·Î º¯°æÇÏ½Ã°Ú½À´Ï±î?")) {
			document.insertform.action = "commission_yes.php";
			document.insertform.yes_type.value = yes_type;
			document.insertform.submit();
		}
	}
}

// ¼±ÅÃÈ¸¿ø »èÁ¦
function member_delete() {
	count = 0;
	for(i=0;i<document.insertform.elements.length;i++) {
		if (document.insertform.elements[i].checked == true) {
			count++;
		}
	}
	if(count == 0) {
		alert("¼±ÅÃµÈ È¸¿øÀÌ ¾ø½À´Ï´Ù.");
	}
	else {
		if(window.confirm("¼±ÅÃÇÑ È¸¿øÀ» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?")) {
			document.insertform.action = "member_delete.php";
			document.insertform.submit();
		}
	}
}

// ¼±ÅÃÈ¸¿ø ±âº»±ÇÇÑ ºÎ¿©
function member_yes() {
	count = 0;
	for(i=0;i<document.insertform.elements.length;i++) {
		if (document.insertform.elements[i].checked == true) {
			count++;
		}
	}
	if(count == 0) {
		alert("¼±ÅÃµÈ È¸¿øÀÌ ¾ø½À´Ï´Ù.");
	}
	else {
		if(window.confirm("¼±ÅÃÇÑ È¸¿ø¿¡°Ô ±âº»±ÇÇÑÀ» ºÎ¿©ÇÏ½Ã°Ú½À´Ï±î?")) {
			document.insertform.action = "member_yes.php";
			document.insertform.submit();
		}
	}
}
