/*»ó´Ü ½ºÅ©·Ñ*/ function scrollToTop(){ $("html,body").animate({ scrollTop: 0 }); } /* ¼±ÅÃÅ׵θ® ¼û±â±â */ function bluring(){ if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); } document.onfocusin=bluring; //Æ˾÷À©µµ¿ì, ½ºÅ©¸° Áß¾Ó¿¡ À§Ä¡, ´ÙÁß ¿ÀÇ ¹æÁö var winname_1; var openF = 0; function popup(fileName, intWidth, intHeight, intLeft, intTop, vScrollbars, vResizable, vStatus){ today = new Date(); winName = today.getTime(); var fileName, intWidth, intHeight; var screenWidth = screen.availwidth; var screenHeight = screen.availheight; if(intWidth >= screenWidth){ //½ºÅ©¸° »óÅ׿¡ µû¶ó ½ºÅ©·Ñ¹Ù ÀÚµ¿Ç¥½Ã intWidth = screenWidth - 40; vScrollbars = 1; } if(intHeight >= screenHeight){ //½ºÅ©¸° »óÅ׿¡ µû¶ó ½ºÅ©·Ñ¹Ù ÀÚµ¿Ç¥½Ã intHeight = screenHeight - 40; intWidth = intWidth + 20; vScrollbars = 1; } if(intLeft == 'auto' || intTop == 'auto'){ //½ºÅ©¸° Áß¾Ó¿¡ À§Ä¡ ½ÃÅ°±â var intLeft = (screenWidth - intWidth) / 2; var intTop = (screenHeight - intHeight) / 2; } var features = eval("'width=" + intWidth + ",height=" + intHeight + ",left=" + intLeft + ",top=" + intTop + ",scrollbars=" + vScrollbars + ",resizable=" + vResizable + ",status=" + vStatus + "'"); if(openF == 1){ if(winname_1.closed){ winname_1 = window.open(fileName,winName,features); }else{ winname_1.close(); winname_1 = window.open(fileName,winName,features); } }else{ winname_1 = window.open(fileName,winName,features); openF = 1; } winname_1.focus(); }