 
 function filter_comments()
 {
  $(".isidea").hide(); 
  $(".post_comment_form").hide();   
  $(".post_idea_form").hide();   
  $(".iscomment").show();
 }
 
 function hide_anounce(id)
 {
  $("#announce_div").hide();
  $.post("http://www.ideaoffer.com/ajax/mark_as_announced.php", { project_id: id });
 }
 
 function filter_ideas()
 {  
  $(".iscomment").hide();
  $(".post_comment_form").hide();   
  $(".post_idea_form").hide(); 
  $(".isidea").show();
 } 
 
 function filter_both()
 {  
  $(".post_idea_form").hide(); 
  $(".post_comment_form").hide();   
  $(".iscomment").show();
  $(".isidea").show();
 }  
 
 function show_idea_form()
 {
  $(".iscomment").hide(); 
  $(".isidea").hide();  
  $(".post_comment_form").hide(); 
  $(".post_idea_form").show();   
 }
 
 function show_comment_form()
 {
  $(".iscomment").hide(); 
  $(".isidea").hide();  
  $(".post_idea_form").hide(); 
  $(".post_comment_form").show();   
 } 
 
 
 function select_as_winner(id)
 {
  $("#winner"+id).submit();
 }
 
 function remove_from_winners(id)
 {
  $("#dewinner"+id).submit();
 } 
 
 function flag_idea(id)
 {
  $("#flag"+id).submit();
 }
 
 function remove_flag(id)
 {
  $("#deflag"+id).submit();
 } 
  
 