
// function to submit the respective form
function fun_submit(_mode)
{
   if(document.frm_choose_pack.lst_pack_id.options.selectedIndex == 0) // checks for selected value
   {
      alert (TXT_Var13738);
      document.frm_choose_pack.lst_pack_id.focus();
      return false;
   } // end of selected value if
   else
   {
      document.frm_choose_pack.hid_direct_signup.value = _mode;
      if ( _mode == 'cat' )
      {
         document.frm_choose_pack.action = "../swiz/choose_category.jsp";
      }
      else
      {
         document.frm_choose_pack.action = "signup_registration.jsp";
      }
      document.frm_choose_pack.submit();
      return true;
   }     
}    

//function to dynamically the change the index of list box
function fun_change(l_str_string) // to keep track of the selected list
{
   f_str_string = l_str_string;
} 

// function to set the select to the start date on loading the page
function fun_load()
{
   document.onload = document.frm_choose_pack.lst_pack_id.focus()
} // end of function fun_cust

