//iframe height ÀÚµ¿ ´Ã¾î³ª±â
var iframeids=["Contents"] // iframe ¿¡ »ç¿ëÇÒ ID ¸¦ ÁöÁ¤ ÇØ ÁÖ¼¼¿ä

var iframehide="yes"

function resizeCaller() {
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){
if (document.getElementById)
resizeIframe(iframeids[i])
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])
tempobj.style.display="block"
}
}
}

function resizeIframe(frameid){
var currentfr=document.getElementById(frameid)
if (currentfr && !window.opera){
currentfr.style.display="block"
if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
currentfr.height = currentfr.contentDocument.body.offsetHeight; 
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
currentfr.height = currentfr.Document.body.scrollHeight;
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false)
else if (currentfr.attachEvent)
currentfr.attachEvent("onload", readjustIframe)
}
}

function readjustIframe(loadevt) {
var crossevt=(window.event)? event : loadevt
var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
if (iframeroot)
resizeIframe(iframeroot.id);
}

function loadintoIframe(iframeid, url){
if (document.getElementById)
document.getElementById(iframeid).src=url
}

if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller



//¸Þ½ÃÁöÇ¥½Ã

function hello() {
alert("ÁØºñÁßÀÔ´Ï´Ù.");
} 


//Å¬¸¯ÇßÀ»¶§ ¿ÀÇÂÃ¢//

function MM_openBrWindow(URL,winName,width,height) 
{ 
	var w, strop
	strop = "width=" + width + ",height=" + height + 
			",left=" + (screen.width/2 - width/2) + ",top=" + (screen.height/2 - height/2) + 
			",scrollbars=1,menubar=0,status=0,toolbar=0,location=0,directories=0,resizable=1";
    window.open(URL,winName,strop);
}

//Å¬¸¯ÇßÀ»¶§ ¿ÀÇÂÃ¢[½ºÅ©·Ñ¾øÀÌ ¶ß´Â Ã¢ : ÇÐºÎ, ÅëÇÐ¹ö½ºÀÌ¿ë¾È³»//

function MM_openBrWindow2(URL,winName,width,height) 
{ 
	var w, strop
	strop = "width=" + width + ",height=" + height + 
			",left=" + (screen.width/2 - width/2) + ",top=" + (screen.height/2 - height/2) + 
			",scrollbars=0,menubar=0,status=0,toolbar=0,location=0,directories=0,resizable=1";
    window.open(URL,winName,strop);
}

//Quick Link ¸ÞÀÎ Ã¢¶ç¿ì±â//
function go_quick(form)
{
	var selindex = form.linkurl.selectedIndex;
	if (form.linkurl[selindex].value!="") {
		window.open(form.linkurl[selindex].value,"QuickWin");
	}
}

//·Ñ¿À¹ö½Ã ·¹ÀÌ¾î¶ß±â
function turnOnLayer(no) {
	for(var idx=0; idx < document.all.length; idx++) {
	if(document.all[idx].id.substr(0, 5) == 'Layer')
	document.all[idx].style.display = 'none';

	if(document.all[idx].id.substr(5,1) == no)
	document.all[idx].style.display = 'block';					
	}
}
