//iframe resize Function +++++++++++++++++++++++++++++++++++++++++++++++++++++

function reSize()
{
    var objBody	    =	ifrm.document.body;
    var objFrame	=	document.all["ifrm"];
    objFrame.style.height = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight)
    objFrame.style.width = '100%'
}

//°í°´°ü¸®¿¡¼­ »ç¿ëÇÔ.
function Cust_reSize(name)
{
    var objBody	    =	document.frames(name).document.body;
    var objFrame	=	document.all[name];
    objFrame.style.height = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight)
    objFrame.style.width = '100%'
}

// iframe initialize Function
function frame_init()
{
    parent.reSize();
//    parent.document.location.href = parent.document.location.href + '#';
}
//iframe move Function
function gone(selectedurl){ 
	document.all["ifrm"].src = selectedurl;
} 
function _gone(target,url){
	document.all["IFRM_WIXZONE_MAIN"].src = url;
}
var IFRAM_INIT_VAR = true;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

//
function getBoard(page){
	location.replace("/index_board.html?src=" + page);
}

//ÆÇ¸Å³ëÆ® ¹Ù·Î°¡±â
function getPan(page){
	location.replace("/html/index_4.html?src=" + page);
}
//
function getMember(page){
	location.replace("/html/index_13.html?src=" + page);
}
function Deny(){
	alert("½Ã½ºÅÛ°ü¸®¸¦ À§ÇÑ ¸Þ´ºÀÔ´Ï´Ù.");
}
function MenuView(temp){
	if(temp.style.display == ""){ temp.style.display = "NONE";}
	else{ temp.style.display = "";}
}
function viewMenu(i,total)
{
	menuName = "Menu_" + i;
	for(n=0;n<total;n++)
	{
		t = n + 1;
		hideMenuName = "Menu_" + t;
		if(menuName == hideMenuName){
			document.all[hideMenuName].style.visibility = "";
		} else {
			document.all[hideMenuName].style.visibility = "hidden";
		}
	}
}
function hideMenu(total)
{
	for(n=0;n<total;n++)
	{
		t = n + 1;
		hideMenuName = "Menu_" + t;
		document.all[hideMenuName].style.visibility = "hidden";
	}
}
function onMouseAlert(i,mode)
{
	bgcheck = "bg[" + i + "]";
	bgmain = "bg_main[" + i + "]";
	if(mode == 1){
		document.all[bgcheck].style.backgroundColor = "#000000";
		document.all[bgmain].style.backgroundColor = "#FFFFFF";
	}else{
		document.all[bgcheck].style.backgroundColor = "";
		document.all[bgmain].style.backgroundColor = "";
	}
}
function checkAll()
{
	var f = document.list;
	len = f.totalNum.value;
	var i=0;
	var strcheck;
	for( i=0; i<len; i++) {
		strcheck = "check[" + i + "]";
		bgcheck = "bg[" + i + "]";
	    if(f.allcheck.checked == true){
			document.list[strcheck].checked = true;
			document.all[bgcheck].style.backgroundColor="#F0F9FF";
	    }else{
			document.list[strcheck].checked = false;
			document.all[bgcheck].style.backgroundColor="";
		}
	}
}

function checkOne(t)
{
	var f = document.list;
	strcheck = "check[" + t + "]";
	bgcheck = "bg[" + t + "]";
	if(document.list[strcheck].checked == true){
		document.all[bgcheck].style.backgroundColor = "#F0F9FF";
	}else{
		document.all[bgcheck].style.backgroundColor = "";
	}
}

function checkListValue(){
	var f = document.list;
	len = f.totalNum.value;
	var i = 0;
	var j = 0;
	var target = "";
	var returnValue = new Array();
	var strcheck;
	for( i=0; i<len; i++) {
		strcheck = "check[" + i + "]";
	    if(document.list[strcheck].checked == true){
			j++;
	    }
	}
	return j;
}
function listAlert(i,mode)
{
	var f = document.list;
	strcheck = "check[" + i + "]";
	bgcheck = "bg[" + i + "]";
	if(document.list[strcheck].checked == false){
		if(mode == 1){
			document.all[bgcheck].style.backgroundColor = "#F0F9FF";
		}else{
			document.all[bgcheck].style.backgroundColor = "";
		}
	}
}
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 today = new Date();
      today.setDate( today.getDate() + expiredays );
      document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + today.toGMTString() + ";";
}
