/*
function message_filters(){
   var fms = document.getElementById('form_message').value;
   $.post("sign/sign_filter", { form_message: fms },
	function (data){
	   if(data==true){
	       alert('此留言己違反此留言版的規則!!'); 
	   }else{
	       document.myform.submit()
	   }
	}
   );
}
*/

function delete_filters(confirem_word, id){
   if(confirm(confirem_word)){
	$.post("filters/del",{ filters_id:id },
 	    function (data){ $("#filter_block_"+id).fadeOut("slow");}
	);
   }
}

function rollback_color(confirem_word, sessid){
   if(confirm(confirem_word)){
	document.location.href = "index.php?c=skin&m=rollback_skin_color&PHPSESSID=" + sessid;
   }
}

function prevImg(){
   var sImgLink = "";
   if ( document.getElementById('banner_img').value != "" ) {
	sImgLink = "<img src='" + document.getElementById('banner_img').value + "' />";
	document.getElementById('trimg').innerHTML = sImgLink;
   }
}

function deleteMSG(confirem_word, id, sessid){
	if(confirm(confirem_word)){
	    document.location.href = "index.php?c=sign&m=del&post_id="+id+"&PHPSESSID=" + sessid;
	}
}

function blockMSG(confirem_word, id, sessid){
	if(confirm(confirem_word)){
	    document.location.href = "index.php?c=sign&m=block&post_id="+id+"&PHPSESSID=" + sessid;
	}
}									

function approveMSG(confirem_word, id, sessid){
    if(confirm(confirem_word)){
        document.location.href = "index.php?c=sign&m=approve&post_id="+id+"&PHPSESSID=" + sessid;
    }
}

