function show_img(imageURL)
{
  imageHandle=open("","popupImage","toolbar=no,location=no,status=no,manubar=no,scrollbars=no,resizable=yes,width=10,height=10,top=100,left=50");
  imageHandle.document.write("<title>원본이미지보기</title>");
  imageHandle.document.write("<style>");
  imageHandle.document.write("*{margin:0;padding:0;border:0;}");
  imageHandle.document.write("</style>");
  imageHandle.document.write("<img src=\""+imageURL+"\" onload=\"window.resizeTo(this.width+8,this.height+27);\" onclick=\"self.close();\" style=\"cursor:hand;\" title=\"클릭하면 닫힙니다.\">");
}
function ScrapCookie(Url,Num)
{ 
	setCookie( "ScrapNum", Num , 1);
	//top.location.href=Url;
	window.open(Url, '_blank')
}
function ScrapCookieBlank(Url,Num)
{ 
	setCookie( "ScrapNum", Num , 1);
	window.open(Url,"new");
}

function setCookie( name, value, expiredays )
{
	var todayDate = new Date();
	todayDate.setDate( todayDate.getDate() + expiredays );
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
//--DIV 보이기/안보이기(새로운글/최근덧글)
function DivView(vDivName,vSpanName,vAction)
{
	if(vAction==1)
	{
		document.all[vDivName].style.display="";
		document.all[vSpanName].innerHTML="<a onclick=\"javascript:DivView('" + vDivName + "','" + vSpanName + "',0);\"><img src='common_img/btn_more_.gif' width='12' height='8' border='0' align='absmiddle' style='cursor:hand'></a>";
	}
	else if(vAction==0)
	{
		document.all[vDivName].style.display="none";
		document.all[vSpanName].innerHTML="<a onclick=\"javascript:DivView('" + vDivName + "','" + vSpanName + "',1);\"><img src='common_img/btn_more.gif' width='12' height='8' border='0' align='absmiddle' style='cursor:hand'></a>";
	}
}
//--DIV 보이기/안보이기(새로운글/최근덧글)
function DivView_admin(vDivName,vSpanName,vAction)
{
	if(vAction==1)
	{
		document.all[vDivName].style.display="";
		document.all[vSpanName].innerHTML="<a onclick=\"javascript:DivView_admin('" + vDivName + "','" + vSpanName + "',0);Resize();\"><img src='../common_img/btn_more_.gif' width='12' height='8' border='0' style='cursor:hand'></a>";
	}
	else if(vAction==0)
	{
		document.all[vDivName].style.display="none";
		document.all[vSpanName].innerHTML="<a onclick=\"javascript:DivView_admin('" + vDivName + "','" + vSpanName + "',1);Resize();\"><img src='../common_img/btn_more.gif' width='12' height='8' border='0' style='cursor:hand'></a>";
	}
}

