try { document.domain = "snu.ac.kr"; } catch(e) { } var url =document.location.href; var p = url.indexOf('boardPath='); // 지정된 boardPath가 없으면 기본 패스를 넣는다. var boardPath=""; if( p > -1) { //var boardPath = url.substring(p+('boardPath='.length)); var boardPath = decodeURIComponent(url.substring(p+('boardPath='.length))); if( boardPath.substring(0,1)!='/') { boardPath = "/" + boardPath + "?langKnd=ko&boardTtlYn=N"; } else { boardPath += "?langKnd=ko&boardTtlYn=N"; } } else { boardPath="/tst_snupal?langKnd=ko&boardTtlYn=N" } if( boardPath=="" || boardPath=="/" || boardPath=="/null") { boardPath=''; } else { boardPath = "http://board.snu.ac.kr/apiboard" + boardPath; } function autoResize( iframe) { if( iframe==null) { iframe = document.getElementById("snuboard"); } try { iframe.height = 300; var doc = iframe.contentWindow.document; var newHeight = doc.body.scrollHeight + 30; var scrollTop = doc.body.scrollTop; iframe.height = newHeight; } catch(e) { iframe.height = 300; } } function autoresize_iframes() { var iframes = document.getElementsByTagName("iframe"); for( var i =0; i < iframes.length;i++ ) { if( iframes[i].name.indexOf("snuboard_")==0) { autoResize( iframes[i], true); } } } function snuBoardCategorySearch( cateId) { var iframe = document.getElementById("snuboard"); var content = iframe.contentWindow || iframe.contentDocument; content.ebList.cateList( cateId); } document.write('');