function _sendLogin() {var returnURL;returnURL = location.href.toLowerCase();if(returnURL.indexOf("/login") < 0) {returnURL = returnURL.replace("http://", "").replace("https://", "");returnURL = returnURL.substring(returnURL.indexOf("/"), returnURL.length);if(returnURL.indexOf("/notice") > -1 || returnURL.indexOf("/qna") > -1) {returnURL = returnURL.replace("_view", "_list").replace("_write", "_list");}else {returnURL = returnURL.replace("_view", "").replace("_write", "");}if(f && f.returnUrl) {f.returnUrl.value = returnURL;}}_go("/login");}function _checkTextField(_obj) {if(_obj.val().replace(/\s/g, "").length < 1) {var label;label = _obj.parents("td").find("p:first").text();if(!label[0]) {label = _obj.parents("li").find("label:first").text();}if(!label[0]) {label = _obj.parents("dl").find("p:first").text();}_alertSwitch(true, _obj[0], checkNullTextMsg.replace("%s", label).replace(/\n/g, "
"));return false;}return true;}function _checkSelectField(_obj) {if(_obj.val().replace(/\s/g, "").length < 1) {var label;label = _obj.parents("td").find("p:first").text();if(!label[0]) {label = _obj.parents("li").find("label:first").text();}_alertSwitch(true, _obj[0], checkNullSelectMsg.replace("%s", label).replace(/\n/g, "
"));return false;}return true;}function _checkZipcodeTextField(_obj) {if(_obj.val().replace(/\s/g, "").length < 1) {var label;label = _obj.attr("placeholder");_alertSwitch(true, _obj[0], checkNullTextMsg.replace("%s", label).replace(/\n/g, "
"));return false;}return true;}function _checkReviewTextField(_obj) {if(_obj.val().replace(/\s/g, "").length < 1) {var label;label = _obj.parents("dd").prev().find("label:first").text();label = label.replace("*", "").trim();_alertSwitch(true, _obj[0], checkNullTextMsg.replace("%s", label).replace(/\n/g, "
"));return false;}return true;}function _checkReviewSelectField(_obj) {if(_obj.val().replace(/\s/g, "").length < 1) {var label;label = _obj.parents("dd").prev().find("label:first").text();label = label.replace("*", "").trim();_alertSwitch(true, _obj[0], checkNullSelectMsg.replace("%s", label).replace(/\n/g, "
"));return false;}return true;}function _checkInquiryTextField(_obj) {if(_obj.val().replace(/\s/g, "").length < 1) {var label;label = _obj.parents("dd").prev().find("label:first").text();_alertSwitch(true, _obj[0], checkNullTextMsg.replace("%s", label).replace(/\n/g, "
"));return false;}return true;}function _sigungu(_sido, _target, _dong) {if(!_sido[0] || !_target[0]) {return;}_blind(true);$.ajax({"type": "POST","cache": false,"url": "/ajax/front/zipcode/sigungu","dataType": "json","data": {"searchZipcodeSido": _sido.val()},"success": function(_data) {var option, label;label = _target.find("option:first").html();_target.empty();option = $(doc.createElement("option"));option.val("");option.html(label);_target.append(option);label = _dong.find("option:first").html();_dong.empty();option = $(doc.createElement("option"));option.val("");option.html(label);_dong.append(option);for(var idx in _data.rows) {option = $(doc.createElement("option"));option.val(_data.rows[idx]);option.html(_data.rows[idx]);_target.append(option);}_blind(false);},"error": function(_data) {_alertSwitch(false, null, errorMsg.replace(/\n/g, "
"), "err");}});}function _dong(_sido, _sigungu, _target) {if(!_sido[0] || !_sigungu[0] || !_target[0]) {return;}_blind(true);$.ajax({"type": "POST","cache": false,"url": "/ajax/front/zipcode/dong","dataType": "json","data": {"searchZipcodeSido": _sido.val(),"searchZipcodeSigungu": _sigungu.val()},"success": function(_data) {var option;label = _target.find("option:first").html();_target.empty();option = $(doc.createElement("option"));option.val("");option.html(label);_target.append(option);for(var idx in _data.rows) {option = $(doc.createElement("option"));option.val(_data.rows[idx]);option.html(_data.rows[idx]);_target.append(option);}_blind(false);},"error": function(_data) {_alertSwitch(false, null, errorMsg.replace(/\n/g, "
"), "err");}});}