function search_frm_submit(){
	var frm=document.search_frm;
	frm.submit();
}

function comment_insert( cat, bid, s, uid, writer, writer_name){
	var comment=document.getElementById("comment_content").value;

	if(comment.length>285) {
		alert("ÄÚ¸àÆ®´Â ÇÑ±Û 280ÀÚ, ¿µ¹® 460ÀÚ ÀÌ³»·Î ÀÔ·ÂÇØÁÖ¼¼¿ä");
	} else {
		$("comment_view_list").innerHTML="";
		div_update( "comment_view_list", "/inc/inc_comment.php?cat="+cat+"&BID="+bid+"&s="+s+"&UID="+uid+"&comment="+comment+"&writer="+writer+"&writer_name="+writer_name );
	}
}

function reply_view(lyr){
	document.getElementById(lyr).style.display="block";
}
function reply_dis(lyr){
	document.getElementById(lyr).style.display="none";
}
function comment_reply_insert(cat, bid, s, uid, reply_UID, writer, writer_name){
	var comment=document.getElementById("comment_reply_t_"+reply_UID).value;

	if(comment.length>280) {
		alert("ÄÚ¸àÆ®´Â ÇÑ±Û 270ÀÚ, ¿µ¹® 460ÀÚ ÀÌ³»·Î ÀÔ·ÂÇØÁÖ¼¼¿ä");
	} else {
		$("comment_view_list").innerHTML="";
		div_update( "comment_view_list", "/inc/inc_comment.php?cat="+cat+"&BID="+bid+"&s="+s+"&UID="+uid+"&MD=ADD&reply_UID="+reply_UID+"&comment="+comment+"&writer="+writer+"&writer_name="+writer_name );
	}
}
function reply_mod_view(lyr){
	document.getElementById(lyr).style.display="block";
}
function comment_reply_modify(cat, bid, s, uid, reply_UID){
	var comment=document.getElementById("comment_reply_t_"+reply_UID).value;

	if(comment.length>280) {
		alert("ÄÚ¸àÆ®´Â ÇÑ±Û 270ÀÚ, ¿µ¹® 460ÀÚ ÀÌ³»·Î ÀÔ·ÂÇØÁÖ¼¼¿ä");
	} else {
		$("comment_view_list").innerHTML="";
		div_update( "comment_view_list", "/inc/inc_comment.php?cat="+cat+"&BID="+bid+"&s="+s+"&UID="+uid+"&MD=MOD&reply_UID="+reply_UID+"&comment="+comment );
	}
}
function del_cmnt(cat, bid, s, uid, reply_UID){
	$("comment_view_list").innerHTML="";
	div_update( "comment_view_list", "/inc/inc_comment.php?cat="+cat+"&BID="+bid+"&s="+s+"&UID="+uid+"&MD=DEL&reply_UID="+reply_UID );
}