
function roundTable(objID) {
       var obj = document.getElementById(objID);
       var Parent, objTmp, Table, TBody, TR, TD;
       var bdcolor, bgcolor, Space;
       var trIDX, tdIDX, MAX;
       var styleWidth, styleHeight;

       // get parent node
       Parent = obj.parentNode;
       objTmp = document.createElement('SPAN');
       Parent.insertBefore(objTmp, obj);
       Parent.removeChild(obj);

       // get attribute
       bdcolor = obj.getAttribute('rborder');
       bgcolor = obj.getAttribute('rbgcolor');
       radius = parseInt(obj.getAttribute('radius'));
       if (radius == null || radius < 1) radius = 1;
       else if (radius > 6) radius = 6;

       MAX = radius * 2 + 1;

       /*
              create table {{
       */
       Table = document.createElement('TABLE');
       TBody = document.createElement('TBODY');

       Table.cellSpacing = 0;
       Table.cellPadding = 0;

       for (trIDX=0; trIDX < MAX; trIDX++) {
              TR = document.createElement('TR');
              Space = Math.abs(trIDX - parseInt(radius));
              for (tdIDX=0; tdIDX < MAX; tdIDX++) {
                     TD = document.createElement('TD');

                     styleWidth = '1px'; styleHeight = '1px';
                     if (tdIDX == 0 || tdIDX == MAX - 1) styleHeight = null;
                     else if (trIDX == 0 || trIDX == MAX - 1) styleWidth = null;
                     else if (radius > 2) {
                            if (Math.abs(tdIDX - radius) == 1) styleWidth = '2px';
                            if (Math.abs(trIDX - radius) == 1) styleHeight = '2px';
                     }

                     if (styleWidth != null) TD.style.width = styleWidth;
                     if (styleHeight != null) TD.style.height = styleHeight;

                     if (Space == tdIDX || Space == MAX - tdIDX - 1) TD.style.backgroundColor = bdcolor;
                     else if (tdIDX > Space && Space < MAX - tdIDX - 1)  TD.style.backgroundColor = bgcolor;

                     if (Space == 0 && tdIDX == radius) TD.appendChild(obj);
                     TR.appendChild(TD);
              }
              TBody.appendChild(TR);
       }

       /*
              }}
       */

       Table.appendChild(TBody);

       // insert table and remove original table
       Parent.insertBefore(Table, objTmp);
}

<!--
function autoBlur(){ 

	try{
		if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
	}catch(e) {}
}
document.onfocusin=autoBlur;

//-->


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


function submenu_on(obj)
{
	document.all['menu01'].style.display = "";	
	document.all['menu02'].style.display = "";
	document.all['menu03'].style.display = "";
	document.all['menu04'].style.display = "";
	document.all['menu05'].style.display = "";
	document.all['menu01_on'].style.display = "none";	
	document.all['menu02_on'].style.display = "none";
	document.all['menu03_on'].style.display = "none";
	document.all['menu04_on'].style.display = "none";
	document.all['menu05_on'].style.display = "none";
	document.all['submenu01'].style.display = "none";	
	document.all['submenu02'].style.display = "none";
	document.all['submenu03'].style.display = "none";
	document.all['submenu04'].style.display = "none";
	document.all['submenu05'].style.display = "none";
	document.all[obj].style.display = "none";
	document.all[obj + '_on'].style.display = "";
	document.all['sub' + obj].style.display = "";
}		

function submenu_on2(obj)
{
	document.all['cmenu01'].style.display = "";	
	document.all['cmenu02'].style.display = "";
	document.all['cmenu03'].style.display = "";
	document.all['cmenu04'].style.display = "";
	document.all['cmenu05'].style.display = "";
	document.all['cmenu01_on'].style.display = "none";	
	document.all['cmenu02_on'].style.display = "none";
	document.all['cmenu03_on'].style.display = "none";
	document.all['cmenu04_on'].style.display = "none";
	document.all['cmenu05_on'].style.display = "none";
	document.all[obj].style.display = "none";
	document.all[obj + '_on'].style.display = "";
}	

	function showDelBox(divIdx)
	{
		// 한페이지에 20개 이하로 보여준다고 가정
		for (j = 1; j <= 20; j++)
		{
			if (!eval(document.getElementById("div_del_cmt_" + j))) continue; 
			if (j == divIdx) {
				document.getElementById("div_del_cmt_" + j).style.display = "" ; 
				document.getElementById("f_del_cmt_" + j).passwd.focus(); 
			}
			else document.getElementById("div_del_cmt_" + j).style.display = "none"; 
		} 
	}
