function go_to_forum()
 {
 var number = document.board_list.forum_list.selectedIndex;
 var url = document.board_list.forum_list.options[number].value;
 var new_url = "/movies/" + url + "/fancentral/board/";
 if (url != 'blank')
  {
  location.href = new_url;
  }
 }

function insert_ubb_link()
 {
 var d_ta = document.post_form.body.value;
 var this_url  = window.prompt("Please enter the URL","http://");
 var this_name = window.prompt("Please enter the name for the URL","my_link_name");

 var d_t_new = d_ta + "[URL=" + this_url + "]" + this_name + "[/URL]";
 document.post_form.body.value = d_t_new;
 document.post_form.body.focus();
 }

function insert_ubb_code(code,i)
 {
 var p_text = new Array();
     p_text[0] = "Enter the text you want to Bold";
     p_text[1] = "Enter the Text you want to be in Italics";
     p_text[2] = "Enter the Text you want to Underline";
     p_text[4] = "Enter the path to your image";
     p_text[5] = "Enter your spoiler text";

 var d_ta = document.post_form.body.value;
 var d_t_c = window.prompt(p_text[i],"");
 if (d_t_c != null)
  {
  var d_t_new = d_ta + "[" + code + "]" + d_t_c + "[/" + code + "]";
  document.post_form.body.value = d_t_new;
  }
 document.post_form.body.focus();
 }

function insert_smile(smile)
 {
 var d_ta_new = document.post_form.body.value + smile;
 document.post_form.body.value=d_ta_new;
 document.post_form.body.focus();
 }

function check_empty()
 {
 var loc = location.href;
 if (loc.indexOf('edit') == -1 && loc.indexOf('reply') == -1 && loc.indexOf('item_id') == -1)
  {
  var topic_c = document.post_form.subject.value;
  if (topic_c.length < 1)
   {
   alert("Please enter a Topic");
   }
   else
   {
   document.post_form.submit();
   }
  }
  else
  {
  document.post_form.submit();
  }
 }
