//点击新帖按钮，添加新留言
function addMessage(){
  	window.location = "message1.go?flag=goAdd&unit_id="+unit_id;
}
//跳转到留言查看页面
function goToView(mid) {
    var url = "page.go?_fnum=8030302&_li=1&_eq_c_mid_a="+mid+"&_eq_n_state=4&_path=message1.go?flag=goSee&mid="+mid;
    window.open(url);
}

//跳转到留言列表页面
function goToMsgList(){
	var ifr = document.getElementById("ifr_seeMsg");
	ifr.src = "page.go?_fnum=8030301&_li=1&_lk_c_title="+$_("title").value+"&_eq_n_utype=2&_eq_n_state=4&_eq_n_flag=1&_path=message1.go?flag=toMsgList";
}
//跳转到留言回复列表页面
function goReplyList(mid,curPage) {
    window.location = "page.go?_fnum=8030302&_li=1&_eq_c_mid_a="+mid+"&curPage="+curPage+"&_eq_n_state=4&_path=message1.go?flag=goSee1&mid="+mid;
}
//点击回复留言按钮
function reply(){
  	var fckDiv = document.getElementById("fckDiv");
  	fckDiv.style.display = "block";
}
//保存留言回复信息
function goSave(){
  	if(!confirm("确定要保存吗？"))return;  
  	document.getElementById("replyForm").submit();
  	document.getElementById("fckDiv").style.display = "none";
}
//保存留言信息
function saveMsg() {
	if($_("title").value == ""){
   	   alert("“标题不能为空！\n请填写！”");
       return false;
    }
	if(!confirm("确定要保存吗？"))return;      
	messageForm.submit();        
}
function toMsgList(){
	window.location = "message1.go?flag=findMsg&unit_id="+unit_id;
}

