// This Java Script is called by Admin Forgot password  (JSP file)


var f_str_page = 'admin_password_forgotpassword.jsp'; //has submit page
var f_b_val; 	//has boolean
var STR_VISIT =  "revisit";   //checks the user is in visit or revisit

// when called, checks the user name and submits the page according to the result

function onSub()
{
validate();
return false;
}


function  validate()
   {

		this.f_str_page = f_str_page;

      f_b_val = checkUserName(document.nam.txt_user_name,l_int_id);

// if conditional statement, which decides the page submission starts here
     

         if(f_b_val == true)
            {
               document.nam.action = f_str_page;
               document.nam.hid_mode.value  =  STR_VISIT ;
               document.nam.submit();
               return true;
            }
         else{
               return false;
             }
// conditional statement ends here

   }

// function ends here
      



