function deletePost(fpId){
    if(confirm("Do you want to delete it?")){
        location.href=SYSTEM_URL+'/forums/post/forums_post_process.php'+location.search+'&fpId='+fpId+'&mode=delete';
    }
}

function deleteTopic(ftId){
    if(confirm("Do you want to delete it?")){
        if(ftId){
            location.href=SYSTEM_URL+'/forums/topic/forums_topic_process.php'+location.search+'&ftId='+ftId+'&mode=delete';
        }else{
            location.href=SYSTEM_URL+'/forums/topic/forums_topic_process.php'+location.search+'&mode=delete';
        }
    }
}

