﻿
// <summary>
/// 파일    명: customer.js
/// 파일  설명:	customer 관련(호텔제팬)
/// 작  성  자:	k. kwang
/// 최초작성일:	2006.09.20
/// 수  정  자:	k. kwang<br/>
/// 최종수정일:	2006.09.20
/// </summary>
///////////////////////////// customer_07/////////////////////////////
//자주하는 질문 보기//////////////////////////////////////////////////
function view_Info(div)
{
	document.all.mem_1.style.display = "none"
	document.all.mem_2.style.display = "none"
	document.all.mem_3.style.display = "none"
	document.all.mem_4.style.display = "none"
	document.all.mem_5.style.display = "none"
	document.all.mem_6.style.display = "none"
	document.all.mem_7.style.display = "none"
	document.all.mem_8.style.display = "none"
	document.all.mem_9.style.display = "none"
	document.all.mem_10.style.display = "none"
	document.all.mem_11.style.display = "none"
	document.all.mem_12.style.display = "none"
	document.all.mem_13.style.display = "none"
	document.all.mem_14.style.display = "none"
	document.all.mem_15.style.display = "none"
	var oInfo = eval("document.all." + div);
		oInfo.style.display = "";
}

///////////////////////////// customer_08/////////////////////////////
//메일 보내기 ////////////////////////////////////////////////////////
function send() {
	if(form1.c_name.value == "") {
		alert("이름을 입력해 주세요.");
		form1.c_name.focus();
		return;
	}
	if(form1.c_email.value == "") {
		alert("메일 주소를 입력해 주세요.");
		form1.c_email.focus();
		return;
	}
	if(form1.title.value == "") {
		alert("제목을 입력해 주세요.");
		form1.title.focus();
		return;
	}
	if(form1.contents.value == "") {
		alert("내용을 입력해 주세요.");
		form1.contents.focus();
		return;
	}

	form1.action = "customer_mail.aspx";
	form1.submit();

}

function check(chk) {
    if(chk == '1')
    {
	    alert('문의하신 메일이 접수 되었습니다.!!');
	}else
	{
	    alert('메일 보내기를 실패하였습니다!!.');
	}
	
    document.location.href="customer_08.aspx";
}

///////////////////////////// customer_10/////////////////////////////
//매거진 등록 ////////////////////////////////////////////////////////
function mail_regi() {
    if(form2.c_mail.value == "") {
        alert("이메일 주소를 입력해 주세요.");
        form2.c_mail.focus();
        return;
    }
    if (document.form2.c_mail.value =='' || document.form2.c_mail.value.length <= 6 || 
        document.form2.c_mail.value.indexOf ('@', 0) == -1 || document.form2.c_mail.value.indexOf ('.', 0) == -1) {
            alert("'' " + document.form2.c_mail.value + " '', 은 이메일주소가 아닙니다"); 
            return; 
    }
    form2.action = "mail_regi.aspx";
    form2.submit();
}

function pageload(is_login)
{
    if(is_login == '')
        return;
        
    if(is_login == 'Y')
    {
        //alert('로그인 성공.');
        location.href = '../../Info_default.aspx';
    }
    else
    {
       alert('로그인 정보를 다시 확인해주세요.');
    }
}
