    function go_to() {
        document.forms['ThisPage'].jump.value=1;
        document.forms['ThisPage'].rc.value='ShowMessage';
	if(document.forms['ThisPage'].reply_id_offset) {
	   document.forms['ThisPage'].reply_id_offset.value='';
	}
        document.forms[1].submit();
        return;
   }

    function go_to_message() {
        document.forms['ThisPage'].jump.value=1;
        document.forms['ThisPage'].rc.value='ShowMessage';
	if(document.forms['ThisPage'].reply_id_offset) {
	   document.forms['ThisPage'].reply_id_offset.value='';
	}
        document.forms['ThisPage'].submit();
        return;
   }

   function change_view(f) {
        if (f.thread_type.value == 2) {
           f.thread_type.value='1';
        }
        else {
           if (f.thread_type.value == 1) {
                  f.thread_type.value='2';
           }
        }       
        f.set_change.value='1';		
        f.submit();
        return;
   }

   function change_thread_list_type(f) {
        f.set_change_list_type.value='1';		
        f.submit();
        return;
   }

   function open_window(url, name) {
	window.open(url, name, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=510,height=360');
  	return;
  }

   function change_board(f) {
	if(f.id_offset) {
	   f.id_offset.value='';
	}
	if(f.start_thread_id_offset) {
	   f.start_thread_id.value='';
	}
        f.submit();
        return;
   }

   function submit_form(form) {
	form.submit();
        return;
   }

   function change_expand_type(f, type) {
        f.new_expand_type.value=type;
        f.submit();
        return;
   }
    function rom(message) {
 	//window.status=message;
	return;
    }	


   function quote_message(f) {
        f.rc.value='ShowPostPage';
        f.quote_reply.value='1';
	f.submit();
        return true;
   }

  function get_selected(sel) {
    for (var j=0; j < sel.options.length; j++) {
      if(sel.options[j].selected) {
	  return sel.options[j].value;
      }
    }
  }

   function edit_page(f) {
        f.edit_subject.value=f.subject.value;
        f.edit_message_body.value=f.message_body.value;
   }
