// -1) {
alert(rs.MESSAGE);
}
if(rs.ERROR_TYPE.indexOf("REDIRECT") > -1) {
document.location.href = rs.PAGE;
}
}
else {
alert("로그인 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
}
function LoginProcessFail() {
alert("로그인 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
function LoginValidate() {
var frm = document.getElementById("frmLogin");
var captcha = document.getElementById("hm_p_Captcha");
var id = document.getElementById("hm_p_UserId");
var pw = document.getElementById("hm_p_Password");
var referrer = document.getElementById("hm_p_Referrer");
if (captcha) {
if (captcha.value.trim() == "") {
alert("이미지 문자를 입력하지 않았습니다.");
return false;
}
}
if(id.value.trim() == "") {
alert("아이디를 입력하지 않았습니다.");
return false;
}
if(pw.value.trim() == "") {
alert("패스워드를 입력하지 않았습니다.");
return false;
}
if(referrer.value.trim() == "") {
referrer.value = document.location + "";
}
//2009.05.28.이승현 - 아이디저장 여부
/*
if (chkRememberId != null)
{
if(chkRememberId.checked)
{
var expireDate = new Date();
expireDate.setDate(expireDate.getDate() + 365);
Cookies.set("IdRemembered", txtLogInId.value, expireDate);
}
else
{
var expireDate = new Date();
expireDate.setDate(expireDate.getDate() - 365);
Cookies.set("IdRemembered", "", expireDate);
}
}
*/
frm.action = "/member/loginWeb.hmc";
return true;
}
/**
로그인 - 끝
*/
/**
비밀번호 찾기 - 시작
*/
function DoMemberFindPW() {
var frm = document.getElementById("frmMemberFindPW");
var id = document.getElementById("frmPWhm_p_UserId");
var name = document.getElementById("frmPWhm_p_Name");
var jumin1 = document.getElementById("frmPWhm_p_JuminNumber1");
var jumin2 = document.getElementById("frmPWhm_p_JuminNumber2");
if(name.value.trim() == "") {
alert("이름을 입력하지 않았습니다.");
return false;
}
if(jumin1.value.trim() == "") {
alert("주민등록 번호를 입력하지 않았습니다.");
return false;
}
if(jumin2.value.trim() == "") {
alert("주민등록 번호를 입력하지 않았습니다.");
return false;
}
var Param = ({hm_p_JuminNumber1 : jumin1, hm_p_JuminNumber2 : jumin2 });
frm.action = "/common/ParseIpinNumber.hmc";
AjaxSubmit(frm, function() { return true; }, SuccessIpinParsePW)
return;
}
function SuccessIpinParsePW(xhr) {
var frm = document.getElementById("frmMemberFindPW");
var rs = jQuery.parseJSON(xhr);
if(rs.Result == "True") {
$("#frmPWhm_p_ipci").val(rs.EncCI);
$("#frmPWhm_p_ipdi").val(rs.EncDI);
frm.action = "/member/PwSearchMember.hm";
frm.submit();
}
else {
alert(rs.MESSAGE);
}
return;
}
/**
아이디 찾기 - 시작
*/
function DoMemberFindID() {
var frm = document.getElementById("frmMemberFindID");
var name = document.getElementById("frmIDhm_p_Name");
var jumin1 = document.getElementById("frmIDhm_p_JuminNumber1");
var jumin2 = document.getElementById("frmIDhm_p_JuminNumber2");
if(name.value.trim() == "") {
alert("이름을 입력하지 않았습니다.");
return false;
}
if(jumin1.value.trim() == "") {
alert("주민등록 번호를 입력하지 않았습니다.");
return false;
}
if(jumin2.value.trim() == "") {
alert("주민등록 번호를 입력하지 않았습니다.");
return false;
}
var Param = ({hm_p_JuminNumber1 : jumin1, hm_p_JuminNumber2 : jumin2 });
frm.action = "/common/ParseIpinNumber.hmc";
AjaxSubmit(frm, function() { return true; }, SuccessIpinParseID)
return;
}
function SuccessIpinParseID(xhr) {
var frm = document.getElementById("frmMemberFindID");
var rs = jQuery.parseJSON(xhr);
if(rs.Result == "True") {
$("#frmIDhm_p_ipci").val(rs.EncCI);
$("#frmIDhm_p_ipdi").val(rs.EncDI);
frm.method = "post";
frm.action = "/member/IdSearchMember.hm";
frm.submit();
}
else {
alert(rs.MESSAGE);
}
return;
}
function DoMemberFindIDIpin() {
$("#param_r1").val("SetIPinSearch");
var Param = ({IpinResponse : "/common/IPinResponse.hm" });
AjaxLoad("/common/MakeIPinRequest.hmc", Param, "POST", SuccessDoMemberFindIDIpin);
}
var IpinWindow = null;
function SuccessDoMemberFindIDIpin(xhr) {
var rs = jQuery.parseJSON(xhr);
if(rs.RESULT == "TRUE") {
OpenPopup(IpinWindow, "IPinPopup", "", 450, 540);
$("#enc_data").val(rs.MESSAGE);
$("#frmIPin").attr("action", "https://cert.vno.co.kr/ipin.cb");
$("#frmIPin").attr("target", "IPinPopup");
$("#frmIPin").submit();
}
else if(rs.RESULT == "FALSE") {
alert("아이핀 요청에 실패하였습니다.\n\n고객센터에 문의하세요.");
}
else {
alert("실명인증 처리 중 장애가 발생하였습니다.\n\n고객센터에 문의하세요.");
}
}
function DoMemberFindPWIpin() {
if($("#PWIpinId").val().length == 0) {
alert("아이디를 입력하세요.");
return;
}
$("#param_r1").val("SetIPinPwSearch");
var Param = ({IpinResponse : "/common/IPinResponse.hm" });
AjaxLoad("/common/MakeIPinRequest.hmc", Param, "POST", SuccessDoMemberFindPWIpin);
}
var IpinWindow = null;
function SuccessDoMemberFindPWIpin(xhr) {
var rs = jQuery.parseJSON(xhr);
if(rs.RESULT == "TRUE") {
OpenPopup(IpinWindow, "IPinPopup", "", 450, 540);
$("#enc_data").val(rs.MESSAGE);
$("#frmIPin").attr("action", "https://cert.vno.co.kr/ipin.cb");
$("#frmIPin").attr("target", "IPinPopup");
$("#frmIPin").submit();
}
else if(rs.RESULT == "FALSE") {
alert("아이핀 요청에 실패하였습니다.\n\n고객센터에 문의하세요.");
}
else {
alert("실명인증 처리 중 장애가 발생하였습니다.\n\n고객센터에 문의하세요.");
}
}
/**
아이뒤 찾기 - 끝
*//**
회원 가입 UI 동작 - 시작
*/
function HandphoneBillingAuth() {
$("#HandphoneBillAuth").css('display', 'none');
if($("#hm_p_HandPhoneCompany").val() == "011" || $("#hm_p_HandPhoneCompany").val() == "016") {
if( $("#SKTAppendInfo").css("display") == "block" && $('#hm_p_SKTAppend').attr('checked') ) {
$("#HandphoneBillAuth").css('display', 'inline-block');
}
if( $("#KTFAppendInfo").css("display") == "block" && $('#hm_p_KTFAppend').attr('checked') ) {
$("#HandphoneBillAuth").css('display', 'inline-block');
}
}
}
function EmailBilling() {
if($("#hm_p_HandPhoneCompany").val().length == 0) {
alert("이동 통신사를 선택하세요.");
return;
}
if(
$("#hm_p_HandPhone1").val().length == 0 ||
$("#hm_p_HandPhone2").val().length == 0 ||
$("#hm_p_HandPhone3").val().length == 0
)
{
alert("휴대폰 번호를 입력하세요..");
return;
}
var Param = (
{
hm_p_HandPhoneCompany : $("#hm_p_HandPhoneCompany").val(),
hm_p_HandPhone1 : $("#hm_p_HandPhone1").val(),
hm_p_HandPhone2 : $("#hm_p_HandPhone2").val(),
hm_p_HandPhone3 : $("#hm_p_HandPhone3").val()
});
AjaxLoad("/join/HandphoneBillingAuthNum.hmc", Param, "POST", SuccessHandphoneAuthNumRequest);
}
var BillingAuthWin = null;
function SuccessHandphoneAuthNumRequest(xhr) {
var rs = jQuery.parseJSON(xhr);
if(rs.Result == "TRUE") {
OpenPopup(BillingAuthWin, "BillingAuthWin", "/join/HandphoneBillingAuthNumConf.hm", 410, 190);
}
else {
alert(rs.Message);
}
}
function VerifyPasswordStrength(obj) {
var password = null;
if(obj) {
password = obj;
}
else {
password = document.getElementById("hm_p_Password");
}
var passwordStrength = document.getElementById("hm_p_PasswordStrength");
var divLevel = document.getElementById("divLevel");
var imgLevel = document.getElementById("imgLevel");
var divReason = document.getElementById("divReason");
var imgUrl = imgLevel.src + "";
var imgArr = imgUrl.split("/");
var imgFilename = imgArr[imgArr.length - 1];
password.value = password.value.trim();
if(password.value.length == 0) {
return false;
}
if(password.value.trim().length < 6)
{
alert("비밀번호는 6-12자의 영문, 숫자, 특수문자(!,@,$,&,*)를 같이 사용 하시기 바랍니다.");
passwordStrength.value = "N";
password.focus();
return false;
}
if(imgFilename == "level_2.gif" || imgFilename == "level_3.gif") {
divLevel.style.display = "none";
divReason.style.display = "none";
passwordStrength.value = "Y";
return true;
}
else if(imgFilename == "level_1.gif") {
if(confirm("비밀번호 안전도가 낮습니다.\n이대로 사용하시겠습니까?")) {
divLevel.style.display = "none";
divReason.style.display = "none";
passwordStrength.value = "Y";
return true;
}
else {
passwordStrength.value = "N";
password.focus();
return false;
}
}
else {
passwordStrength.value = "N";
//alert("사용할 수 없는 비밀번호 입니다.");
password.focus();
return false;
}
}
function PasswordStrengthReset() {
var passwordStrength = document.getElementById("hm_p_PasswordStrength");
passwordStrength.value = "N";
}
function setPostNumber(post1, post2, addr){
$("#hm_p_PostNum1").val(post1);
$("#hm_p_PostNum2").val(post2);
$("#hm_p_Address").val(addr);
}
function setCheckedId(id) {
$("#hm_p_IDDuplicateCheck").val("Y");
$("#hm_p_UserId").val(id);
}
function IdDuplicateReset() {
var idDup = document.getElementById("hm_p_IDDuplicateCheck");
idDup.value = "N";
}
function ShowIdDuplicateLayer() {
if($("#hm_p_UserId").val().trim().length < 4) {
alert('아이디를 입력하세요.');
return false;
}
idDuplicateOn(document.getElementById("btnIdDuplicate"), document.getElementById("hm_p_UserId") );
}
/**
회원 가입 UI 동작 - 끝
*/
/**
회원가입 보모동의 - 시작
*/
function DoParentNameCheck() {
AjaxSubmit(document.getElementById("frmParentAgree"), ParentNameCheckValidate, ParentNameCheckProcessSuccess, ParentNameCheckProcessFail)
}
function ParentNameCheckValidate() {
var frm = document.getElementById("frmParentAgree");
var name = document.getElementById("hm_p_Name");
var jumin1 = document.getElementById("hm_p_JuminNumber1");
var jumin2 = document.getElementById("hm_p_JuminNumber2");
if(name.value.trim().length == 0) {
alert("부모님 이름을 입력하세요.");
name.focus();
return false;
}
if(JuminNumber.isValidJuminNo(jumin1.value + jumin2.value) == false) {
return false;
}
frm.action = "/join/ParentRealnameCheck.hmc";
$(".btnParentNameCheck").css("display", "none");
$("#hm_p_Name").attr('readonly', true);
$("#hm_p_JuminNumber1").attr('readonly', true);
$("#hm_p_JuminNumber2").attr('readonly', true);
$("#rdoJumin").attr('disabled', true);
$("#rdoIpin").attr('disabled', true);
return true;
}
function ParentNameCheckProcessSuccess(xhr) {
var rs = jQuery.parseJSON(xhr);
if(rs.RESULT == "TRUE") {
alert("실명확인되었습니다.");
$("#hm_p_ParentNameCheck").val("Y");
}
else if(rs.RESULT == "FALSE") {
$(".btnParentNameCheck").css("display", "block");
$("#hm_p_Name").removeAttr('readonly');
$("#hm_p_JuminNumber1").removeAttr('readonly');
$("#hm_p_JuminNumber2").removeAttr('readonly');
$("#rdoJumin").removeAttr('disabled');
$("#rdoIpin").removeAttr('disabled');
if(rs.ERROR_TYPE.indexOf("MESSAGE") > -1) {
alert(rs.MESSAGE);
}
if(rs.ERROR_TYPE.indexOf("REDIRECT") > -1) {
document.location.href = rs.PAGE;
}
}
else {
$(".btnParentNameCheck").css("display", "block");
$("#hm_p_Name").removeAttr('readonly');
$("#hm_p_JuminNumber1").removeAttr('readonly');
$("#hm_p_JuminNumber2").removeAttr('readonly');
$("#rdoJumin").removeAttr('disabled');
$("#rdoIpin").removeAttr('disabled');
alert("실명인증 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
}
function ParentNameCheckProcessFail() {
$("#btnParentNameCheck").css("display", "block");
$("#hm_p_Name").removeAttr('readonly');
$("#hm_p_JuminNumber1").removeAttr('readonly');
$("#hm_p_JuminNumber2").removeAttr('readonly');
$("#rdoJumin").removeAttr('disabled');
$("#rdoIpin").removeAttr('disabled');
alert("실명인증 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
function DoParentIpinCheck() {
AjaxLoad("/join/IPinParentRequest.hmc", null, "POST", IpinParentCheckRequestSuccess);
}
function DoParentIpinSSLCheck() {
var Param = ({ssl : "Y"});
AjaxLoad("/join/IPinParentRequest.hmc", Param, "POST", IpinParentCheckRequestSuccess);
}
var IpinWindow = null;
function IpinParentCheckRequestSuccess(xhr) {
var rs = jQuery.parseJSON(xhr);
if(rs.RESULT == "TRUE") {
$(".btnParentNameCheck").css("display", "none");
$("#hm_p_Name").attr('readonly', true);
$("#hm_p_JuminNumber1").attr('readonly', true);
$("#hm_p_JuminNumber2").attr('readonly', true);
$("#rdoJumin").attr('disabled', true);
$("#rdoIpin").attr('disabled', true);
OpenPopup(IpinWindow, "IPinPopup", "", 450, 540);
$("#enc_data").val(rs.MESSAGE);
$("#frmParentAgree").attr("action", "https://cert.vno.co.kr/ipin.cb");
$("#frmParentAgree").attr("target", "IPinPopup");
$("#frmParentAgree").submit();
}
else if(rs.RESULT == "FALSE") {
$("#btnParentNameCheck").css("display", "block");
$("#hm_p_Name").removeAttr('readonly');
$("#hm_p_JuminNumber1").removeAttr('readonly');
$("#hm_p_JuminNumber2").removeAttr('readonly');
$("#rdoJumin").removeAttr('disabled');
$("#rdoIpin").removeAttr('disabled');
if(rs.ERROR_TYPE.indexOf("MESSAGE") > -1) {
alert(rs.MESSAGE);
}
if(rs.ERROR_TYPE.indexOf("REDIRECT") > -1) {
document.location.href = rs.PAGE;
}
}
else {
$("#btnParentNameCheck").css("display", "block");
$("#hm_p_Name").removeAttr('readonly');
$("#hm_p_JuminNumber1").removeAttr('readonly');
$("#hm_p_JuminNumber2").removeAttr('readonly');
$("#rdoJumin").removeAttr('disabled');
$("#rdoIpin").removeAttr('disabled');
alert("실명인증 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
}
function DoParentAgree() {
AjaxSubmit(document.getElementById("frmParentAgree"), ParentAgreeValidate, ParentAgreeProcessSuccess, ParentAgreeProcessFail)
}
function ParentAgreeValidate() {
var frm = document.getElementById("frmParentAgree");
if($("#hm_p_ParentNameCheck").val() != "Y") {
alert("부모님 인증을 해주세요.");
return false;
}
if($("#hm_p_Email1").val().trim().length == 0 || $("#hm_p_Email2").val().trim().length == 0) {
alert("이메일을 입력하세요.");
$("#hm_p_Email1").focus();
return false;
}
if(CheckEmail($("#hm_p_Email1").val() + "@" + $("#hm_p_Email2").val()) == false) {
alert("이메일 주소 형식이 올바르지 않습니다.");
$("#hm_p_Email1").focus();
return false;
}
if($("#rdoPhone").attr("checked")) {
if($("#hm_p_Phone1").val().trim().length == 0) {
alert("전화번호를 입력하세요.");
$("#hm_p_Phone1").focus();
return false;
}
if($("#hm_p_Phone2").val().trim().length == 0) {
alert("전화 번호를 입력하세요.");
$("#hm_p_Phone2").focus();
return false;
}
if($("#hm_p_Phone3").val().trim().length == 0) {
alert("전화 번호를 입력하세요.");
$("#hm_p_Phone3").focus();
return false;
}
}
else if($("#rdoHandPhone").attr("checked")) {
if($("#hm_p_HandPhoneCompany").val().trim().length == 0) {
alert("통신사를 선택하세요.");
$("#hm_p_HandPhoneCompany").focus();
return false;
}
if($("#hm_p_HandPhone1").val().trim().length == 0) {
alert("휴대전화 번호를 입력하세요.");
$("#hm_p_HandPhone1").focus();
return false;
}
if($("#hm_p_HandPhone2").val().trim().length == 0) {
alert("휴대전화 번호를 입력하세요.");
$("#hm_p_HandPhone2").focus();
return false;
}
if($("#hm_p_HandPhone3").val().trim().length == 0) {
alert("휴대전화 번호를 입력하세요.");
$("#hm_p_HandPhone3").focus();
return false;
}
}
else {
alert("연락처를 선택하세요.");
$("#rdoPhone").focus();
return false;
}
frm.action = "/join/ParentAgree.hmc";
return true;
}
function ParentAgreeProcessSuccess(xhr) {
var rs = jQuery.parseJSON(xhr);
if(rs.RESULT == "TRUE") {
document.location.href = rs.PAGE;
}
else if(rs.RESULT == "FALSE") {
if(rs.ERROR_TYPE.indexOf("MESSAGE") > -1) {
alert(rs.MESSAGE);
}
if(rs.ERROR_TYPE.indexOf("REDIRECT") > -1) {
document.location.href = rs.PAGE;
}
}
else {
alert("부모동의 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
}
function ParentAgreeProcessFail() {
alert("부모동의 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
/**
회원가입 보모동의 - 끝
*/
/**
회원가입 - 정보저장 - 시작
*/
function DoInformationInsert() {
AjaxSubmit(document.getElementById("frmJoin"), InformationInsertValidate, InformationInsertProcessSuccess, InformationInsertProcessFail)
}
function InformationInsertValidate() {
var frm = document.getElementById("frmJoin");
if($("#hm_p_UserId").val().trim().length < 4) {
alert("아이디를 입력하세요.");
$("#hm_p_UserId").focus();
return false;
}
if($("#hm_p_IDDuplicateCheck").val() != "Y") {
alert("아이디 중복확인을 해주세요.");
$("#hm_p_IDDuplicateCheck").focus();
return false;
}
if($("#hm_p_Password").val().trim().length < 6) {
alert("비밀번호를 입력하세요.");
$("#hm_p_Password").focus();
return false;
}
if($("#hm_p_PasswordStrength").val() != "Y") {
alert("사용할 수 없는 비밀번호입니다.");
$("#hm_p_Password").focus();
return false;
}
if($("#hm_p_Password").val() != $("#hm_p_Password" + "_re").val()) {
alert("비밀번호와 비밀번호 확인이 다릅니다.");
$("#hm_p_Password").focus();
return false;
}
if($("#hm_p_BirthYear").val().trim().length != 4 ||
$("#hm_p_BirthMonth").val().trim().length != 2 ||
$("#hm_p_BirthDay").val().trim().length != 2) {
alert("생년월일을 정확히 입력해주세요.");
$("#hm_p_BirthYear").focus();
return false;
}
if(isValidDate($("#hm_p_BirthYear").val() + $("#hm_p_BirthMonth").val() + $("#hm_p_BirthDay").val() == false)) {
alert("생년월일이 정확한 날짜가 아닙니다.");
$("#hm_p_BirthYear").focus();
return false;
}
if($("#hm_p_Email1").val().trim().length == 0 || $("#hm_p_Email2").val().trim().length == 0) {
alert("이메일을 입력하세요.");
$("#hm_p_Email1").focus();
return false;
}
if(CheckEmail($("#hm_p_Email1").val() + "@" + $("#hm_p_Email2").val()) == false) {
alert("이메일 주소 형식이 올바르지 않습니다.");
$("#hm_p_Email1").focus();
return false;
}
var telno = "";
if($("#rdoPhone").attr("checked")) {
if($("#hm_p_Phone1").val().trim().length == 0) {
alert("전화번호를 입력하세요.");
$("#hm_p_Phone1").focus();
return false;
}
if($("#hm_p_Phone2").val().trim().length == 0) {
alert("전화 번호를 입력하세요.");
$("#hm_p_Phone2").focus();
return false;
}
if($("#hm_p_Phone3").val().trim().length == 0) {
alert("전화 번호를 입력하세요.");
$("#hm_p_Phone3").focus();
return false;
}
telno = $("#hm_p_Phone1").val() + "-" + $("#hm_p_Phone2").val() + "-" + $("#hm_p_Phone3").val();
}
else if($("#rdoHandPhone").attr("checked")) {
if($("#hm_p_HandPhoneCompany").val().trim().length == 0) {
alert("통신사를 선택하세요.");
$("#hm_p_HandPhoneCompany").focus();
return false;
}
if($("#hm_p_HandPhone1").val().trim().length == 0) {
alert("휴대전화 번호를 입력하세요.");
$("#hm_p_HandPhone1").focus();
return false;
}
if($("#hm_p_HandPhone2").val().trim().length == 0) {
alert("휴대전화 번호를 입력하세요.");
$("#hm_p_HandPhone2").focus();
return false;
}
if($("#hm_p_HandPhone3").val().trim().length == 0) {
alert("휴대전화 번호를 입력하세요.");
$("#hm_p_HandPhone3").focus();
return false;
}
telno = $("#hm_p_HandPhone1").val() + "-" + $("#hm_p_HandPhone2").val() + "-" + $("#hm_p_HandPhone3").val();
}
else {
alert("연락처를 선택하세요.");
$("#rdoPhone").focus();
return false;
}
if ( telno == "" )
{
alert("연락처를 입력하세요.");
return false;
}
patten = eval(PATTERN_Htel);
if(!patten.test(telno))
{
alert("연락처형식에 맞도록 입력하세요.");
return false;
}
if($("#hm_p_PostNum1").val().trim().length != 3 || $("#hm_p_PostNum2").val().trim().length != 3) {
alert("우편번호를 입력하세요.");
$("#hm_p_PostNum1").focus();
return false;
}
if($("#hm_p_Address").val().trim().length == 0) {
alert("주소를 입력하세요.");
$("#hm_p_Address").focus();
return false;
}
return true;
}
function InformationInsertProcessSuccess(xhr) {
var rs = jQuery.parseJSON(xhr);
if(rs.RESULT == "TRUE") {
document.location.href = rs.PAGE;
}
else if(rs.RESULT == "FALSE") {
if(rs.ERROR_TYPE.indexOf("MESSAGE") > -1) {
alert(rs.MESSAGE);
}
if(rs.ERROR_TYPE.indexOf("REDIRECT") > -1) {
document.location.href = rs.PAGE;
}
}
else {
alert("회원가입 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
}
function InformationInsertProcessFail() {
alert("회원가입 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
/**
회원가입 - 정보저장 - 끝
*/
/**
회원가입 - 약관동의 - 시작
*/
function DoAgreement() {
AjaxSubmit(document.getElementById("frmAgreement"), AgreementValidate, AgreementProcessSuccess, AgreementProcessFail)
}
function AgreementValidate() {
var frm = document.getElementById("frmAgreement");
var chk1 = document.getElementById("hm_p_Agreement1");
var chk2 = document.getElementById("hm_p_Agreement2");
var chk3 = document.getElementById("hm_p_Agreement3");
var chk4 = document.getElementById("hm_p_Agreement4");
if(chk1.checked == false) {
alert("약관에 동의해주세요.");
chk1.focus();
return false;
}
if(chk2.checked == false) {
alert("해피캐시 이용약관에 동의해주세요.");
chk2.focus();
return false;
}
if(chk3.checked == false) {
//alert("개인정보 취급 방침에 동의해주세요.");
alert("개인정보의 수집 및 이용에 동의해주세요.");
chk3.focus();
return false;
}
if(chk4.checked == false) {
//alert("개인정보 취급 방침에 동의해주세요.");
alert("개인정보 취급 위탁에 동의해주세요.");
chk4.focus();
return false;
}
frm.action = "/join/agreement.hmc";
return true;
}
function AgreementProcessSuccess(xhr) {
var rs = jQuery.parseJSON(xhr);
if(rs.RESULT == "TRUE") {
document.location.href = rs.PAGE;
}
else if(rs.RESULT == "FALSE") {
if(rs.ERROR_TYPE.indexOf("MESSAGE") > -1) {
alert(rs.MESSAGE);
}
if(rs.ERROR_TYPE.indexOf("REDIRECT") > -1) {
document.location.href = rs.PAGE;
}
}
else {
alert("약관동의 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
}
function AgreementProcessFail() {
alert("약관동의 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
/**
회원가입 - 약관동의 - 끝
*/
/**
회원가입 - 실명인증 - 시작
*/
function DoNamecheck() {
AjaxSubmit(document.getElementById("frmRealName"), NamecheckValidate, NamecheckProcessSuccess, NamecheckProcessFail);
}
function NamecheckValidate() {
var frm = document.getElementById("frmRealName");
var name = document.getElementById("hm_p_Name");
var jumin1 = document.getElementById("hm_p_JuminNumber1");
var jumin2 = document.getElementById("hm_p_JuminNumber2");
if(name.value.trim().length == 0) {
alert("이름을 입력하세요.");
return false;
}
if(JuminNumber.isValidJuminNo(jumin1.value + jumin2.value) == false) {
return false;
}
frm.action = "/join/RealnameCheck.hmc";
return true;
}
function NamecheckProcessSuccess(xhr) {
var rs = jQuery.parseJSON(xhr);
if(rs.RESULT == "TRUE") {
document.location.href = rs.PAGE;
}
else if(rs.RESULT == "FALSE") {
if(rs.ERROR_TYPE.indexOf("MESSAGE") > -1) {
alert(rs.MESSAGE);
}
if(rs.ERROR_TYPE.indexOf("REDIRECT") > -1) {
document.location.href = rs.PAGE;
}
}
else {
alert("실명인증 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
}
function NamecheckProcessFail() {
alert("실명인증 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
function IpinCheckRequest() {
AjaxLoad("/join/IPinRequest.hmc", null, "POST", IpinCheckRequestSuccess);
}
function IpinCheckRequestSuccess(xhr) {
var rs = jQuery.parseJSON(xhr);
if(rs.RESULT == "TRUE") {
IpinWindow = null;
OpenPopup(IpinWindow, "IPinPopup", "", 450, 540);
$("#enc_data").val(rs.MESSAGE);
$("#frmIPin").attr("action", "https://cert.vno.co.kr/ipin.cb");
$("#frmIPin").attr("target", "IPinPopup");
$("#frmIPin").submit();
}
else if(rs.RESULT == "FALSE") {
if(rs.ERROR_TYPE.indexOf("MESSAGE") > -1) {
alert(rs.MESSAGE);
}
if(rs.ERROR_TYPE.indexOf("REDIRECT") > -1) {
document.location.href = rs.PAGE;
}
}
else {
alert("실명인증 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
}
function IpinCheckSSLRequest() {
var Param = ({ssl : "Y"});
AjaxLoad("/join/IPinRequest.hmc", Param, "POST", IpinCheckRequestSuccess);
}
/**
회원가입 - 실명인증 - 끝
*/
/**
게시판 관련 스크립트 - 시작
*/
//게시판 쓰기
function DoBoardWrite() {
AjaxSubmit(document.getElementById("frmWrite"), BoardWriteValidate, BoardWriteProcessSuccess, BoardWriteProcessFail) ;
}
function BoardWriteValidate() {
var frm = document.getElementById("frmWrite");
var chk1 = document.getElementById("hm_p_board_Title");
var chk2 = document.getElementById("hm_p_bord_Contents");
if(chk1.Length < 1) {
alert("제목을 입력해주세요.");
chk1.focus();
return false;
}
if(chk2.Length < 1) {
alert("내용을 입력해주세요.");
chk1.focus();
return false;
}
if(chk2.Length > 4000) {
alert("글자를 4000 byte를 초과 하셨습니다.");
chk1.focus();
return false;
}
if(!confirm("등록하시겠습니까?")){
return false;
}
frm.method = "post";
frm.action = "WriteProcess.hmc"; /* Parse Security Protocol */
$("#btnWrite").css("display", "none");
$("#btnWriteIng").css("display", "block");
return true;
}
function BoardWriteProcessSuccess(xhr) {
var rs = jQuery.parseJSON(xhr);
if(rs.RESULT == "TRUE") {
document.location.href = rs.PAGE;
}
else if(rs.RESULT == "FALSE") {
if(rs.ERROR_TYPE.indexOf("MESSAGE") > -1) {
alert(rs.MESSAGE);
}
if(rs.ERROR_TYPE.indexOf("REDIRECT") > -1) {
document.location.href = rs.PAGE;
}
}
else {
alert("글쓰기 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
$("#btnWrite").css("display", "block");
$("#btnWriteIng").css("display", "none");
}
function BoardWriteProcessFail() {
alert("글쓰기 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
$("#btnWrite").css("display", "block");
$("#btnWriteIng").css("display", "none");
}
//게시판 수정
function DoBoardModify() {
AjaxSubmit(document.getElementById("frmModify"), BoardModifyValidate, BoardModifyProcessSuccess, BoardModifyProcessFail)
}
function BoardModifyValidate() {
var frm = document.getElementById("frmModify");
var chk1 = document.getElementById("hm_p_board_Title");
var chk2 = document.getElementById("hm_p_bord_Contents");
if(chk1.Length < 1) {
alert("제목을 입력해주세요.");
chk1.focus();
return false;
}
if(chk2.Length < 1) {
alert("내용을 입력해주세요.");
chk1.focus();
return false;
}
if(chk2.Length > 4000) {
alert("글자를 4000 byte를 초과 하셨습니다.");
chk1.focus();
return false;
}
if(!confirm("수정하시겠습니까?")){
return false;
}
frm.method = "post";
frm.action = "ModifyProcess.hmc"; /* Parse Security Protocol */
return true;
}
function BoardModifyProcessSuccess(xhr) {
var rs = jQuery.parseJSON(xhr);
if(rs.RESULT == "TRUE") {
document.location.href = rs.PAGE;
}
else if(rs.RESULT == "FALSE") {
if(rs.ERROR_TYPE.indexOf("MESSAGE") > -1) {
alert(rs.MESSAGE);
}
if(rs.ERROR_TYPE.indexOf("REDIRECT") > -1) {
document.location.href = rs.PAGE;
}
}
else {
alert("글수정 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
}
function BoardModifyProcessFail() {
alert("글수정 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
//게시판삭제
function DoBoardDelete() {
AjaxSubmit(document.getElementById("frmView"), BoardDeleteValidate, BoardDeleteProcessSuccess, BoardDeleteProcessFail)
}
function BoardDeleteValidate() {
var frm = document.getElementById("frmView");
if(!confirm("삭제하시겠습니까?")){
return false;
}
frm.action = "Delete.hmc";
return true;
}
function BoardDeleteProcessSuccess(xhr) {
var rs = jQuery.parseJSON(xhr);
if(rs.RESULT == "TRUE") {
document.location.href = rs.PAGE;
}
else if(rs.RESULT == "FALSE") {
if(rs.ERROR_TYPE.indexOf("MESSAGE") > -1) {
alert(rs.MESSAGE);
}
if(rs.ERROR_TYPE.indexOf("REDIRECT") > -1) {
document.location.href = rs.PAGE;
}
}
else {
alert("글쓰기 삭제 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
}
function BoardDeleteProcessFail() {
alert("글쓰기 삭제 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
//게시판 답변
function DoBoardAnswer() {
AjaxSubmit(document.getElementById("frmAnswer"), BoardAnswerValidate, BoardAnswerProcessSuccess, BoardAnswerProcessFail)
}
function BoardAnswerValidate() {
var frm = document.getElementById("frmAnswer");
var chk1 = document.getElementById("hm_p_board_Title");
var chk2 = document.getElementById("hm_p_bord_Contents");
if(chk1.Length < 1) {
alert("제목을 입력해주세요.");
chk1.focus();
return false;
}
if(chk2.Length < 1) {
alert("내용을 입력해주세요.");
chk1.focus();
return false;
}
if(chk2.Length > 4000) {
alert("글자를 4000 byte를 초과 하셨습니다.");
chk1.focus();
return false;
}
if(!confirm("등록하시겠습니까?")){
return false;
}
frm.action = "AnswerProcess.hmc"; /* Parse Security Protocol */
return true;
}
function BoardAnswerProcessSuccess(xhr) {
var rs = jQuery.parseJSON(xhr);
if(rs.RESULT == "TRUE") {
document.location.href = rs.PAGE;
}
else if(rs.RESULT == "FALSE") {
if(rs.ERROR_TYPE.indexOf("MESSAGE") > -1) {
alert(rs.MESSAGE);
}
if(rs.ERROR_TYPE.indexOf("REDIRECT") > -1) {
document.location.href = rs.PAGE;
}
}
else {
alert("답변 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
}
function BoardAnswerProcessFail() {
alert("답변 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
//게시판 검색
function DoBoardSearch() {
var frm = document.getElementById("frmSearch");
var txt = document.getElementById("hm_p_board_SearchKeyword");
if(txt.value.length < 1){
alert("검색어를 입력해주세요");
txt.focus();
return false;
}
frm.action = "list.hm";
frm.submit();
}
function InsertSearchKeyword(kind, keyword, resultCount){
if(keyword != null && keyword.length > 0){
jQuery.ajax({
type : "POST",
url : "/Common/InsertSearchKewordHistory.hmc",
data : {
"hm_p_search_kind" : kind,
"hm_p_search_keyword" : keyword,
"hm_p_result_count" : resultCount
}
});
}
}
/**
게시판 관련 스크립트 - 끝
*//**
파일 업로드 시작
*/
function DoUpload(uploadForm) {
if($("#hm_p_UploadFile").val() == "") {
eval($("#hm_p_AfterScript").val());
}
else {
var upload = document.getElementById(uploadForm);
upload.action = '/file/upload.hmc';
AjaxSubmit(document.getElementById(uploadForm), function() { return true; }, UploadProcessSuccess, UploadProcessFail);
}
}
function UploadProcessSuccess(xhr) {
var rs = jQuery.parseJSON(xhr);
if(rs.ErrorType != "") {
alert(rs.ErrorMessage);
return;
}
var html = "";
html += "";
$("#" + rs.AfterTargetForm).append(html);
for (var i = 0; i < rs.FileCount; i++) {
html = "";
html += "";
html += "";
html += "";
html += "";
html += "";
html += "";
html += "";
$("#" + rs.AfterTargetForm).append(html);
var originalFilename = document.getElementById("hm_p_OriginalFilename" + i);
var extension = document.getElementById("hm_p_FileExtension" + i);
var saveFilename = document.getElementById("hm_p_SaveFilename" + i);
var savePath = document.getElementById("hm_p_SavePath" + i);
var Filesize = document.getElementById("hm_p_FileSize" + i);
var UploadType = document.getElementById("hm_p_UploadType" + i);
var FileUrl = document.getElementById("hm_p_FileUrl" + i);
$("#hm_p_OriginalFilename" + i).val(rs.FileInfo[i].OriginalFilename);
$("#hm_p_FileExtension" + i).val(rs.FileInfo[i].FileExtension);
$("#hm_p_SaveFilename" + i).val(rs.FileInfo[i].SaveFilename);
$("#hm_p_SavePath" + i).val(rs.FileInfo[i].SavePath);
$("#hm_p_FileSize" + i).val(rs.FileInfo[i].FileSize);
$("#hm_p_UploadType" + i).val(rs.FileInfo[i].UploadType);
$("#hm_p_FileUrl" + i).val(rs.FileInfo[i].FileUrl);
}
eval(rs.AfterScript);
}
function UploadProcessFail() {
alert("업로드 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
/**
파일 업로드 끝
*//**
게시판 관련 스크립트 - 시작
*/
//리플쓰기
function DoReplyWrite() {
AjaxSubmit(document.getElementById("frmReplyWirte"), DoReplyWriteValidate, DoReplyWriteProcessSuccess, DoReplyWriteProcessFail)
}
function DoReplyWriteValidate() {
var frm = document.getElementById("frmReplyWirte");
var chk1 = document.getElementById("hm_p_ReplyContents");
if(chk1.Length < 1) {
alert("리플을 입력해주세요.");
chk1.focus();
return false;
}
if(!confirm("등록하시겠습니까?")){
return false;
}
frm.method = "post";
frm.action = "/board/ReplyWrite.hmc";
return true;
}
function DoReplyWriteProcessSuccess(xhr) {
var rs = jQuery.parseJSON(xhr);
if(rs.RESULT == "TRUE") {
document.location.href = rs.PAGE;
}
else if(rs.RESULT == "FALSE") {
if(rs.ERROR_TYPE.indexOf("MESSAGE") > -1) {
alert(rs.MESSAGE);
}
if(rs.ERROR_TYPE.indexOf("REDIRECT") > -1) {
document.location.href = rs.PAGE;
}
}
else {
alert("글쓰기 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
}
function DoReplyWriteProcessFail(xhr) {
var rs = jQuery.parseJSON(xhr);
if (rs == null || rs.RESULT != "TRUE")
{
alert("글쓰기 처리 중 시스템장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
}
//리플 삭제
function DoReplyDelete(code) {
$("#hm_p_ReplyCode").val(code);
AjaxSubmit(document.getElementById("ReplyDelete"), DoReplyDeleteValidate, DoReplyDeleteProcessSuccess, DoReplyDeleteProcessFail)
}
function DoReplyDeleteValidate() {
var frm = document.getElementById("ReplyDelete");
if(!confirm("삭제하시겠습니까?")){
return false;
}
frm.action = "/board/ReplyDelete.hmc"; /* Parse Security Protocol */
return true;
}
function DoReplyDeleteProcessSuccess(xhr) {
var rs = jQuery.parseJSON(xhr);
if(rs.RESULT == "TRUE") {
document.location.href = rs.PAGE;
}
else if(rs.RESULT == "FALSE") {
if(rs.ERROR_TYPE.indexOf("MESSAGE") > -1) {
alert(rs.MESSAGE);
}
if(rs.ERROR_TYPE.indexOf("REDIRECT") > -1) {
document.location.href = rs.PAGE;
}
}
else {
alert("글쓰기 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
}
function DoReplyDeleteProcessFail() {
alert("글쓰기 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
/**
게시판 관련 스크립트 - 끝
*/var url = "";
try
{
url = top.location.href;
}
catch(a)
{}
function luck_cont(n) {
for(var i = 1; i < 5; i++) {
obj = document.getElementById('luck_cont'+i);
img = document.getElementById('luck_btn_'+i);
if ( n == i ) {
obj.style.display = "block";
img.height = 30;
img.src = "http://img.happymoney.co.kr/www/images/mypage/luck_tab0"+i+"_on.gif";
} else {
obj.style.display = "none";
img.height = 30;
img.src = "http://img.happymoney.co.kr/www/images/mypage/luck_tab0"+i+"_off.gif";
}
}
}
/**
온라인 상담 스크립트 - 시작
*/
//온라인 상담 쓰기
function DoCounselWrite() {
AjaxSubmit(document.getElementById("frmCounsel"), CounselWriteValidate, CounselWriteProcessSuccess, CounselWriteProcessFail) ;
}
function CounselWriteValidate() {
var frm = document.getElementById("frmCounsel");
var chk1 = document.getElementById("hm_p_board_Title");
var chk2 = document.getElementById("hm_p_bord_Contents");
var chk3 = document.getElementById("hm_p_OnlineBoardGRP");
if(chk1.Length < 1) {
alert("제목을 입력해주세요.");
chk1.focus();
return false;
}
if(chk2.Length < 1) {
alert("내용을 입력해주세요.");
chk1.focus();
return false;
}
if(chk2.Length >4000) {
alert("글자를 4000 byte를 초과 하셨습니다.");
chk1.focus();
return false;
}
if(chk3.value < 1) {
alert("질문 유형을 선택하셔야합니다.");
chk1.focus();
return false;
}
if(!confirm("등록하시겠습니까?")){
return false;
}
frm.method = "post";
frm.action = "/customer/notice/online/WriteProcess.hmc"; /* Parse Security Protocol */
$("#btnWrite").css("display", "none");
$("#btnWriteIng").css("display", "block");
return true;
}
function CounselWriteProcessSuccess(xhr) {
var rs = jQuery.parseJSON(xhr);
if(rs.RESULT == "TRUE") {
document.location.href = rs.PAGE;
}
else if(rs.RESULT == "FALSE") {
if(rs.ERROR_TYPE.indexOf("MESSAGE") > -1) {
alert(rs.MESSAGE);
}
if(rs.ERROR_TYPE.indexOf("REDIRECT") > -1) {
document.location.href = rs.PAGE;
}
}
else {
alert("글쓰기 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
$("#btnWrite").css("display", "block");
$("#btnWriteIng").css("display", "none");
}
function CounselWriteProcessFail() {
alert("글쓰기 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
$("#btnWrite").css("display", "block");
$("#btnWriteIng").css("display", "none");
}
function checkTextArea(that){
if(that != null){
if(that.value.trim() == cm_textAreaTextSave.trim()){
that.value = "";
}
}
}
function deleteTextArea(that){
if(that != null){
if(that.value == ""){
that.value = cm_textAreaTextSave;
}
}
}
function textAreaTextSave(){
if(!document.getElementById("hm_p_bord_Contents")) return false;
try
{
cm_textAreaTextSave = document.getElementById("hm_p_bord_Contents").firstChild.nodeValue;
}
catch (ex)
{
}
}
window.onload = function(){
textAreaTextSave();
}
// 온라인 상담 수정
function DoCounselModify() {
AjaxSubmit(document.getElementById("frmCounselModify"), DoCounselModifyValidate, DoCounselModifyProcessSuccess, DoCounselModifyProcessFail)
}
function DoCounselModifyValidate() {
var frm = document.getElementById("frmCounselModify");
var chk1 = document.getElementById("hm_p_board_Title");
var chk2 = document.getElementById("hm_p_bord_Contents");
var chk3 = document.getElementById("hm_p_OnlineBoardGRP");
if(chk1.Length < 1) {
alert("제목을 입력해주세요.");
chk1.focus();
return false;
}
if(chk2.Length < 1) {
alert("내용을 입력해주세요.");
chk1.focus();
return false;
}
if(chk2.Length > 4000) {
alert("글자를 4000 byte를 초과 하셨습니다.");
chk1.focus();
return false;
}
if(chk3 < 1) {
alert("질문 유형을 선택하셔야합니다.");
chk1.focus();
return false;
}
if(!confirm("수정 하시겠습니까?")){
return false;
}
frm.method = "post";
frm.action = "ModifyProcess.hmc"; /* Parse Security Protocol */
return true;
}
function DoCounselModifyProcessSuccess(xhr) {
var rs = jQuery.parseJSON(xhr);
if(rs.RESULT == "TRUE") {
document.location.href = rs.PAGE;
}
else if(rs.RESULT == "FALSE") {
if(rs.ERROR_TYPE.indexOf("MESSAGE") > -1) {
alert(rs.MESSAGE);
}
if(rs.ERROR_TYPE.indexOf("REDIRECT") > -1) {
document.location.href = rs.PAGE;
}
}
else {
alert("글수정 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
}
function DoCounselModifyProcessFail() {
alert("글수정 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
//온라인 상담 삭제
function DoCounselDelete() {
AjaxSubmit(document.getElementById("frmCounselView"), CounselDeleteValidate, CounselDeleteProcessSuccess, CounselDeleteProcessFail)
}
function CounselDeleteValidate() {
var frm = document.getElementById("frmCounselView");
if(!confirm("삭제 하시겠습니까?")){
return false;
}
frm.method = "post";
frm.action = "DeleteProcess.hmc"; /* Parse Security Protocol */
return true;
}
function CounselDeleteProcessSuccess(xhr) {
var rs = jQuery.parseJSON(xhr);
if(rs.RESULT == "TRUE") {
document.location.href = rs.PAGE;
}
else if(rs.RESULT == "FALSE") {
if(rs.ERROR_TYPE.indexOf("MESSAGE") > -1) {
alert(rs.MESSAGE);
}
if(rs.ERROR_TYPE.indexOf("REDIRECT") > -1) {
document.location.href = rs.PAGE;
}
}
else {
alert("글수정 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
}
function CounselDeleteProcessFail() {
alert("글수정 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
//온라인 상담 리스트에서 삭제
function DoCounselListDelete(code,Kind) {
$("#hm_p_board_ContentsCode").val(code);
$("#hm_p_OnlineBoardGRP").val(Kind);
AjaxSubmit(document.getElementById("CounselListDelete"), CounselListDeleteValidate, CounselListDeleteProcessSuccess, CounselListDeleteProcessFail)
}
function CounselListDeleteValidate() {
var frm = document.getElementById("CounselListDelete");
if(!confirm("삭제하시겠습니까?")){
return false;
}
frm.method = "post";
frm.action = "DeleteProcess.hmc"; /* Parse Security Protocol */
return true;
}
function CounselListDeleteProcessSuccess(xhr) {
var rs = jQuery.parseJSON(xhr);
if(rs.RESULT == "TRUE") {
document.location.href = rs.PAGE;
}
else if(rs.RESULT == "FALSE") {
if(rs.ERROR_TYPE.indexOf("MESSAGE") > -1) {
alert(rs.MESSAGE);
}
if(rs.ERROR_TYPE.indexOf("REDIRECT") > -1) {
document.location.href = rs.PAGE;
}
}
else {
alert("글쓰기 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
}
function CounselListDeleteProcessFail() {
alert("글쓰기 처리 중 장애가 발생하였습니다.\n\n잠시후에 다시 시도해 주세요.");
}
/**
온라인 상담 관련 스크립트 - 끝
*/
function ShowHappmoneyMap(x, y, name) {
var url = "/happymap/StoreMap.html?x="+x+"&y="+y+"&name=" + name;
window.open(url,'mapWin', 'width=400,height=610,scrollbars=no,resizable=no');
}
function LoginGoRedirect() {
top.document.location.href = "/member/login.hm?hm_p_Referrer=" + escape(top.document.location + "");
}
function gotoMainMenu(type) {
switch(type)
{
case "h21":
gotoTopUrl("https://www.happy21.co.kr/", "_blank");
break;
case "corp":
gotoTopUrl("http://corp.happymoney.co.kr/", "_blank");
break;
case "star":
gotoTopUrl("http://star.happymoney.co.kr/", "_blank");
break;
case "mall":
gotoTopUrl("/goodsmall/ProductMain.hm", "");
break;
case "contents":
gotoTopUrl("/contentsmall/ContentmMain.hm", "");
break;
case "game":
gotoTopUrl("/Extension/ExportContents/HMCrypt.aspx?id=bizpop&url=http://happymoney.casualpop.co.kr", "");
break;
case "mall_shopping":
gotoTopUrl("/goodsmall/ProductShoppingMain.hm", "");
break;
case "mall_book":
gotoTopUrl("/goodsmall/ProductBookMain.hm", "");
break;
case "mall_travel":
case "mall_reservation":
gotoTopUrl("/goodsmall/ProductMain.hm", "");
break;
case "contents_mobile":
case "contents_contents":
case "contents_e-education":
gotoTopUrl("/contentsmall/ContentmMain.hm", "");
break;
case "contents_hm-e-coupon":
ViewMall('http://dnaservice.happymoney.co.kr/?partner=happymoney');
break;
case "game_casual":
gotoTopUrl("/Extension/ExportContents/HMCrypt.aspx?id=bizpop&url=http://happymoney.casualpop.co.kr", "");
break;
case "game_homeplay":
gotoTopUrl("/GoodsMall/ProductMallView.hm?url=http://www.golev.co.kr/HappyMoney/Main.aspx", "");
break;
}
}
function gotoTopUrl(url, target)
{
if ( target != null && target != undefined && target != "undefined" && target != "" )
{
if ( target == "_blank")
{
window.open(url);
}
else
{
window.open(url, target);
}
}
else
{
top.document.location.href = url;
}
}
setCookie('m_login_id', '', -1);
setCookie('m_logon_name', '', -1);
setCookie('u_logon_id', '', -1);
setCookie('u_logon_name', '', -1);
function ViewMall(url) {
document.location.href = "/goodsmall/ProductMallView.hm?URL=" + escape(url);
}
$(document).ready(function() {
try
{
$(document).find("[type=password]").attr("AUTOCOMPLETE", "off");
$(document).find("[type=text]").attr("AUTOCOMPLETE", "off");
}
catch (ex)
{
}
try
{
if( navigator.appName.indexOf("Microsoft") > -1 ){
if( navigator.appVersion.indexOf("MSIE 6") > -1){
var aScriptLink = $("a").filter(function(index, ele) {
var linkObj = $(this);
return linkObj.attr("href") == "javascript:;" && linkObj.attr("onclick");
});
aScriptLink.each(function(index, ele) {
var linkObj = $(ele);
linkObj.attr("href", "#");
});
}
}
}
catch (ex)
{
}
});
//]]>