//= ¹Ú¼¼Çå Ãß°¡
function goSub(arg) {
  var WinName = arg + "_r.asp";
	f = document.form;

	//= ÀÔ·Â°ªÃ¼Å©
	var str_space = /\s/;
	if (str_space.exec(f.to_name.value)) { // °ø¹é Ã¼Å©ÇÏ´Â ºÎºÐ
		alert('ÀÌ¸§¿¡ °ø¹éÀ» »ç¿ëÇÒ¼ö ¾ø½À´Ï´Ù.!');
		f.to_name.focus();
		return;
	}
	if (f.to_name.value == "") {
		alert("ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		f.to_name.focus();
		return;
	}

	//---- ment
	tmpcalendar = f.month_type.value;
	tmpleapmonth = f.yoon.value;

	if (tmpcalendar == "solar") {
		strcalendar ="¾ç·Â";
	}else {
		strcalendar = "À½·Â";
	}
	if (tmpleapmonth == "") {
		strleapmonth ="Æò´Þ";
	}else {
		strleapmonth = "À±´Þ";
	}
	if (f.month_type.value == "solar" &&  f.yoon.value == "Y" ) {
		alert("¾ç·Â¿¡´Â À±´ÞÀÌ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù.");
		return;
    }
	ment= f.to_name.value+"-"+f.to_year.value+"-"+f.to_month.value+"-"+f.to_day.value+"-"+f.ServiceName.value+"-"+f.Cost.value+"-"+strcalendar+"-"+strleapmonth+"-"+f.ttime.value+"";
	win = window.open('/_nhellounse/Pay/FrmPay.asp?FrameURL='+WinName+'&ment='+ment,'report','scrollbars=yes,width=530,height=560,resizable=no');
}




function goSub2(arg) {

  var WinName = arg + "_r.asp";

	f = document.form;

	//= ÀÔ·Â°ªÃ¼Å©
	var str_space = /\s/;
	if (str_space.exec(f.to_name.value)) { // °ø¹é Ã¼Å©ÇÏ´Â ºÎºÐ
		alert('ÀÌ¸§¿¡ °ø¹éÀ» »ç¿ëÇÒ¼ö ¾ø½À´Ï´Ù.!');
		f.to_name.focus();
	return;
	}
	if (f.to_name.value == "") {
		alert("ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		f.to_name.focus();
		return;
	}


	//---- ment
	tmpcalendar = f.month_type.value;
	tmpleapmonth = f.yoon.value;


	if (tmpcalendar == "solar") {
		strcalendar ="¾ç·Â";
	}else {
		strcalendar = "À½·Â";
	}
	if (tmpleapmonth == "") {
		strleapmonth ="Æò´Þ";
	}else {
		strleapmonth = "À±´Þ";
	}
	if (f.month_type.value == "solar" &&  f.yoon.value == "Y" ) {
		alert("¾ç·Â¿¡´Â À±´ÞÀÌ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù.");
		return;
    }
	ment= f.to_name.value+"-"+f.to_year.value+"-"+f.to_month.value+"-"+f.to_day.value+"-"+f.ServiceName.value+"-"+f.Cost.value+"-"+strcalendar+"-"+strleapmonth+"-"+f.ttime.value+"";

	//win = window.open('/_nhellounse/Pay/FrmPay.asp?FrameURL='+WinName+'&ment='+ment,'report','scrollbars=yes,width=530,height=560,resizable=no');
	f.submit();
}
//= ¹Ú¼¼Çå Ãß°¡ ³¡

//--- ÀÌ´ÞÀÇ ½ÉÃþ¿î¼¼
function goSub3(arg) {

    var WinName = arg + "_r.asp";
	f = document.form;

	//= ÀÔ·Â°ªÃ¼Å©
	var str_space = /\s/;
	if (str_space.exec(f.s_user.value)) { // °ø¹é Ã¼Å©ÇÏ´Â ºÎºÐ
		alert('ÀÌ¸§¿¡ °ø¹éÀ» »ç¿ëÇÒ¼ö ¾ø½À´Ï´Ù.!');
		f.s_user.focus();
	return;
	}
	if (f.s_user.value == "") {
		alert("ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		f.s_user.focus();
		return;
	}


	//---- ment
    var strUserBirthMType = f.mylunar.value;
    if (strUserBirthMType == "2"){
        strleapmonth ="À½·Â";
        strcalendar ="À±´Þ";
	}
    else if (strUserBirthMType == "1"){
        strleapmonth ="À½·Â";
        strcalendar ="Æò´Þ";
	}
    else{
        strleapmonth = "¾ç·Â";
        strcalendar ="Æò´Þ";
	}

	ment= f.s_user.value+"-"+f.myyear.value+"-"+f.mymonth.value+"-"+f.myday.value+"-"+f.ServiceName.value+"-"+f.Cost.value+"-"+strleapmonth+"-"+strcalendar+"-"+f.my_time.value+"";
	f.action=WinName;
	win = window.open('/_nhellounse/Pay/FrmPay.asp?FrameURL='+WinName+'&ment='+ment,'report','scrollbars=yes,width=530,height=560,resizable=no');

}

/* ÀûÁß ÀÚ¹ÌµÎ¼ö (À¯·áÈ­ 2009-08-25) */
function goSub4(arg) {
    var WinName = arg + "_r.asp";
	f = document.form;

	//= ÀÔ·Â°ªÃ¼Å©
	var str_space = /\s/;
	if (str_space.exec(f.to_name.value)) { // °ø¹é Ã¼Å©ÇÏ´Â ºÎºÐ
		alert('ÀÌ¸§¿¡ °ø¹éÀ» »ç¿ëÇÒ¼ö ¾ø½À´Ï´Ù.!');
		f.to_name.focus();
		return;
	}
	if (f.to_name.value == "") {
		alert("ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		f.to_name.focus();
		return;
	}

	//---- ment
	tmpcalendar = f.month_type.value;
	tmpleapmonth = f.yoon.value;

	if (tmpcalendar == "solar") {
		strcalendar ="¾ç·Â";
	}else {
		strcalendar = "À½·Â";
	}
	if (tmpleapmonth == "") {
		strleapmonth ="Æò´Þ";
	}else {
		strleapmonth = "À±´Þ";
	}
	if (f.month_type.value == "solar" &&  f.yoon.value == "Y" ) {
		alert("¾ç·Â¿¡´Â À±´ÞÀÌ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù.");
		return;
    }
	ment= f.to_name.value+"-"+f.to_year.value+"-"+f.to_month.value+"-"+f.to_day.value+"-"+f.ServiceName.value+"-"+f.Cost.value+"-"+strcalendar+"-"+strleapmonth+"-"+f.ttime.value+"";
	f.action = WinName
	win = window.open('/_nhellounse/Pay/FrmPay.asp?FrameURL='+WinName+'&ment='+ment,'report','scrollbars=yes,width=530,height=560,resizable=no');
}

//--- NewContents ( ÇÁ·¹ÀÓ¿öÅ© »ç¿ëÇÑ ÄÁÅÙÃ÷ )
function goSubNew(arg) {
//alert("A");
    var WinName = arg + "_r.asp";
    var Form = document.getElementById('form');

    //= ÀÔ·Â°ªÃ¼Å©
    var userName = Form.userName;
    if(userName.value.length < 2)
    {
        Alert('¼º¸íÀ» ÀÔ·ÂÇÏ¿© ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù!');
        userName.focus();
        return;
    }
    if(document.getElementById)
    {
        var DateValidation = document.getElementById('DateValidation');
        if(DateValidation.innerHTML.length > 0)
        {
            Alert('À¯È¿ÇÑ ³¯Â¥°¡ ¾Æ´Õ´Ï´Ù!     \n³¯Â¥¸¦ È®ÀÎÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.');
            return;
        }
    }

    //---- ment
    var strUserBirthMType = Form.userBirthMType.value;
    if (strUserBirthMType == "-1")
//        strcalendar ="À½·Â(À±´Þ)";
		strleapmonth ="À½·Â(À±´Þ)";
    else if (strUserBirthMType == "0")
        strleapmonth ="À½·Â(Æò´Þ)";
    else
        strleapmonth = "¾ç·Â";
    
    ment= Form.userName.value+"-"+Form.userBirthY.value+"-"+Form.userBirthM.value+"-"+Form.userBirthD.value+"-"+Form.ServiceName.value+"-"+Form.Cost.value+"-"+strleapmonth+"-"+"-";

    win = window.open('/_nhellounse/Pay/FrmPay.asp?FrameURL='+WinName+'&ment='+ment,'report','scrollbars=yes,width=530,height=560,resizable=no');
}

function help() {
	msg=open("/popup/help.asp","help","scrollbars=yes,width=534,height=665,resizable=yes");
	msg.focus();
}



