var cpb_ie=document.all;
var MNn=0;
			function MM_findObj(n,d)
			{
				var p,i,x;if(!d)d=document;
				if((p=n.indexOf("?"))>0&&parent.frames.length)
				{
					d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
				}
				if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];
				for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=MM_findObj(n,d.layers[i].document);
				if(!x && document.getElementById)x=document.getElementById(n);return(x);
			}

			function MSHL()
			{
				var i,p,v,obj,args=MSHL.arguments;
				for(i=0;i<(args.length-2);i+=3)if((obj=MM_findObj(args[i]))!=null){v=args[i+2];
				if(obj.style){obj=obj.style;v=(v=='show')?'visible':(v='hide')?'hidden':v;}
			    obj.visibility=v;}
			}
			function MN1()
			{
				MNn+=1;document.write("<div id=Layer" + MNn + " style='position:absolute'>");
				document.write("<div id=serve" + MNn + " style='position:absolute; left:0px; top:14px; width:90px; height:30px; z-index:20; visibility: hidden;' onMouseOut=MSHL('serve" + MNn + "','','hide') onMouseOver=MSHL('serve" + MNn + "','','show')>");
				document.write("<table width=100% border=0 cellspacing=0 cellpadding=0 class=cpb_table_tr2 >");
				document.write("<tr> <td class=cpb_table_td2>");
				document.write("<table width=100% border=0 cellspacing=1 cellpadding=3 class=cpb_table_tr2>");
			}
			function MN(m,n)
			{
				document.write("<tr class=cpb_table_td1><td onmouseover=\"this.className='MenuColor';\" onmouseout=\"this.className='';\">");
				if(m!="")n="<a href=\""+ m + "\">" + n + "</a>";
				document.write( n + "</td></tr>");
			}
			function MN2(m,n)
			{
				document.write("</table></td></td></tr></table></div></div>");
				document.write("<a  href=\"" + m + "\" onMouseOver=\"MSHL('serve" + MNn + "','','show','subscibe','','hide','order','','hide','feature','','hide','defuser','','hide','spread','','hide')\" onMouseOut=\"MSHL('serve" + MNn + "','','hide','subscibe','','hide','order','','hide','feature','','hide','defuser','','hide','spread')\">" + n + "</a>");
			}


function ViewCode(copyid)
{
	var bodyTag="<html><head><style type=text/css>.quote{margin:5px 20px;border:1px solid #CCCCCC;padding:5px; background:#F3F3F3 }\nbody{boder:0px}.HtmlCode{margin:5px 20px;border:1px solid #CCCCCC;padding:5px;background:#FDFDDF;font-size:14px;font-family:Tahoma;font-style : oblique;line-height : normal ;font-weight:bold;}\nbody{boder:0px}</style></head><BODY bgcolor=\"#FFFFFF\" >";
	bodyTag+=document.getElementById('vcode'+copyid).CodeText.value
	bodyTag+="</body></html>"
	preWin=window.open('preview','','left=0,top=0,width=550,height=400,resizable=1,scrollbars=1, status=1, toolbar=1, menubar=0');
	preWin.document.open();
	preWin.document.write(bodyTag);
	preWin.document.close();
	preWin.document.title="²é¿´Ìù×ÓÄÚÈÝ";
	preWin.document.charset="UTF-8";
}


function open_topic(bbsid,topicid,img1,img2){
		if (eval("cpb"+topicid).style.display!='block'){
			eval("cpb"+topicid).style.display="block";
			eval("cimg"+topicid).src=img2;
			eval("cimg"+topicid).alt="close";
			document.frames["hiddenframe"].location.replace("show_topic.asp?bbsid="+bbsid+"&topicid="+topicid+"");
		}else{
			eval("cpb"+topicid).style.display="none";
			eval("cimg"+topicid).src=img1;
			eval("cimg"+topicid).alt="open";
			
		}
}


function CheckAll(form)  {
  for (var i=0;i<form.elements.length;i++)    {
    var e = form.elements[i];
    if (e.name != 'chkall')       e.checked = form.chkall.checked; 
   }
  }