function OpenBoxImage(no){ //window.open("http://paper.sarangbang.com/BoxImages.html?no="+no,'boximagewin','width=620,height=550,top=0,left=0,status=no,scrollbars=yes'); window.open("/common/popup/Paper_box.html?no="+no,'boximagewin','width=630,height=400,top=0,left=0,status=no,scrollbars=yes'); } function popup(html, width, height, scroll){ var url = "/common/popup/"+html; window.open(url, "popup", "scrollbars="+scroll+", menubar=no, resizable=no, toolbar=no, width="+width+", height="+height); } function ViewIMG(id, num){ var url = "/common/popup/ViewIMG.html?id="+id+"&num="+num; window.open(url, "viewup", "scrollbars=no, menubar=no, resizable=no, toolbar=no, width=630, height=570"); } // ¿ìÆí¹øÈ£ function zipsearch(){ var zip = win = null; if (zip != null && !zip.closed) zip.close(); zip = NewWindow('/common/popup/ZipSearch.html?mode=form&frm=jobform','zipwin','500','120','no'); } function DisplayFlash(width,height,url){ 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; } } function mainBlink( elementId ) { element = document.getElementById( elementId ) ; element.style.visibility = element.style.visibility == "" ? "hidden" : ""; // Á¶°Ç¿¡ µû¶ó hidden °ú ±âº»°ª º¸ÀÌ´Â °ÍÀ» »ç¿ë } function zBlink( elementId ) { //if (document.all) setInterval("mainBlink('" + elementId + "')", 500); // 1ÃÊ °£°ÝÀ¸·Î ½ÇÇà } 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 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=.sarangbang.com;expires=" + todayDate.toGMTString() + ";" document.cookie = name + "=" + escape( value ) + "; path=/; domain=.sarangbang.com;expires=" + expires + ";" } function layerShow() { layer = document.getElementById("cate1"); layerImg = document.getElementById("cateImg1"); if(layer.style.display == "none") { layer.style.display = "block"; layerImg.src="/images/icon/btn_close02.gif"; } else { layer.style.display = "none"; layerImg.src="/images/icon/btn_open.gif"; } }