<!--
// Error Hadling Function
function err_handle(e)
{
    window.status =	'Error: ' + e.number + '; ' + e.description;
}

// iframe initialize Function
function fnIFrmInit(){
	parent.fnIFrameResize();
}
function fnIFrmInit2(){
	parent.fnIFrameResize2();
	parent.parent.fnIFrameResize();
}

function fnIFrmInit3(){
	parent.fnIFrameResize3();
	parent.parent.fnIFrameResize();
}
function fnIFrmInitMulti(v){
	
	parent.fnIFrameResizeMulti(v);
	parent.parent.fnIFrameResize();
}
function fnIFrmInitMulti_M(v){
	
	parent.fnIFrameResizeMulti_M(v);
}
function fnIFrmInitLeftCate(){
	parent.fnIFrameResizeLeftCate();
}
//IFrame»çÀÌÁî ÀçÁ¶Á¤
function fnIFrameResize()
{
	try{
	    var objBody	    =	ifrm.document.body;
	    var objFrame	=	document.all["ifrm"];

	    objFrame.style.height = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight);
	    //objFrame.style.width = '100%'
	}
	//IFrame domain != its container's domain
	catch(e)
	{
	    //err_handle(e);
	}
}
//IFrame»çÀÌÁî ÀçÁ¶Á¤
function fnIFrameResize2()
{
	    var objBody	    =	ifrm2.document.body;
	    var objFrame	=	document.all["ifrm2"];

	    objFrame.style.height = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight);
	    objFrame.style.width = '100%';
	    parent.fnIFrameResize();
}

//IFrame»çÀÌÁî ÀçÁ¶Á¤
function fnIFrameResize3()
{
	    var objBody	    =	ifrmMemo.document.body;
	    var objFrame	=	document.all["ifrmMemo"];

	    objFrame.style.height = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight);
	    objFrame.style.width = '100%';
	    parent.fnIFrameResize();
}
//IFrame»çÀÌÁî ÀçÁ¶Á¤ - ÇÁ·¹ÀÓÆûÀÌ¸§ ÁöÁ¤.
function fnIFrameResizeMulti(v)
{
	    var objBody	    =	eval('ifrm'+v+'.document.body');
	    var objFrame	=	eval('document.all["ifrm'+v+'"]');

	    objFrame.style.height = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight);
	    objFrame.style.width = '100%';
	    parent.fnIFrameResize();
}
//IFrame»çÀÌÁî ÀçÁ¶Á¤ - ÇÁ·¹ÀÓÆûÀÌ¸§ ÁöÁ¤.
function fnIFrameResizeMulti_M(v)
{
	    var objBody	    =	eval('ifrm'+v+'.document.body');
	    var objFrame	=	eval('document.all["ifrm'+v+'"]');

	    objFrame.style.height = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight);
	    objFrame.style.width = '100%';
	    //parent.fnIFrameResize();
}

function fnIFrameResizeLeftCate()
{
	    var objBody	    =	ifrm_leftcate.document.body;
	    var objFrame	=	document.all["ifrm_leftcate"];

	    objFrame.style.height = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight);
	    objFrame.style.width = '100%';
	    parent.fnIFrameResize();
}
//reload
var NS4;
var IE4;
if (document.all){
    IE4 = true;
    NS4 = false;
}else{
    IE4 = false;
    NS4 = true;
}
if (NS4){
    document.captureEvents(Event.KEYDOWN)
    document.onkeydown = trapRefresh;
}else if (IE4){
    document.onkeydown = trapRefresh;
}

function trapRefresh(e)
{
    var event;
    if (window.event) event = window.event;
    else event = e;

    if (event.keyCode == 116)
    {
        if (window.event) 
            event.keyCode = 0;
        event.cancelBubble = true; 
        event.returnValue = false;
        document.location.reload();
    }
}
// URL ¸µÅ©

function fnGoTo(StrURL) {
  top.document.location.href = StrURL;
  window.status='';
}
function fnGoToF(StrURL) {
  document.all['ifrm'].src = StrURL;
  //if (navigator.platform.indexOf("Mac") < 0)
	   //document.location.href = '#';
  //window.status='';
}
function fnGoToF2(StrURL) {
  top.document.all['ifrm'].src = StrURL;
  //if (navigator.platform.indexOf("Mac") < 0)
	   //document.location.href = '#';
  //window.status='';
}
// IFrame src ¸µÅ©, »çÀÌÁî ÀçÁ¶Á¤ ¾øÀ½.
function fnGoToNoResize(strURL)
{
    	document.all["ifrm"].src = strURL;
		document.all["ifrm"].onresize = "";
	    //document.location.href = '#';
	    window.status='';
}
function fnSetDisable(v){

}
function nothing()
{
	return;
}
//form °ü·Ã
function fnReset(obj){
	eval(obj+'.reset()');
}
//window °ü·Ã
function fnClose(){
	self.close();
}

//¹®ÀÚ¿­ Ã³¸®
function fnTrim( src, trimer )
{
	var len = src.length;
	var i = 0;
	if( len > 0 )
	{
		for( i = 0; i < len; i++ )
		{
			var ch = src.charAt(i);
			if( trimer.indexOf( ch ) == -1 )
			{
				break;
			}
		}
		src = src.substr(i);
	}
	
	len = src.length
	if( len > 0 )
	{
		for( i = len-1; i >=0; i-- )
		{
			var ch = src.charAt(i);
			if( trimer.indexOf( ch ) == -1 )
			{
				break;
			}		
		}
		
		src = src.substr(0, i+1);
	}
	return src;
}
	
function GroupShowSmenu(pd)
{
	if (document.all["submenu_pd"+pd].style.display == 'none')
	{
		document.all["submenu_pd"+pd].style.display = '';
		document.all["pulldown"+pd].src = 'http://img.cyworld.nate.com/img/ico/club_close.gif';
		return;
	}
	if (document.all["submenu_pd"+pd].style.display == '')
	{
		document.all["submenu_pd"+pd].style.display = 'none';
		document.all["pulldown"+pd].src = 'http://img.cyworld.nate.com/img/ico/club_open.gif';
		return;
	}
}

function activate(id){
	document.getElementById(id).innerHTML = document.getElementById(id).innerHTML;
}

//-->
