var phone_html = "";
var phone_html4 = "";
var phone_div = document.createElement("div"); // 최상위 레이어 생성
phone_div.setAttribute("id","phone_banner");
document.body.appendChild(phone_div);
phone_html += "";
phone_html += " a{text-decoration:none;}\n";
phone_html += " a:link{text-decoration:none;}\n";
phone_html += " a:visited{text-decoration:none;}\n";
phone_html += " a:hover{text-decoration:none;}\n";
phone_html += " a:active{text-decoration:none;}\n";
phone_html += " input {border:0; margin:0; padding:0;}\n";
phone_html += " img{border:0;margin:0;padding:0;vertical-align:top;text-align:left;}\n";
phone_html += "";
phone_html += "
";
phone_html += " ";
phone_html += "
";
phone_html += "
";
phone_html += "function kakao_valid(frm) {\n";
phone_html += " if(frm.damname.value.trim() == '' || frm.damname.value.trim() == '이름') {\n";
phone_html += " alert('이름을 입력하세요');\n";
phone_html += " frm.damname.focus();\n";
phone_html += " return false;\n";
phone_html += " }\n";
phone_html += " else if(frm.sex.value.trim() == '') {\n";
phone_html += " alert('성별을 선택하세요.');\n";
phone_html += " frm.sex.focus();\n";
phone_html += " return false;\n";
phone_html += " }\n";
phone_html += " else if(frm.age.value.trim() == '') {\n";
phone_html += " alert('연령을 선택하세요.');\n";
phone_html += " frm.age.focus();\n";
phone_html += " return false;\n";
phone_html += " }\n";
phone_html += " else if(frm.phone2.value.trim() == '') {\n";
phone_html += " alert('전화번호를 입력하세요');\n";
phone_html += " frm.phone2.focus();\n";
phone_html += " return false;\n";
phone_html += " }\n";
phone_html += " else if(frm.phone3.value.trim() == '') {\n";
phone_html += " alert('전화번호를 입력하세요');\n";
phone_html += " frm.phone3.focus();\n";
phone_html += " return false;\n";
phone_html += " }\n";
phone_html += " else if(frm.privacy_agree.checked == '') {\n";
phone_html += " alert('정보제공에 동의하세요.');\n";
phone_html += " frm.privacy_agree.focus();\n";
phone_html += " return false;\n";
phone_html += " }\n";
phone_html += " else {\n";
//phone_html += " privacy_check(frm);\n";
phone_html += " return true;\n";
phone_html += " }\n";
phone_html += "}\n";
phone_html += "";
phone_html += "
";
phone_html += " ";
phone_html += "
";
phone_html += "
";
phone_html += "
";
phone_html += "function sms_valid(frm) {\n";
phone_html += " if(frm.damname.value.trim() == '' || frm.damname.value.trim() == '이름') {\n";
phone_html += " alert('이름을 입력하세요');\n";
phone_html += " frm.damname.focus();\n";
phone_html += " return false;\n";
phone_html += " }\n";
phone_html += " else if(frm.sex.value.trim() == '') {\n";
phone_html += " alert('성별을 선택하세요.');\n";
phone_html += " frm.sex.focus();\n";
phone_html += " return false;\n";
phone_html += " }\n";
phone_html += " else if(frm.age.value.trim() == '') {\n";
phone_html += " alert('연령을 선택하세요.');\n";
phone_html += " frm.age.focus();\n";
phone_html += " return false;\n";
phone_html += " }\n";
phone_html += " else if(frm.phone2.value.trim() == '') {\n";
phone_html += " alert('전화번호를 입력하세요');\n";
phone_html += " frm.phone2.focus();\n";
phone_html += " return false;\n";
phone_html += " }\n";
phone_html += " else if(frm.phone3.value.trim() == '') {\n";
phone_html += " alert('전화번호를 입력하세요');\n";
phone_html += " frm.phone3.focus();\n";
phone_html += " return false;\n";
phone_html += " }\n";
phone_html += " else if(frm.protect.checked == '') {\n";
phone_html += " alert('정보제공에 동의하세요.');\n";
phone_html += " frm.protect.focus();\n";
phone_html += " return false;\n";
phone_html += " }\n";
phone_html += " else {\n";
//phone_html += " privacy_check(frm);\n";
phone_html += " return true;\n";
phone_html += " }\n";
phone_html += "}\n";
phone_html += "";
phone_html += "
";
phone_html += " ";
phone_html += "
";
phone_html += "
";
phone_html += "
";
phone_html += "function sms_valid(frm) {\n";
phone_html += " if(frm.damname.value.trim() == '' || frm.damname.value.trim() == '이름') {\n";
phone_html += " alert('이름을 입력하세요');\n";
phone_html += " frm.damname.focus();\n";
phone_html += " return false;\n";
phone_html += " }\n";
phone_html += " else if(frm.sex.value.trim() == '') {\n";
phone_html += " alert('성별을 선택하세요.');\n";
phone_html += " frm.sex.focus();\n";
phone_html += " return false;\n";
phone_html += " }\n";
phone_html += " else if(frm.age.value.trim() == '') {\n";
phone_html += " alert('연령을 선택하세요.');\n";
phone_html += " frm.age.focus();\n";
phone_html += " return false;\n";
phone_html += " }\n";
phone_html += " else if(frm.phone2.value.trim() == '') {\n";
phone_html += " alert('전화번호를 입력하세요');\n";
phone_html += " frm.phone2.focus();\n";
phone_html += " return false;\n";
phone_html += " }\n";
phone_html += " else if(frm.phone3.value.trim() == '') {\n";
phone_html += " alert('전화번호를 입력하세요');\n";
phone_html += " frm.phone3.focus();\n";
phone_html += " return false;\n";
phone_html += " }\n";
phone_html += " else if(frm.protect.checked == '') {\n";
phone_html += " alert('정보제공에 동의하세요.');\n";
phone_html += " frm.protect.focus();\n";
phone_html += " return false;\n";
phone_html += " }\n";
phone_html += " else {\n";
//phone_html += " privacy_check(frm);\n";
phone_html += " return true;\n";
phone_html += " }\n";
phone_html += "}\n";
phone_html += "";
phone_html += "
";
phone_html += " ";
phone_html += " ";
phone_html += "
";
phone_html += "
";
phone_html += " ";
phone_html += "
";
phone_html += " - ";
phone_html += "
";
phone_html += "
";
phone_html += "
";
phone_html += " ";
phone_html += "
";
phone_html += "
";
phone_html += " ";
phone_html += " - ";
phone_html += "
";
phone_html += "
";
phone_html += "
";
phone_html += " ";
phone_html += "
";
phone_html += "
";
phone_html += " ";
phone_html += " - ";
phone_html += "
";
phone_html += "
";
phone_html += "
";
phone_html += " ";
phone_html += "
";
phone_html += "
";
phone_html += " ";
phone_html += " - ";
phone_html += " ";
phone_html += "
";
phone_html += "
";
phone_html += "
";
phone_html += "";
phone_html += "";
phone_html += "jQuery('#quick_nav_wrapper li.top').click(function(){\n";
phone_html += "var posY=0;\n";
phone_html += "jQuery('html,body').stop().animate({scrollTop:posY},500, 'easeInOutQuint');\n";
phone_html += "});\n";
phone_html += "jQuery(function(){\n";
phone_html += " jQuery('#quick_nav_wrapper .nav li').hover(function(){\n";
phone_html += " jQuery(this).closest('.nav').find('.default').stop(false,false).animate({opacity:1});\n";
phone_html += " jQuery(this).closest('.nav').find('.over').stop(false,false).animate({opacity:0});\n";
phone_html += " jQuery(this).find('.over').stop(false,false).animate({ opacity:1 });\n";
phone_html += " });\n";
phone_html += " });\n";
phone_html += "";
phone_html4 += " [닫기]
\n";
phone_html4 += "
\n";
phone_html4 += " 개인정보의 수집 및 이용목적\n";
phone_html4 += "
\n";
phone_html4 += " \n";
phone_html4 += "\n";
phone_html4 += " function privacyClosePhone(){\n";
// phone_html4 += " document.body.style.overflow = 'auto';\n";
phone_html4 += " jQuery('#privacyAuth').remove();\n";
phone_html4 += " jQuery('#MaskLayer').remove();\n";
phone_html4 += " }\n";
phone_html4 += "\n";
phone_html += "";
phone_html += " var phone_html3 = '';\n";
phone_html += " var PhoneBannerTop = 220;\n";
phone_html += " String.prototype.trim = function() {\n";
phone_html += " return this.replace(/(^\s*)|(\s*$)/g, '');\n";
phone_html += " }\n";
phone_html += " function privacy_view(){\n";
phone_html += " insertMask();\n";
//phone_html += " document.body.style.overflow = 'hidden';\n";
phone_html += " var phone_div2 = document.createElement('div');\n";
phone_html += " phone_div2.setAttribute('id','privacyAuth');\n";
phone_html += " jQuery(phone_div2).css({'position':'absolute','width':'700px'});\n";
phone_html += " jQuery(phone_div2).html(phone_html3);\n";
phone_html += " var privacyTop = jQuery(window).scrollTop() + 50;\n";
phone_html += " var privacyLeft = ((document.body.clientWidth - jQuery(phone_div2).width()) / 2) + document.body.scrollLeft;\n";
phone_html += " jQuery(phone_div2).css({'top':privacyTop+'px','left':privacyLeft+'px','padding':'20px 20px','z-index':'100000000','background-color':'#eee'});\n";
phone_html += " document.body.appendChild(phone_div2);\n";
phone_html += " }\n";
//phone_html += " function privacy_check(frm){\n";
//phone_html += " var phone_div2 = document.createElement('div');\n";
//phone_html += " phone_div2.setAttribute('id','privacyAuth');\n";
//phone_html += " jQuery(phone_div2).css({'position':'absolute','width':'600px'});\n";
//phone_html += " jQuery(phone_div2).html(phone_html3);\n";
//phone_html += " var privacyTop = ((jQuery(window).height() - jQuery(phone_div2).height()) / 2) + jQuery(window).scrollTop();\n";
//phone_html += " var privacyLeft = ((jQuery(window).width() - jQuery(phone_div2).width()) / 2) + jQuery(window).scrollLeft();\n";
//phone_html += " var privacyTop = jQuery(window).scrollTop() + 50;\n";
//phone_html += " var privacyLeft = ((document.body.clientWidth - jQuery(phone_div2).width()) / 2) + document.body.scrollLeft;\n";
//phone_html += " jQuery(phone_div2).css({'top':privacyTop+'px','left':privacyLeft+'px','z-index':'100000000','background-color':'#eee'});\n";
//phone_html += " document.body.appendChild(phone_div2);\n";
//phone_html += " insertMask();\n";
//phone_html += " bannerForm = frm;\n";
//phone_html += " }\n";
phone_html += " function insertMask(){\n";
phone_html += " var maskDiv = document.createElement('div');\n";
phone_html += " maskResize(maskDiv);\n";
phone_html += " document.getElementsByTagName('body')[0].appendChild(maskDiv);\n";
phone_html += " jQuery(window).resize(function(){\n";
phone_html += " maskResize(maskDiv);\n";
phone_html += " });\n";
phone_html += " maskDiv.setAttribute('id','MaskLayer');\n";
phone_html += " return maskDiv;\n";
phone_html += " }\n";
phone_html += " function maskResize(el){\n";
phone_html += " var docuW = jQuery(document).width();\n";
phone_html += " var docuH = jQuery(document).height();\n";
phone_html += " if(docuW < document.body.clientWidth){\n";
phone_html += " docuW = document.body.clientWidth;\n";
phone_html += " }\n";
phone_html += " if(docuH < document.body.clientHeight){\n";
phone_html += " docuH = document.body.clientHeight;\n";
phone_html += " }\n";
phone_html += " jQuery(el).css({'position':'absolute', 'top':'0', 'left':'0', 'width':docuW+'px', 'height':docuH+'px', 'background-color':'#000', 'opacity':'0.8', 'filter':'progid:DXImageTransform.Microsoft.Alpha(opacity=80)', 'z-index':'9999'});\n";
//phone_html += " el.setAttribute('style','position:absolute; top:0; left:0; width:'+docuW+'px; height:'+docuH+'px; background-color:#000; opacity : 0.8; filter: progid:DXImageTransform.Microsoft.Alpha(opacity=80); z-index:9999;');\n";
phone_html += " }\n";
phone_html += " function change_mod(no) {\n";
phone_html += " if(no=='1') {\n";
phone_html += " document.getElementById('change_mod1').style.display='';\n";
phone_html += " document.getElementById('change_mod2').style.display='none';\n";
phone_html += " document.getElementById('change_mod3').style.display='none';\n";
phone_html += " }\n";
phone_html += " if(no=='2') {\n";
phone_html += " document.getElementById('change_mod1').style.display='none';\n";
phone_html += " document.getElementById('change_mod2').style.display='';\n";
phone_html += " document.getElementById('change_mod3').style.display='none';\n";
phone_html += " }\n";
phone_html += " if(no=='3') {\n";
phone_html += " document.getElementById('change_mod1').style.display='none';\n";
phone_html += " document.getElementById('change_mod2').style.display='none';\n";
phone_html += " document.getElementById('change_mod3').style.display='';\n";
phone_html += " }\n";
phone_html += " }\n";
phone_html += " function phoneclose(){\n";
phone_html += " jQuery('#phone_banner').remove();\n";
phone_html += " }\n";
phone_html += " $(document).ready(function() {\n";
phone_html += " jQuery('#phone_banner').css({'position':'absolute','top':$(window).scrollTop() + PhoneBannerTop,'right':'250px','z-index':'10000000','text-align':'left','width':'344px','height':'420px','display':'block'});\n";
//phone_html += " jQuery('#phone_banner').stop().animate({top:$(window).scrollTop() + PhoneBannerTop},'fast');\n";
phone_html += " jQuery('#phone_banner').draggable({\n";
phone_html += " cursor: 'move'\n";
phone_html += " ,opacity: 0.8\n";
phone_html += " ,helper: 'original'\n";
phone_html += " ,scroll : false\n";
//phone_html += " ,containment: 'body'\n";
phone_html += " ,stop: function(event,ui) { PhoneBannerTop = parseInt(jQuery('#phone_banner').css('top').replace('px','') - $(window).scrollTop()); }\n";
phone_html += " });\n";
phone_html += " $(window).scroll(function() {\n";
phone_html += " jQuery('#phone_banner').stop().animate({top:(jQuery(window).scrollTop() || document.body.scrollTop) + PhoneBannerTop},'fast');\n";
phone_html += " });\n";
phone_html += " });\n";
phone_html += "";
function include_js(file, callBackFunction) {
var html_doc = document.getElementsByTagName('head')[0];
js = document.createElement('script');
js.setAttribute('type', 'text/javascript');
js.setAttribute('src', file);
html_doc.appendChild(js);
// This will load the javascript for Safari, but it won't
// let us know when it's been loaded. The following will.
if(/WebKit|Khtml/i.test(navigator.userAgent)) {
var iframe = document.createElement('iframe');
iframe.style.display = 'none';
iframe.setAttribute('src',file);
document.getElementsByTagName('body').item(0).appendChild(iframe);
// Fires in Saf
iframe.onload = function() {
if(callBackFunction != null) {
callbackFunction();
}
//alert('JS iframe fired');
}
}
// Fires in IE, also modified the test to cover both states
js.onreadystatechange = function () {
if (/complete|loaded/.test(js.readyState)) {
if(callBackFunction != null) {
callbackFunction();
}
//alert('JS onreadystate fired');
}
}
// Fires in FF
js.onload = function () {
if(callBackFunction != null) {
callbackFunction();
}
//alert('JS onload fired');
}
return false;
}
function include_js_parent(file, callBackFunction) {
var html_doc = parent.document.getElementsByTagName('head')[0];
js = parent.document.createElement('script');
js.setAttribute('type', 'text/javascript');
js.setAttribute('src', file);
html_doc.appendChild(js);
// This will load the javascript for Safari, but it won't
// let us know when it's been loaded. The following will.
if(/WebKit|Khtml/i.test(navigator.userAgent)) {
var iframe = parent.document.createElement('iframe');
iframe.style.display = 'none';
iframe.setAttribute('src',file);
parent.document.getElementsByTagName('body').item(0).appendChild(iframe);
// Fires in Saf
iframe.onload = function() {
if(callBackFunction != null) {
callbackFunction();
}
//alert('JS iframe fired');
}
}
// Fires in IE, also modified the test to cover both states
js.onreadystatechange = function () {
if (/complete|loaded/.test(js.readyState)) {
if(callBackFunction != null) {
callbackFunction();
}
//alert('JS onreadystate fired');
}
}
// Fires in FF
js.onload = function () {
if(callBackFunction != null) {
callbackFunction();
}
//alert('JS onload fired');
}
return false;
} include_js('//etc.sdanawa.com/script/js/jquery-ui-1.9.2.custom.min.js', function() {
jQuery(phone_div).css({'display':'none'});
jQuery(phone_div).html(phone_html);
phone_html3 = phone_html4;
});