// showhide
function showhide(obj) {
	var el = document.getElementById(obj);
	if ( el.style.display != 'none' ) {
		el.style.display = 'none';
	} else {
		el.style.display = '';
	}
}

// link_icon
function is_LinkIcon(strValue){
	   var iconStr;
	   var arrayStr = strValue.split(":");  
	   if (arrayStr.length>1)
		   iconStr = "<img style='margin-top: 2px; margin-bottom: 2px;' src='"+is_skinURL+"/images/is_link_"+arrayStr[0]+".gif' align='absmiddle' alt='' /> "+arrayStr[1];
	   else
		   iconStr = strValue;
	   document.write (iconStr);
}

// add comma
function addCommas(strValue){ 
	var objRegExp = new RegExp('(-?[0-9]+)([0-9]{3})'); 
	  while(objRegExp.test(strValue)) { 
	  strValue = strValue.replace(objRegExp, '$1,$2'); 
	  } 
	return strValue; 
} 

// image size
function showPicture(src) { 
var imgObj = new Image(); 
imgObj.src = src; 
var wopt = "scrollbars=no,status=no,resizable=no"; 
wopt += ",width=" + imgObj.width; 
wopt += ",height=" + imgObj.height; 
var wbody = "<head><title>사진 보기</title>"; 
wbody += "<script language='javascript'>"; 
wbody += "function finalResize(){"; 
wbody += " var oBody=document.body;"; 
wbody += " var oImg=document.images[0];"; 
wbody += " var xdiff=oImg.width-oBody.clientWidth;"; 
wbody += " var ydiff=oImg.height-oBody.clientHeight;"; 
wbody += " window.resizeBy(xdiff,ydiff);"; 
wbody += "}"; 
wbody += "</"+"script>"; 
wbody += "</head>"; 
wbody += "<body onLoad='finalResize()' style='margin:0'>"; 
wbody += "<a href='javascript:window.close()'><img src='" + src + "' border='0' alt='클릭하면 창이 닫힙니다.' /></a>"; 
wbody += "</body>"; 
winResult = window.open("about:blank","",wopt); 
winResult.document.open("text/html", "replace"); 
winResult.document.write(wbody); 
winResult.document.close(); 
return; 
} 

