/*
function copyToClipboard(val) { 
	window.clipboardData.setData("Text", val);
    var url = "http://youthvoice.daum.net/yv3/common/pop_copy_url_to_clipboard.do?url="+val;
    window.open(url,'winOfConfirmationURLCopy','scrollbars=no,resizable=no,width=350,height=200');
}

function addFriend(friendId) {
	var url = 'http://youthvoice.daum.net/yv3/profile/common/friend_add.do?friendId=' + friendId
	window.open(url ,'popup','scrollbars=no,resizable=no,width=350,height=230');
}

function deleteFriend(friendId) {
	var url = 'http://youthvoice.daum.net/yv3/profile/common/friend_delete.do?friendId=' + friendId
	window.open(url ,'popup','scrollbars=no,resizable=no,width=350,height=230');
}

function listFriend(userId) {
	var url = 'http://youthvoice.daum.net/yv3/profile/common/friend_list.do?userId=' + userId
	window.open(url ,'popup','scrollbars=no,resizable=no,width=360,height=230');
}

function updateChar(length_limit, obj)
{
	var comment='';
	comment = obj;
	var form = document.bbsForm;
	var length = calculate_msglen(comment.value);
	if (length > length_limit) {
		alert("최대 " + length_limit + "byte이므로 초과된 글자수는 자동으로 삭제됩니다.");
		comment.value = comment.value.replace(/\r\n$/, "");
		comment.value = assert_msglen(comment.value, length_limit, "textlimit");
	}
}

function calculate_msglen(message)
{
	var nbytes = 0;

	for (i=0; i<message.length; i++) {
		var ch = message.charAt(i);
		if(escape(ch).length > 4) {
			nbytes += 2;
		} else if (ch == '\n') {
			if (message.charAt(i-1) != '\r') {
				nbytes += 1;
			}
		} else if (ch == '<' || ch == '>') {
			nbytes += 4;
		} else {
			nbytes += 1;
		}
	}

	return nbytes;
}

function assert_msglen(message, maximum, textlimit)
{
	var inc = 0;
	var nbytes = 0;
	var msg = "";
	var msglen = message.length;

	for (i=0; i<msglen; i++) {
		var ch = message.charAt(i);
		if (escape(ch).length > 4) {
			inc = 2;
		} else if (ch == '\n') {
			if (message.charAt(i-1) != '\r') {
				inc = 1;
			}
		} else if (ch == '<' || ch == '>') {
			inc = 4;
		} else {
			inc = 1;
		}
		if ((nbytes + inc) > maximum) {
			break;
		}
		nbytes += inc;
		msg += ch;
	}
	return msg;
}

*/