function showSearchPart(){ if(SERVE.Dom.getStyle('ul_search_part','display') == ''){ SERVE.Dom.setStyle('ul_search_part','display','none'); }else{ SERVE.Dom.setStyle('ul_search_part','display',''); } } function setSearchPart(part){ if(part != 'ÅëÇÕ°Ë»ö'){ SERVE.Dom.setValue('category',part); SERVE.Dom.setInnerHTML('SVsType',part); }else{ SERVE.Dom.setValue('category',''); SERVE.Dom.setInnerHTML('SVsType','ÅëÇÕ°Ë»ö'); } SERVE.Dom.setStyle('ul_search_part','display','none'); } function login(){ if(nullCheck(document.login_form.id, 'ID')==false) return false; if(nullCheck(document.login_form.pw, 'ºñ¹Ð¹øÈ£')==false) return false; //»ç¿ëÀÚ ÇØ»óµµ Á¤º¸. document.login_form.screen_w.value = screen.width; document.login_form.screen_h.value = screen.height; saveId(); //return false; login_form.submit(); } function nullCheck(obj, fieldName){ val = trim(obj.value); if(val == "" || val == null){ alert(fieldName + " À»(¸¦) ÀÔ·ÂÇϼ¼¿ä."); obj.focus(); return false; } return true; } function trim(str) { return str.replace(/(^\s*)|(\s*$)/g, ""); } function setCookie(name, value){ var todayDate = new Date(); todayDate.setDate( todayDate.getDate() + 365); document.cookie = name + "=" + escape( value ) + "; path=/;expires=" + todayDate.toGMTString() + ";"; } function removeCookie(name){ var todayDate = new Date(); todayDate.setDate( todayDate.getDate()-1); document.cookie = name + "=; path=/; expires=" + todayDate.toGMTString() + ";"; } function getCookie(name){ var nameOfCookie = name + "="; var x = 0; while(x <= document.cookie.length){ var y = (x+nameOfCookie.length); if(document.cookie.substring( x, y ) == nameOfCookie){ if((endOfCookie = document.cookie.indexOf(";", y)) == -1) endOfCookie = document.cookie.length; return unescape(document.cookie.substring(y, endOfCookie)); } x = document.cookie.indexOf(" ", x) + 1; if(x == 0) break; } // alert(nameOfCookie); return ""; } function saveId(){ if(document.login_form.id.value != '' && document.login_form.SaveID.checked == true){ //if(confirm("ID¸¦ ÀúÀåÇϽðڽÀ´Ï±î?")){ setCookie("SAVE=ID", document.login_form.id.value); //} }else{ //alert("ÀúÀåµÈ ID¸¦ »èÁ¦ÇÕ´Ï´Ù."); removeCookie("SAVE"); } } function SaveID_Check(that) { document.login_form.id.focus(); } function add_favorites(){ if(document.all) window.external.AddFavorite("http://www.serve.co.kr","ºÎµ¿»ê½áºê"); } // Àüü¸Þ´ºº¸±â function allMenuView(value){ if(value == 0){ if(SERVE.Dom.getStyle('all_menu','display')==''){ SERVE.Dom.setStyle('all_menu','display','none'); }else{ maemulMenuView(1); SERVE.Dom.setStyle('all_menu','display',''); SERVE.Dom.setInnerHTML("all_menu", showFlash("/inc/top_menu.swf",838,220,"transparent")); } }else if(value == 1){ SERVE.Dom.setStyle('all_menu','display','none'); } } // ¸Å¹°°Ë»ö·¹À̾îâ ¶ç¿ì±â function maemulMenuView(value){ if(value == 0){ if(SERVE.Dom.getStyle('maemul_menu','display')==''){ SERVE.Dom.setStyle('maemul_menu','display','none'); }else{ allMenuView(1); SERVE.Dom.setStyle('maemul_menu','display',''); } }else if(value == 1){ SERVE.Dom.setStyle('maemul_menu','display','none'); } } //Ç÷¡½Ã °¡Á®¿À±â function showFlash(filename, width, height, wmode, quality, bgcolor, scale){ var str_quality = (quality) ? quality : "high"; var str_wmode = (wmode) ? wmode : "opapue" ; var str = ''; return str; } function SetMenu_Main(intType){ for(var i=1; i < 8 ; i++){ SERVE.Dom.setStyle("topmenu"+i,'display','none'); } SERVE.Dom.setStyle("topmenu"+intType,'display',''); } function SetOutMenu_Main(intType){ //alert(intType); SERVE.Dom.setStyle("topmenu"+intType,'display','none'); //SERVE.Dom.setStyle("topmenu"+intType,'visibility','hidden'); } function closeLayer_Main(id) { if(SERVE.Dom.getStyle(id,"display") == ''){ SERVE.Dom.setStyle(id,"display","none"); } else { SERVE.Dom.setStyle(id,"display",""); } } document.write('
