function viewPhoto(filename)
{
  window.open("pop_photoview.php?filename=" + filename, '_blank', 'left=65535,width=100,height=100,scrollbars=no');
}

function copyClipboard(target)
{
  var cb = document.body.createTextRange();	
  cb.moveToElementText(document.all(target));
  cb.select();
  cb.execCommand('copy', target);
  alert("Æ®·¢¹é ÁÖ¼Ò°¡ Å¬¸³º¸µå¿¡ ÀúÀåÀÌ µÇ¾ú½À´Ï´Ù.");
}

function favorite(fmode)
{
  newWin("pop_favorite.php?blog_no="+blog_no+"&mode="+fmode , "300", "200", "no");
}

function viewPrint(no)
{
  newWin("pop_print.php?blog_no="+blog_no+"&post_no=" + no, "680", "600", "yes");
}

function reply_view(num, url)
{
	var this_frame = document.all["reply_view_"+num];

  if (document.all["trackback_view_"+num])
  {
    document.all["trackback_view_"+num].style.display="none";
  }

	if (this_frame.src == "about:blank")
	{
		this_frame.src = url;
	}
	else
	{
		if(this_frame.style.display == "none")
			this_frame.style.display="inline";
		else
			this_frame.style.display="none";
		resize_frame(num);
	}
}

function trackback_view(num, url)
{
	var this_frame = document.all["trackback_view_"+num];
  if (this_frame)
  {
    document.all["reply_view_"+num].style.display="none";

    if (this_frame.src == "about:blank")
    {
      this_frame.src = url;
    }
    else
    {
      if(this_frame.style.display == "none")
        this_frame.style.display="inline";
      else
        this_frame.style.display="none";
      resize_frame(num);
    }
  }
}

function more_view(target_id)
{
	var id = document.all[target_id];
	if (id.style.display == "none")
		id.style.display = "inline";
	else
		id.style.display = "none";
}

function newWin(url, width, height, scroll)
{
	var action_url = url;
	window.open(action_url,'','scrollbars='+scroll+',width='+width+',height='+height+'');
}

function resize_frame(num)
{
	var this_frame = document.all["reply_view_"+num];
	var reply_frame = eval("reply_view_"+num+".document.body");
	this_frame.style.height = reply_frame.scrollHeight + (reply_frame.offsetHeight - reply_frame.clientHeight);

  this_frame = document.all["trackback_view_"+num];
  if (this_frame)
  {
  	var trackback_frame = eval("trackback_view_"+num+".document.body");
	  this_frame.style.height = trackback_frame.scrollHeight + (trackback_frame.offsetHeight - trackback_frame.clientHeight);
  }
}

function reply_reload(num)
{
	var this_frame = document.all["reply_view_"+num];
	this_frame.style.display = "inline";
	resize_frame(num);
}

function trackback_reload(num)
{
	var this_frame = document.all["trackback_view_"+num];
  if (this_frame)
  {
  	this_frame.style.display = "inline";
	  resize_frame(num);
  }
}

function go_date(year, month, day)
{
	location.href="/myblog.php?blog_no="+blog_no+"&date="+year+month+day;
}

function keyword_check()
{
	if (document.search.keyword.value.length < 2)
	{
		alert("°Ë»öÇÒ Å°¿öµå¸¦ 2ÀÚÀÌ»ó ³Ö¾îÁÖ¼¼¿ä.");
		document.search.keyword.focus();
		return false;
	}
	return true;
}

function create_blog()
{
  if (!confirm('È¸¿ø´Ô²²¼­´Â ¾ÆÁ÷ ºí·Î°Å°¡ ¾Æ´Õ´Ï´Ù. ºí·Î°Å°¡ µÇ½Ã°Ú½À´Ï±î?'))
    return;

  location.replace("/make.blog");
}

function login_blog()
{
  if (!confirm('·Î±×ÀÎÀ» ÇÏ¼Å¾ß »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. Áö±Ý ·Î±×ÀÎ ÇÏ½Ã°Ú½À´Ï±î?'))
    return;

  location.replace("/member_login.php?code=blog&ret_url=" + current_url);
}

function check_length(str, max_len, min_len)
{
  var cnt = 0;
	var len = str.length;

	for (i = 0; i < len; i++)
  {
		temp = str.charAt(i);
		if (escape(temp).length > 4)
			cnt = cnt + 2;
		else
			cnt++;
	}
  if (cnt > max_len || cnt < min_len)
    return false;

  return true;
}

<!-- ³×ÀÌ¹ö Æ÷½ºÆ® º¹»ç½Ã  js ¿¡·¯ ¸·±â ½ÃÀÛ -->
function popview(url)
{
  return true;
}
function setTimeout(val1, val2)
{
  return true;
}
function resizeImage(val)
{
  return true;
}
<!-- ³×ÀÌ¹ö Æ÷½ºÆ® º¹»ç½Ã  js ¿¡·¯ ¸·±â ³¡ -->