function NavPage(menu,sub) { var sURL = "/"; switch(menu) { case 'category': { sURL = "/category/"; switch(sub) { case '1' : sURL += "alttle/"; break; case '2' : sURL += "car/"; break; case '3' : sURL += "house/"; break; case '4' : sURL += "office/"; break; case '5' : sURL += "job/"; break; case '6' : sURL += "school/"; break; default : break; } break; } case 'infor': { sURL = "/infor/"; switch(sub) { case '1' : sURL += "pssd/?cat1=morning"; break; case '2' : sURL += "board/?bbsid=sisa"; break; case '3' : sURL += "infor/?cat1=gosa"; break; case '4' : sURL += "news/zone.html?type=1"; break; case '5' : sURL += "counsel/?code=010401"; break; default : break; } break; } case 'entertainment': { sURL = "/entertainment/"; switch(sub) { case '1' : sURL += "movie/movie_prelist.html"; break; case '2' : sURL += "game/game_review.html"; break; case '3' : sURL += "book/book_topic.html"; break; case '4' : sURL += "fortune/lotto_luck.html"; break; default : break; } break; } case 'member': { sURL = "/mypage/"; switch(sub) { case '1' : sURL += "modify.html"; break; case '2' : sURL += "?layer=on#layer"; break; case '3' : sURL += "matchad/"; break; default : break; } break; } case 'customer': { sURL = "/customer/"; switch(sub) { case '1' : sURL += "ad/"; break; case '2' : sURL += "faq/"; break; case '3' : sURL += "qna/"; break; case '4' : sURL += "ad_money.html/#°èÁÂ"; break; case '5' : sURL = "/member/loss.html"; break; default : break; } break; } default : sURL += "/"; break; } location.href= sURL; } function checkINT(fm) { t = fm.value ; for(i=0;i'9') { //fm.value=""; alert('¼ýÀÚÀÌ¿Ü¿¡´Â ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.'); fm.focus() ; return false ; } } } function checkSTR(frm){ out = "'"; add = '"'; temp = "" + frm.value; while (temp.indexOf(out)>-1) { pos= temp.indexOf(out); temp = "" + (temp.substring(0, pos) + add + temp.substring((pos + out.length), temp.length)); } frm.value = temp; } function CHECKemail(form){ if (form.email1.value == '1') { form.email3.readOnly = false; form.email3.value = ''; form.email3.focus(); } else { form.email3.readOnly = true; form.email3.value = form.email1.value; } } function formatCurrency(num) { num = num.toString().replace(/\$|\,/g,''); if(isNaN(num)) num = "0"; cents = Math.floor((num*100+0.5)%100); num = Math.floor((num*100+0.5)/100).toString(); if(cents < 10) cents = "0" + cents; for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++) num = num.substring(0,num.length-(4*i+3))+','+num.substring(num.length-(4*i+3)); return (num); // ´Ù¸¥È­Æó´ÜÀ§·Î ¾µ°æ¿ì ("$" +num + "." + cents); } function formsubmit(form){ if(!form.title.value){alert("Á¦¸ñÀÌ ºüÁ³½À´Ï´Ù ÀÔ·ÂÇØ ÁÖ¼¼¿ä");form.title.focus();return false;} if(!form.content.value){alert("³»¿ëÀÌ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù ÀÔ·ÂÇØ ÁÖ¼¼¿ä");form.content.focus();return false;} } function SampleBoxImage(imgs,w,h,usemap,event){ imgwin = window.open('','samplewin','width='+w+',height='+h+',no'); imgwin.document.write("À̹ÌÁöº¸±â
"+event+""); return false; } /** Àα⠰˻ö¾î ¸µÅ©Ã³¸® */ function SearchWordSelected(obj) { szValue = obj.innerText; re = /\\/gi; search.key.value= szValue.replace(re,""); search.submit(); } function SearchWordSelected2(obj) { szValue = obj.innerText; re = /\\/gi; frmSearch.p.value= szValue.replace(re,""); frmSearch.submit(); } /** ÄíÅ° ¼³Á¤ **/ function setCookie( name, value, expiredays ){ var date = new Date(); // date.setTime(date.getTime()+(expiredays*24*60*60*1000)); // 1 day date.setTime(date.getTime()+(expiredays*1*60*60*1000)); // 1 houre //date.setTime(date.getTime()+(expiredays*1*10*60*1000)); // 10min var expires = "; expires="+date.toGMTString(); //var todayDate = new Date(); //todayDate.setDate( todayDate.getDate() + expiredays ); //document.cookie = name + "=" + escape( value ) + "; path=/; domain=.busansidae.com;expires=" + todayDate.toGMTString() + ";" document.cookie = name + "=" + escape( value ) + "; path=/; domain=.busansidae.com;expires=" + expires + ";" } 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; } return ""; } function DisplayFlash(width,height,url){ document.writeln(''); } function CM(){ document.writeln(''); } Array.prototype.shuffle = function(){ return this.concat().sort( function(){return Math.random() - Math.random();} ); } function DisplayBanner(szArray,n){ var arr = szArray.shuffle(); var nIndex = 0; for(i=0;i"); document.write(flashTemp[1]); document.write("<"); document.write("/script>"); } else document.write(arr[i]); document.write("
"); nIndex++; } if(n==nIndex) break; } } // // 2007.10.12 // var nInterval =20; // ¿ÜºÎ Ãâ·Â¿©ºÎ ÀúÀå var scroll_print_check = 'S'; // °íÁ¤ ¶Ç´Â ½½¶óÀ̵ù ½ÃÅ°´ÂÁö È®ÀÎ var scroll_check = 'N'; function lnit_ICONUP() { setInterval('Show_ICONUP()',nInterval); } function Show_ICONUP() { // ½ºÅ©·Ñº£³Ê Ãâ·Â if(scroll_print_check !='N') { document.all.div_top.style.display =''; height = 400; // ½ºÅ©·Ñ ¹è³ÊÀÇ ³ôÀÌ offset = document.all.div_top.offsetTop; offset = document.all.div_top2.offsetTop; } else { height = 0; offset = 0; } // À©µµ¿ìâ ³ôÀÌ winheight = document.body.clientHeight; sumheight = parseInt(height); // °íÁ¤¿©ºÎ¿¡ µû¶ó º¯È­ if(scroll_check =='N' && navigator.appName.charAt(0)=='M') { scrollY = document.body.scrollTop; if(winheight > sumheight) { windowHeight = (winheight-sumheight)/2; } else { windowHeight = 0; } } else { scrollY = 0; windowHeight = 80; } var img = parseInt((windowHeight + scrollY-offset)*0.1); if(document.all.div_top.style && document.all.div_top.style !=null) { document.all.div_top.style.pixelTop+=img; } if(document.all.div_top2.style && document.all.div_top2.style !=null) { document.all.div_top2.style.pixelTop+=img; } } //lnit_ICONUP();