function _consult_leprosy()
 {
     echo "<form name='form_leprosy' action='{$_POST['PHP_SELF']}' method='POST'>";
     $leprosy = new leprosy();
     $leprosy->consult_id = $_GET['consult_id'];
     $leprosy->patient_id = healthcenter::get_patient_id($_GET['consult_id']);
     //$leprosy->patient_age = healthcenter::get_patient_age($_GET['consult_id']);
     $leprosy->userid = $_SESSION['userid'];
     //The following codes will initialize hidden textboxes and their values
     echo "<input type='hidden' name='h_consult_id' value='{$leprosy->consult_id}'></input>";
     echo "<input type='hidden' name='h_patient_id' value='{$leprosy->patient_id}'></input>";
     echo "<input type='hidden' name='h_userid' value='{$leprosy->userid}'></input>";
     if (@$_POST['h_save_flag'] == 'GO') {
         print "&nbsp;";
         $leprosy->new_leprosy_record();
         // test wether it still needed to initialize primary keys after a POST.
         //$leprosy->init_primary_keys();
         print "&nbsp;";
         $leprosy->show_NLCPForm1();
     } else {
         print "&nbsp;";
         $leprosy->init_primary_keys();
         print "&nbsp;";
         $leprosy->show_NLCPForm1();
     }
     echo "<input type='hidden' name='h_save_flag' value='GO'></input>";
     echo "</form>";
 }