function view_comment(URL,width,height) {
	var str = "width="+width+", height="+height+", scrollbars=yes";
	window.open(URL,'_media_comment_view',str);
	return;
}

function check_secret(TheForm) {
	if(TheForm.passwd.value == "") {
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		TheForm.passwd.focus();
		return false;
	}
	return true;
}

function data_move(URL) {
	window.open(URL,'_menu_data_move','width=420,height=200,scrollbars=no');
}

function viewResizeImage(img_url,code){
	var url = "view_image_pop.php?board="+code+"&img_url="+img_url;   
	window.open(url, '', 'width=100, height=100, scrollbars=yes');
}
function ShowHideComTrack(com,v1,trk,v2) {
	var id1 = com+"-title";
	var id2 = trk+"-title";
	var obj1, obj2;
	if((t1_obj = document.getElementById(id1))
		&& (t2_obj = document.getElementById(id2))
		&& (obj1 = document.getElementById(com))
		&& (obj2 = document.getElementById(trk))) {
		if(v1 == 'show') {
			t1_obj.setAttribute("className","news_view_tr_com_show");
			t1_obj.setAttribute("class","news_view_tr_com_show");
			obj1.style.display = 'block';
		} else {
			t1_obj.setAttribute("className","news_view_tr_com_hide");
			t1_obj.setAttribute("class","news_view_tr_com_hide");
			obj1.style.display = 'none';
		}
		if(v2 == 'show') {
			t2_obj.setAttribute("className","news_view_tr_com_show");
			t2_obj.setAttribute("class","news_view_tr_com_show");
			obj2.style.display = 'block';
		} else {
			t2_obj.setAttribute("className","news_view_tr_com_hide");
			t2_obj.setAttribute("class","news_view_tr_com_hide");
			obj2.style.display = 'none';
		}
	}
}