<link rel="stylesheet" href="css/new_mxerp.css">
<div class="body_contain">
<div class="tab_div">
<div class="acg-top-pad10">
<div id="inshow">
<link rel="stylesheet" href="../css/jquery.ui.all.css">
<link rel="stylesheet" href="../css/jquery.ui.theme.css">

<script src="../js/jquery-1.5.1.js"></script>
<script src="../ui/jquery.ui.datepicker.js"></script>
<script src="../ui/jquery.ui.timepicker.css"></script>
<script src="../ui/jquery.ui.core.js"></script>
<script src="../ui/jquery.ui.timepicker.js"></script>
<script type="text/javascript">
//var jj=$.noConflict();
 //jj(function() {
  
//jj(".datepicker").datepicker({ dateFormat: 'dd/mm/yy' ,changeMonth: true,
   // changeYear: true,
   // yearRange: '-80:+20'});
//});
//jj('.timepicker').timepicker();

function valid(){
  var fin_year= document.getElementById('fin_year').value;
 if(fin_year==0)
 {
  alert("Please fill Financial Year");
  return false;
 }
}

function sum_rent(rentVal){
  var sum = 0;
  var totRentval=$( "input[id^='rent_']" ).length;
  for(var re=0; re<totRentval;re++){
    var valueRe=document.getElementById("rent_"+re).value;
        if (!isNaN(valueRe) && valueRe != 0) {
                 sum += parseFloat(valueRe);
             }
  }
      $("input[name='rent_total_amount']").val(sum.toFixed(2));
}

function sum_property(propertyVal){
  var sum = 0;
         var totRentval=$( "input[id^='property_']" ).length;
          for(var re=0; re<totRentval;re++){
            var valueRe=document.getElementById("property_"+re).value;
                if (!isNaN(valueRe) && valueRe != 0) {
                         sum += parseFloat(valueRe);
                     }
          }
         $("input[name='property_total_amount']").val(sum.toFixed(2));
}

function sum_medical(medicalVal){
  var sum = 0;
          var totRentval=$( "input[id^='medical_']" ).length;
          for(var re=0; re<totRentval;re++){
            var valueRe=document.getElementById("medical_"+re).value;
                if (!isNaN(valueRe) && valueRe != 0) {
                         sum += parseFloat(valueRe);
                     }
          }
         $("input[name='medical_total_amount']").val(sum.toFixed(2));
}

function sum_edu(eduVal){
  var sum = 0;
         var totRentval=$( "input[id^='edu_']" ).length;
          for(var re=0; re<totRentval;re++){
            var valueRe=document.getElementById("edu_"+re).value;
                if (!isNaN(valueRe) && valueRe != 0) {
                         sum += parseFloat(valueRe);
                     }
          }
         $("input[name='edu_total_amount']").val(sum.toFixed(2));
}
function sum_insurance(insuranceVal){
  var sum = 0;
            var totRentval=$( "input[id^='insurance_']" ).length;
          for(var re=0; re<totRentval;re++){
            var valueRe=document.getElementById("insurance_"+re).value;
                if (!isNaN(valueRe) && valueRe != 0) {
                         sum += parseFloat(valueRe);
                     }
          }
         $("input[name='insurance_total_amount']").val(sum.toFixed(2));
}



</script>
<script src="js/function.js" type="text/javascript"></script>
<script src="js/jquery.carouFredSel-5.5.0-packed.js" type="text/javascript"></script>
<script src="js/functions.js" type="text/javascript"></script>
<script type="text/javascript" src="js/form.min.js"></script> 

<?php 
session_start();
//error_reporting(0);
//include("connection.php");

//include("connection.php");

      //$tds_id=$_REQUEST['tds_id'];
     if(isset($_POST['update'])){
      $FinempCode1=rand(0,9999);
        if($_FILES['signature']['name']!='')
        {
          $name=$_FILES['signature']['name'];
          $tmp_name=$_FILES['signature']['tmp_name'];
          $name_brk=explode('.',$name);
          $type=$name_brk[1];
          $new_name=$FinempCode1.'.'.$type;
          $path="uploaded_docs/HR/sign_image/".$new_name;
          $file_copy=copy($tmp_name,$path);
          $data['signature']   =$new_name;
      }
      $data['emp_id']              =$_REQUEST['emp_id']; 
      $data['tot_ded']            =$_REQUEST['tot_ded'];
      $data['place']            =$_REQUEST['place'];   
      $data['date']        =FormatDateForSQL($_REQUEST['date']);
      $data['dependece_adress']            =$_REQUEST['address']; 
      $data['fin_year']            =$_REQUEST['fin_year']; 
      $data['rent_total']            =$_REQUEST['rent_total_amount']; 
      $data['property_total']            =$_REQUEST['property_total_amount']; 
      $data['medical_total']            =$_REQUEST['medical_total_amount']; 
      $data['edu_total']            =$_REQUEST['edu_total_amount']; 
      $data['insurance_total']            =$_REQUEST['insurance_total_amount'];  
      $data['modified_by']            =$_REQUEST['created_by'];
      $data['modified_date']          =date("Y-m-d H:i:s"); 
//echo "<pre>";print_r($data);
      $cond="id='".$_REQUEST['tds_id']."'";
  $s->RecordEdit('hr_declaration_head', $data,$cond);
 $headdec_id=$_REQUEST['tds_id'];
    if($headdec_id!=""){
        $noofdepends=count($_REQUEST['relation']);
          for($dep=0;$dep<$noofdepends;$dep++)
          {
              $data_dep['declaration_head_id'] =$headdec_id; 
              $data_dep['name']      =$_REQUEST['name'][$dep];
              $data_dep['relation']      =$_REQUEST['relation'][$dep]; 
              $data_dep['age']      =$_REQUEST['age'][$dep];
              $cond_id="id='".$_REQUEST['declaration_dependence'][$dep]."'";
              $s->RecordEdit('hr_declaration_dependence',$data_dep,$cond_id);
          }

          $noofrent=count($_REQUEST['rent_month']);
          for($rent=0;$rent<$noofrent;$rent++)
          {
              $data_rent['declaration_head_id'] =$headdec_id; 
              $data_rent['month']      =$_REQUEST['rent_month'][$rent];
              $data_rent['year']      =$_REQUEST['rent_year'][$rent]; 
              $data_rent['amount']      =$_REQUEST['rent_amount'][$rent];
               $data_rent['metro_flag']      =$_REQUEST['rent_metro'][$rent];
               $cond_rent_id="id='".$_REQUEST['rent_id'][$dep]."'";
              $s->RecordEdit('hr_declaration_rent', $data_rent,$cond_rent_id);
          }
          $noofproperty=count($_REQUEST['property_amount']);
          for($property=0;$property<$noofproperty;$property++)
          {
              $data_property['declaration_head_id'] =$headdec_id; 
              $data_property['declaration_particulars_id']      =$_REQUEST['property_perticuler'][$property];
              $data_property['amount']      =$_REQUEST['property_amount'][$property];
              $cond_property_id="id='".$_REQUEST['property_perticuler_id'][$property]."'";
              $s->RecordEdit('hr_declaration_property', $data_property,$cond_property_id);
          }
          $noofmedical=count($_REQUEST['medical_amount']);
          for($medical=0;$medical<$noofmedical;$medical++)
          {
              $data_medical['declaration_head_id'] =$headdec_id; 
              $data_medical['declaration_particulars_id']      =$_REQUEST['medical_perticuler'][$medical];
              $data_medical['amount']      =$_REQUEST['medical_amount'][$medical];
              $cond_medical_id="id='".$_REQUEST['medical_perticuler_id'][$medical]."'";
              $s->RecordEdit('hr_declaration_medical', $data_medical,$cond_medical_id);
          }
          $noofedu=count($_REQUEST['edu_amount']);
          for($edu=0;$edu<$noofedu;$edu++)
          {
              $data_edu['declaration_head_id'] =$headdec_id; 
              $data_edu['declaration_particulars_id']      =$_REQUEST['edu_perticuler'][$edu];
              $data_edu['amount']      =$_REQUEST['edu_amount'][$edu];
              $cond_edu_id="id='".$_REQUEST['edu_perticuler_id'][$edu]."'";
              $s->RecordEdit('hr_declaration_edu', $data_edu,$cond_edu_id);
          }
          $noofinsurance=count($_REQUEST['insurance_amount']);
          for($insurance=0;$insurance<$noofinsurance;$insurance++)
          {
              $data_insurance['declaration_head_id'] =$headdec_id; 
              $data_insurance['declaration_particulars_id']      =$_REQUEST['insurance_perticuler'][$insurance];
              $data_insurance['amount']      =$_REQUEST['insurance_amount'][$insurance];
              $cond_insurance_id="id='".$_REQUEST['insurance_perticuler_id'][$insurance]."'";
              $s->RecordEdit('hr_declaration_insurance', $data_insurance,$cond_insurance_id);
          }
       } 
       $s->pageLocation("index.php?route=HRModule/Master/investment_declaration".$rurl);
  }




 $result =  DB_query("select * from hr_declaration_head where id = '".$_REQUEST['tds_id']."'",$db);
 $data1 = DB_fetch_array($result);
 extract($data1);
?>
	<h1>Investment Declaration</h1>
   <form method="post" id="preview_form_edit"  enctype="multipart/form-data">
            <div class="row">
                        <h3>General Details</h3>
                  <table width="100%" border="0" cellspacing="0" cellpadding="3">
                      <tr class="row1">
                        <td width="13%"><strong>Emp. No.</strong></td>
                        <td width="35%"><input type="text" value="<?php echo $s->GetFieldValue("empmaster","id='".$emp_id."' ","emp_code"); ?>" readonly/></td>
                        <td width="13%"><strong>Name</strong></td>
                        <td><input type="text"  value="<?php echo $s->GetFieldValue("empmaster","id='".$emp_id."' ","emp_name"); ?>" readonly/></td>
                      </tr>
                      <tr class="row1">
                        <td><strong>PAN</strong></td>
                        <td><input type="text"  value="<?php echo $s->GetFieldValue("empmaster","id='".$emp_id."' ","pan_no"); ?>" readonly/></td>
                        <td><strong>Mobile No.</strong></td>
                        <td><input type="text"  value="<?php echo $s->GetFieldValue("employee_address","emp_id='".$emp_id."' ","per_mobile"); ?>" readonly/></td>
                      </tr>
                      <tr class="row1">
                        <td><strong>Financial Year</strong></td>
                        <td>
                          <select name="fin_year" id="fin_year">
                            <option value="0">Select</option>
                             <?php 
                                $usedfinArray=array();
                                  $sql_tdsfin="SELECT fin_year FROM hr_declaration_head WHERE id='".$id."'";
                                $query_tdsfin=DB_query($sql_tdsfin,$db);
                                while($tdsfin_row=DB_fetch_assoc($query_tdsfin)){
                                  $usedfinArray[]=$tdsfin_row['fin_year'];
                                }
                                $sql_finyear="Select * from company_financial_years";
                                $query_finyear=DB_query($sql_finyear,$db);
                                while($finyear_row=DB_fetch_assoc($query_finyear))
                                {
                                  $p='';
                                    if (in_array($finyear_row['id'], $usedfinArray)){
                                       $p="selected";
                                    }
                                    else{
                                      $p='';
                                    }
                             ?>
                             <option value="<?php echo $finyear_row['id']; ?>" <?php echo  $p; ?>><?php echo $finyear_row['year_start'].'-'.$finyear_row['year_end']; ?></option>
                             <?php } ?>
                          </select>
                        </td>
                      </tr>
                  </table>
            </div>
            <div id="catsel">
               <a href="#" class="nav-btn">Jewellery <strong><i class="fa fa-angle-down" style="float:right; margin-top:5px;"></i></strong></a>
            <ul class="resp-tabs-list hor_1">
                <li><a href="javascript://" id="c1" class="sel" onClick="cat_show('cat_1', 'c1');">Dependents Detail</a></li>
                <li><a href="javascript://" id="c2" onClick="cat_show('cat_2', 'c2');">Rent Details</a></li>
                <li><a href="javascript://" id="c3" onClick="cat_show('cat_3', 'c3');">Property Details</a></li>
                <li><a href="javascript://" id="c4" onClick="cat_show('cat_4', 'c4');">Medical Policy Details</a></li>
                <li><a href="javascript://" id="c5" onClick="cat_show('cat_5', 'c5');">Edu.Investment Details</a></li>
                <li><a href="javascript://" id="c6" onClick="cat_show('cat_6', 'c6');">Insurance Details</a></li>
                <li><a href="javascript://" id="c7" onClick="cat_show('cat_7', 'c7');">Declaration</a></li>
            </ul>
            </div>
          
              <input type="hidden" name="emp_id" value="<?php echo $emp_id; ?>">
              <input type="hidden" name="fin_year1" value="<?php echo $_SESSION['YearStart']; ?>-<?php echo $_SESSION['YearEnd1']; ?>">

               <input type="hidden" name="created_by" value="<?php echo $_SESSION['UserID']; ?>">
               <input type="hidden" name="tds_id" value="<?php echo $_REQUEST['tds_id']; ?>">
                <div id="cat_1" class="cat" style="border-top:#808080 2px solid;">   
                        <h3>Details of Dependents</h3> 
                  <table width="100%" border="1" cellspacing="0" cellpadding="3" style="border:#808080 1px solid;">
                      <tr>
                        <th width="40" valign="middle"><strong>S. No.</strong></th>
                        <th valign="middle"><strong>Name</strong></th>
                        <th width="150" valign="middle"><strong>Relation</strong></th>
                        <th width="100" valign="middle"><strong>Age</strong></th>
                        <th width="30%" valign="middle"><strong>Address</strong></th>
                      </tr>
                      <tr>
                        <td colspan="4" valign="top" align="left" style="padding:0;" id="intab">
                        <div id="amc-tab">
                          <table width="100%" border="0" cellspacing="0" cellpadding="3">
                          <?php 
                          $sql_depends="SELECT * FROM hr_declaration_dependence where declaration_head_id='".$id."'";
                          $query_depends=DB_query($sql_depends,$db);
                            $dp=0;
                            while($depends_row=DB_fetch_assoc($query_depends))
                            {
                          ?>
                            <tr>
                              <td width="40" valign="middle" align="center"><strong><?php echo $dp+1; ?><input type="hidden" name="deserial[]">
                              <input type="hidden" name="declaration_dependence[]" value="<?php echo $depends_row['id']; ?>">
                              </strong></td>
                              <td valign="top"><input type="text" name="name[]" value="<?php echo $depends_row['name']; ?>" /></td>
                              <td width="150" valign="top"><input type="text" name="relation[]" value="<?php echo $depends_row['relation']; ?>" /></td>
                              <td width="100" valign="top"><input type="text" name="age[]" value="<?php echo $depends_row['age']; ?>" /></td>
                            </tr>
                          <?php $dp++; } ?>
                          </table>
                        </div>
                        </td>
                        <td valign="top"><textarea style="width:100%; height:146px;" name="address"><?php echo $dependece_adress; ?></textarea></td>
                      </tr>  
                           <tr><td colspan="5" style="text-align:center;"><input type="button" name="next"  class="search" id="c2" onClick="cat_show('cat_2', 'c2');" value="Next"></td></tr>                  
                  </table>
                </div>
                <div id="cat_2" style="display:none; border-top:#808080 2px solid;" class="cat">
                <h3>Rent Details</h3>
                  <table width="100%" border="1" cellspacing="0" cellpadding="3" style="border:#808080 1px solid;">
                      <tr>
                        <th width="6%"><strong>S. No.</strong></th>
                        <th width="20%"><strong>Particulars</strong></th>
                        <th width="20%"><strong>Please Fill in</strong></th>
                        <th width="20%"><strong>Amount declared by you in the Declaration form</strong></th>
                        <th><strong>Remarks</strong></th>
                      </tr>
                      <tr>
                        <td rowspan="14" align="center"><strong>1</strong></td>
                        <th><strong>Rent Paid / Payable for:</strong></th>
                        <th><strong>(Metro / Non Metro)</strong></th>
                        <th><strong>Amount Rs.</strong></th>
                        <td rowspan="14" valign="top">
                        <p style="padding:5px; margin:0;">Please enter your Monthly Rent details as per the Rent Receipt / Lease Deed, with necessary details as Tenant Name, Owner name, rented property address, PAN no of owner, payment details, revenue stamp.
<br><br>
<strong>Note:-</strong><br>
If the Employee is paying the rent below Rs.3000/- per month, he/she need not furnish the Rent Receipts (Circular No:8/2007 Dt: 05.Dec.2007).</p></td>
                      </tr>
<?php 
    $montArray=array(1=>"January",2=>"February",3=>"March",4=>"April",5=>"May",6=>"June",7=>"July",8=>"August",9=>"September",10=>"October",11=>"November",12=>"December");
    $sql_rent="SELECT * FROM hr_declaration_rent where declaration_head_id='".$id."'";
                          $query_rent=DB_query($sql_rent,$db);
                          $ep=0;
                          while($rent_row=DB_fetch_assoc($query_rent)){

                          //echo "<pre>";print_r($rent_row);
?>
                      <tr>
                        <td><?php echo $montArray[$rent_row['month']]; ?>
                        <input type="hidden" name="rent_id[]" value="<?php echo $rent_row['id']; ?>"/>
                        <input type="hidden" name="rent_month[]" value="<?php echo $rent_row['month']; ?>"/>
                        <input type="hidden" name="rent_year[]" value="<?php echo $rent_row['year']; ?>"/>
                        </td>
                        <td><select name="rent_metro[]">
                          <option selected="" value="">Select</option>
                          <option value="1" <?php echo ( $rent_row['metro_flag']==1)?"selected":""; ?>>Metro</option>
                          <option value="0" <?php echo ( $rent_row['metro_flag']==0)?"selected":""; ?>>NonMetro</option>
                        </select></td>
                        <td><input type="text" name="rent_amount[]" value="<?php echo $rent_row['amount']; ?>" id="rent_<?php echo $ep; ?>" class="rentsum" onkeyup="sum_rent(this.value)" value=""  autocomplete="off"/></td>
                      </tr>
                      <?php $ep++; } ?>
                      <tr>
                        <td><strong>Total</strong></td>
                        <td></td>
                        <td><input type="text" name="rent_total_amount" value="<?php echo $rent_total; ?>" readonly/></td>
                      </tr>
                      <tr><td colspan="5" style="text-align:center;">
                          <input type="button" name="Back"  class="search" id="c1" onClick="cat_show('cat_1', 'c1');" value="Back">
                        <input type="button" name="next"  class="search" id="c3" onClick="cat_show('cat_3', 'c3');" value="Next"></td></tr> 

                  </table>
                </div>
                <div id="cat_3" style="display:none; border-top:#808080 2px solid;" class="cat">
                <h3>Property Details</h3>
                    <table width="100%" border="1" cellspacing="0" cellpadding="3" style="border:#808080 1px solid;">
                      <tr>
                        <th width="6%" style="text-align:center;"><strong>S. No.</strong></th>
                        <th width="26%" style="text-align:center;"><strong>Particulars</strong></th>
                        <th width="20%" style="text-align:center;"><strong>Maximum Limits (Rs.)</strong></th>
                        <th width="23%" style="text-align:center;"><strong>Amount Rs.</strong></th>
                        <th style="text-align:center;"><strong>Remarks</strong></th>
                      </tr>
                      <tr>
                      <?php 
                        $sql_property="Select * from hr_declaration_property where declaration_particulars_id=1 and declaration_head_id='".$id."'";
                        $query_propery=DB_query($sql_property,$db);
                        $propery_row=DB_fetch_assoc($query_propery);
                      ?>
                        <td rowspan="3" align="center"><strong>2</strong></td>
                         <input type="hidden" name="property_perticuler_id[]" value="<?php echo $propery_row['id']; ?>"/>
                        <input type="hidden" name="property_perticuler[]" value="1"/>
                        <td align="center"><p style="padding:0 5px; margin:0;">Interest on Housing Loan u/s 24 <br>
(If the house is self occupied and the loan was taken before April 1999).<br>
Bankers Certificate to be submitted</p></td>
                        <td align="center"><p style="padding:0 5px; margin:0;">Upto Rs. 30000/-<br>
(If Self Occupied)</p></td>
                        <td><input type="text" name="property_amount[]" value="<?php echo $propery_row['amount'] ?>" autocomplete="off" id="property_0" onkeyup="sum_property(this.value)"/></td>
                        <td valign="top"><p style="padding:0 5px; margin:0;">Please fill attached House Property Declaration form and it is COMPULSORY for claiming the deduction.</p></td>
                      </tr>
                      <tr>
                      <?php 
                        $sql_property="Select *  from hr_declaration_property where declaration_particulars_id=2 and declaration_head_id='".$id."'";
                        $query_propery=DB_query($sql_property,$db);
                        $propery_row=DB_fetch_assoc($query_propery);
                      ?>
                        <td align="center">
                        <input type="hidden" name="property_perticuler_id[]" value="<?php echo $propery_row['id']; ?>"/>
                          <input type="hidden" name="property_perticuler[]" value="2"/>
                        <p style="padding:0 5px; margin:0;">Interest on Housing Loan u/s 24<br>
(If the house is self occupied and the loan was taken on or after April 1999).<br>
Bankers Certificate to be submitted</p></td>
                        <td align="center"><p style="padding:0 5px; margin:0;">Max Limit - Rs. 2,00,000/- <br>
(If Self Occupied)</p></td>
                        <td><input type="text" name="property_amount[]"  autocomplete="off" id="property_1" onkeyup="sum_property(this.value)" value="<?php echo $propery_row['amount'] ?>"/></td>
                        <td valign="top"><p style="padding:0 5px; margin:0;">Please fill attached House Property Declaration form and it is COMPULSORY for claiming the deduction.</p></td>
                      </tr>
                      <tr>
                      <?php 
                        $sql_property="Select *  from hr_declaration_property where declaration_particulars_id=3 and declaration_head_id='".$id."'";
                        $query_propery=DB_query($sql_property,$db);
                        $propery_row=DB_fetch_assoc($query_propery);
                      ?>
                        <td align="center">
                        <input type="hidden" name="property_perticuler_id[]" value="<?php echo $propery_row['id']; ?>"/>
                          <input type="hidden" name="property_perticuler[]" value="3"/>
                        <p style="padding:0 5px; margin:0;">Interest on Housing Loan u/s 24<br>
(Let out/ Deemed to be let out)<br>
Bankers Certificate to be submitted<br>
[if the property is LET OUT/DEEMED LET OUT - Actual Rental Income OR Gross Annual Value MUST be specified]</p></td>
                        <td align="center"><p style="padding:0 5px; margin:0;">- No Limit -<br>
(If Let Out)</p></td>
                        <td><input type="text" name="property_amount[]"  autocomplete="off" id="property_2" onkeyup="sum_property(this.value)" value="<?php echo $propery_row['amount'] ?>"/></td>
                        <td valign="top"><p style="padding:0 5px; margin:0;">Please fill attached House Property Declaration form and it is COMPULSORY for claiming the deduction.</p></td>
                      </tr>
                      <tr>
                        <td><strong>Total</strong></td>
                        <td></td>
                        <td></td>
                        <td><input type="text" name="property_total_amount" value="<?php echo $property_total; ?>" readonly/></td>
                        <td></td>
                      </tr>

                      <tr><td colspan="5" style="text-align:center;">
                          <input type="button" name="Back"  class="search" id="c2" onClick="cat_show('cat_2', 'c2');" value="Back">
                        <input type="button" name="next"  class="search" id="c4" onClick="cat_show('cat_4', 'c4');" value="Next"></td></tr> 

                  </table>
                  </div>
                <div id="cat_4" style="display:none; border-top:#808080 2px solid;" class="cat">
                <h3>Medical Policy Details</h3>
                    <table width="100%" border="1" cellspacing="0" cellpadding="3" style="border:#808080 1px solid;">
                      <tr>
                        <th width="6%" style="text-align:center;"><strong>S. No.</strong></th>
                        <th width="26%" style="text-align:center;"><strong>Particulars</strong></th>
                        <th width="20%" style="text-align:center;"><strong>Maximum Limits (Rs.)</strong></th>
                        <th width="23%" style="text-align:center;"><strong>Amount Rs.</strong></th>
                        <th style="text-align:center;"><strong>Remarks</strong></th>
                      </tr>
                      <tr>
                      <?php 
                        $sql_medical="Select *  from hr_declaration_medical where declaration_particulars_id=4 and declaration_head_id='".$id."'";
                        $query_medical=DB_query($sql_medical,$db);
                        $medical_row=DB_fetch_assoc($query_medical);
                      ?>
                        <td align="center"><strong>3</strong></td>
                         <input type="hidden" name="medical_perticuler_id[]" value="<?php echo $medical_row['id']; ?>"/>
                        <input type="hidden" name="medical_perticuler[]" value="4"/>
                        <td align="center"><p style="padding:0 5px; margin:0;">Sec. 80CCD (1B)<br>
National Pension Scheme</p></td>
                        <td align="center"><p style="padding:0 5px; margin:0;">Rs. 50000/-<br>
(Proposed in Budget - 2015)</p></td>
                        <td><input type="text" name="medical_amount[]" value="<?php echo $medical_row['amount'] ?>"  autocomplete="off" id="medical_0" onkeyup="sum_medical(this.value)" value=""/></td>
                        <td valign="top"><p style="padding:0 5px; margin:0;">Amount contributed to National Pension Scheme by employee.</p></td>
                      </tr>
                      <tr>
                      <?php 
                        $sql_medical="Select *  from hr_declaration_medical where declaration_particulars_id=5 and declaration_head_id='".$id."'";
                        $query_medical=DB_query($sql_medical,$db);
                        $medical_row=DB_fetch_assoc($query_medical);
                      ?>
                        <td rowspan="2" align="center"><strong>4</strong></td>
                        <input type="hidden" name="medical_perticuler_id[]" value="<?php echo $medical_row['id']; ?>"/>
                        <input type="hidden" name="medical_perticuler[]" value="5"/>
                        <td rowspan="2" align="center"><p style="padding:0 5px; margin:0;">Sec 80D (Medi Claim Policy &amp; Preventive health check up)
(Overall limit proposed in Budget 2015 - Rs.30000/-)</p></td>
                        <td align="center"><p style="padding:0 5px; margin:0;">Rs. 15,000/- (or) Rs.20,000/- <br>
(Proposed limit in Budget 2015 - Rs. 25000/- (or) Rs.30000/-)</p></td>
                        <td><input type="text" name="medical_amount[]" value="<?php echo $medical_row['amount'] ?>"  autocomplete="off" id="medical_1" onkeyup="sum_medical(this.value)" value=""/></td>
                        <td valign="top"><p style="padding:0 5px; margin:0;">Medical Insurance Premium PAID by Employee: <br>
- on the health of employee, spouse, and dependent children (Payment must be made by cheque only).
 [Rs.20,000/- In case employee is a Senior Citizen] (i.e., 60 years or more).<br>
Payment made by an employee  for preventive health check-up of self, spouse, dependent children during the financial year is eligible for maximum deduction of Rs 5000.<br>
<strong>Note:</strong><br>
The amount  paid is within the overall limits ( Rs. 15000/Rs. 20000).PAYMENT HAS TO BE MADE BY CHEQUE AND NOT BY CASH</p></td>
                      </tr>
                      <tr>
                      <?php 
                        $sql_medical="Select *  from hr_declaration_medical where declaration_particulars_id=6 and declaration_head_id='".$id."'";
                        $query_medical=DB_query($sql_medical,$db);
                        $medical_row=DB_fetch_assoc($query_medical);
                      ?>
                      <input type="hidden" name="medical_perticuler_id[]" value="<?php echo $medical_row['id']; ?>"/>
                        <input type="hidden" name="medical_perticuler[]" value="6"/>
                        <td align="center"><p style="padding:0 5px; margin:0;">Rs. 15,000/- (or) Rs.20,000/- <br>
(Proposed limit in Budget 2015 - Rs. 25000/- (or) Rs.30000/-)</p></td>
                        <td><input type="text" name="medical_amount[]" value="<?php echo $medical_row['amount'] ?>"  autocomplete="off" id="medical_2" onkeyup="sum_medical(this.value)" value=""/></td>
                        <td valign="top"><p style="padding:0 5px; margin:0;">Medical Insurance Premium PAID by Employee:<br>
-  on the health of parents (even not dependent on employee) (Payment must be made by Cheque only).
[Rs.20,000/- In the case  parents are  Senior Citizen]i.e., 60 years or more
payment made by an employee  for preventive health check-up of  parents during the financial year is eligible for maximum deduction of Rs 5000.PAYMENT HAS TO BE MADE BY CHEQUE AND NOT BY CASH<br>
<strong>Note:</strong><br>
The amount  paid is within the overall limits ( Rs. 15000/Rs. 20000).</p></td>
                      </tr>
                      <tr>
                      <?php 
                        $sql_medical="Select *  from hr_declaration_medical where declaration_particulars_id=7 and declaration_head_id='".$id."'";
                        $query_medical=DB_query($sql_medical,$db);
                        $medical_row=DB_fetch_assoc($query_medical);
                      ?>
                        <td align="center"><strong>5</strong></td>
                        <input type="hidden" name="medical_perticuler_id[]" value="<?php echo $medical_row['id']; ?>"/>
                        <input type="hidden" name="medical_perticuler[]" value="7"/>
                        <td align="center"><p style="padding:0 5px; margin:0;">Sec 80DD (Maintenance including Medical treatment of dependant person with disability)</p></td>
                        <td align="center"><p style="padding:0 5px; margin:0;">Rs. 50,000/- (Rs.1,00,000/- for Severe disability)<br>
(Propsed limit in budget 2015 - Rs. 75,000/- and Rs. 1,25,000 for severe disability)</p></td>
                        <td><input type="text" name="medical_amount[]" value="<?php echo $medical_row['amount'] ?>"  autocomplete="off" id="medical_3" onkeyup="sum_medical(this.value)" value=""/></td>
                        <td valign="top"><p style="padding:0 5px; margin:0;">Here Employee gets  fixed amount of deduction.<br>
 If employee has incurred any  expenditure / deposited in specified policy. <br>
(Form 10-IA obtained from Medical Authority has to be submitted)</p></td>
                      </tr>
                      <tr>
                        <td><strong>Total</strong></td>
                        <td></td>
                        <td></td>
                        <td><input type="text" name="medical_total_amount" value="<?php echo $medical_total; ?>" readonly/></td>
                        <td></td>
                      </tr>
                      <tr><td colspan="5" style="text-align:center;">
                          <input type="button" name="Back"  class="search" id="c3" onClick="cat_show('cat_3', 'c3');" value="Back">
                        <input type="button" name="next"  class="search" id="c5" onClick="cat_show('cat_5', 'c5');" value="Next"></td></tr> 
                  </table>
                </div>
                <div id="cat_5" style="display:none; border-top:#808080 2px solid;" class="cat">
                <h3>Education Investment Details</h3>
                  <table width="100%" border="1" cellspacing="0" cellpadding="3" style="border:#808080 1px solid;">
                      <tr>
                        <th width="6%" style="text-align:center;"><strong>S. No.</strong></th>
                        <th width="26%" style="text-align:center;"><strong>Particulars</strong></th>
                        <th width="20%" style="text-align:center;"><strong>Maximum Limits (Rs.)</strong></th>
                        <th width="23%" style="text-align:center;"><strong>Amount Rs.</strong></th>
                        <th style="text-align:center;"><strong>Remarks</strong></th>
                      </tr>
                      <tr>
                       <?php 
                        $sql_edu="Select *  from hr_declaration_edu where declaration_particulars_id=8 and declaration_head_id='".$id."'";
                        $query_edu=DB_query($sql_edu,$db);
                        $edu_row=DB_fetch_assoc($query_edu,$db);
                      ?>
                        <td align="center"><strong>6</strong></td>
                        <input type="hidden" name="edu_perticuler_id[]" value="<?php echo $edu_row['id']; ?>"/>
                        <input type="hidden" name="edu_perticuler[]" value="8"/>
                        <td align="center"><p style="padding:0 5px; margin:0;">Sec 80E (Education Loan)<br>
Please mention Initial Year<br>(Year in which Interest payment started)</p></td>
                        <td align="center"><p style="padding:0 5px; margin:0;">No limit<br>
(only Interest Portion)</p></td>
                        <td><input type="text" name="edu_amount[]"  autocomplete="off" id="edu_0" onkeyup="sum_edu(this.value)" value="<?php echo $edu_row['amount'] ?>"/></td>
                        <td valign="top"><p style="padding:0 5px; margin:0;">Interest on Loan taken for Higher Education:<br>
Amount paid by employee during the financial year on loan taken for higher education of 
- Employee, spouse or children of employee or students for whom employee is a legal guardian.<br>
<strong>Benefit Period:</strong><br>
Upto 8 years from initial year</p></td>
                      </tr>
                      <tr>
                      <?php 
                        $sql_edu="Select * from hr_declaration_edu where declaration_particulars_id=9 and declaration_head_id='".$id."'";
                        $query_edu=DB_query($sql_edu,$db);
                        $edu_row=DB_fetch_assoc($query_edu);
                      ?>
                        <td align="center"><strong>7</strong></td>
                        <input type="hidden" name="edu_perticuler_id[]" value="<?php echo $edu_row['id']; ?>"/>
                        <input type="hidden" name="edu_perticuler[]" value="9 "/>
                        <td align="center"><p style="padding:0 5px; margin:0;">Donations</p></td>
                        <td align="center"><p style="padding:0 5px; margin:0;">Under Section 80G</p></td>
                        <td><input type="text" name="edu_amount[]"  autocomplete="off" id="edu_1" onkeyup="sum_edu(this.value)" value="<?php echo $edu_row['amount'] ?>"/></td>
                        <td valign="top"><p style="padding:0 5px; margin:0;">Receipt should have Name, Pan No of donee and section under which the benefit is available.</p></td>
                      </tr>
                      <tr>
                     <?php 
                        $sql_edu="Select  * from hr_declaration_edu where declaration_particulars_id=10 and declaration_head_id='".$id."'";
                        $query_edu=DB_query($sql_edu,$db);
                        $edu_row=DB_fetch_assoc($query_edu);
                      ?>
                        <td align="center"><strong>8</strong></td>
                        <input type="hidden" name="edu_perticuler_id[]" value="<?php echo $edu_row['id']; ?>"/>
                        <input type="hidden" name="edu_perticuler[]" value="10"/>
                        <td align="center"><p style="padding:0 5px; margin:0;">Sec 80U (For person with a disability)</p></td>
                        <td align="center"><p style="padding:0 5px; margin:0;">Rs. 50,000/- (Rs.1,00,000/- for Severe disability)<br>
(Propsed limit in budget 2015 - Rs. 75,000/- and Rs. 1,25,000 for severe disability)</p></td>
                        <td><input type="text" name="edu_amount[]"  autocomplete="off" id="edu_2" onkeyup="sum_edu(this.value)" value="<?php echo $edu_row['amount'] ?>"/></td>
                        <td valign="top"><p style="padding:0 5px; margin:0;">Here Employee gets fixed amount of deduction.<br>
(Form 10-IA obtained from Medical Authority has to be submitted)</p></td>
                      </tr>
                      <tr>
                        <td><strong>Total</strong></td>
                        <td></td>
                        <td></td>
                        <td><input type="text" name="edu_total_amount" value="<?php echo $edu_total; ?>" readonly/></td>
                        <td></td>
                      </tr>
                       <tr><td colspan="5" style="text-align:center;">
                          <input type="button" name="Back"  class="search" id="c4" onClick="cat_show('cat_4', 'c4');" value="Back">
                        <input type="button" name="next"  class="search" id="c6" onClick="cat_show('cat_6', 'c6');" value="Next"></td></tr> 
                  </table>
                </div>
                <div id="cat_6" style="display:none; border-top:#808080 2px solid;" class="cat">
                <h3>Insurance Details</h3>
                  <table width="100%" border="1" cellspacing="0" cellpadding="3" style="border:#808080 1px solid;">
                      <tr>
                        <th width="6%" style="text-align:center;"><strong>S. No.</strong></th>
                        <th width="26%" style="text-align:center;"><strong>Particulars</strong></th>
                        <th width="20%" style="text-align:center;"><strong>Maximum Limits (Rs.)</strong></th>
                        <th width="23%" style="text-align:center;"><strong>Amount Rs.</strong></th>
                        <th style="text-align:center;"><strong>Remarks</strong></th>
                      </tr>
                      <tr>
                      <?php 
                        $sql_insuranc="Select  * from hr_declaration_insurance where declaration_particulars_id=11 and declaration_head_id='".$id."'";
                        $query_insurance=DB_query($sql_insuranc,$db);
                        $insurance_row=DB_fetch_assoc($query_insurance);
                      ?>
                        <td align="center"><strong>9</strong></td>
                        <input type="hidden" name="insurance_perticuler_id[]" value="<?php echo $insurance_row['id']; ?>"/>
                        <input type="hidden" name="insurance_perticuler[]"  autocomplete="off" value="11"/>
                        <td align="left"><p style="padding:0 5px; margin:0;">Life Insurance Premium</p></td>
                        <td rowspan="13" align="center"><p style="padding:5px; margin:0;">Maximum amount eligible for Deduction under section 80C &amp; 80CCC Categories is Rs.1,50,000/-</p></td>
                        <td><input type="text" name="insurance_amount[]" id="insurance_0" onkeyup="sum_insurance(this.value)" value="<?php echo $insurance_row['amount'] ?>"/></td>
                        <td><p style="padding:0 5px; margin:0;">Self , Spouse &amp; Children only</p></td>
                      </tr>
                      <tr>
                      <?php 
                        $sql_insuranc="Select  * from hr_declaration_insurance where declaration_particulars_id=12 and declaration_head_id='".$id."'";
                        $query_insurance=DB_query($sql_insuranc,$db);
                        $insurance_row=DB_fetch_assoc($query_insurance);
                      ?>
                        <td align="center"><strong>10</strong></td>
                        <input type="hidden" name="insurance_perticuler_id[]" value="<?php echo $insurance_row['id']; ?>"/>
                        <input type="hidden" name="insurance_perticuler[]"  autocomplete="off" value="12"/>
                        <td align="left"><p style="padding:0 5px; margin:0;">Public Provident Fund (PPF)</p></td>
                        <td><input type="text" name="insurance_amount[]" id="insurance_1" onkeyup="sum_insurance(this.value)"  value="<?php echo $insurance_row['amount'] ?>"/></td>
                        <td><p style="padding:0 5px; margin:0;">Self , Spouse &amp; Children only, Submit PPF challan or PPF passbook front page with entries</p></td>
                      </tr>
                      <tr>
                      <?php 
                        $sql_insuranc="Select  * from hr_declaration_insurance where declaration_particulars_id=13 and declaration_head_id='".$id."'";
                        $query_insurance=DB_query($sql_insuranc,$db);
                        $insurance_row=DB_fetch_assoc($query_insurance);
                      ?>
                        <td align="center"><strong>11</strong></td>
                        <input type="hidden" name="insurance_perticuler_id[]" value="<?php echo $insurance_row['id']; ?>"/>
                        <input type="hidden" name="insurance_perticuler[]"  autocomplete="off" value="13"/>
                        <td align="left"><p style="padding:0 5px; margin:0;">Provident Fund (PF)</p></td>
                        <td><input type="text" name="insurance_amount[]" id="insurance_2" onkeyup="sum_insurance(this.value)"  value="<?php echo $insurance_row['amount'] ?>"/></td>
                        <td><p style="padding:0 5px; margin:0;">Deducted from salary</p></td>
                      </tr>
                      <tr>
                      <?php 
                        $sql_insuranc="Select  * from hr_declaration_insurance where declaration_particulars_id=14 and declaration_head_id='".$id."'";
                        $query_insurance=DB_query($sql_insuranc,$db);
                        $insurance_row=DB_fetch_assoc($query_insurance);
                      ?>
                        <td align="center"><strong>12</strong></td>
                        <input type="hidden" name="insurance_perticuler_id[]" value="<?php echo $insurance_row['id']; ?>"/>
                        <input type="hidden" name="insurance_perticuler[]"  autocomplete="off" value="14"/>
                        <td align="left"><p style="padding:0 5px; margin:0;">Pension Fund Contribution</p></td>
                        <td><input type="text" name="insurance_amount[]" id="insurance_3" onkeyup="sum_insurance(this.value)"  value="<?php echo $insurance_row['amount'] ?>"/></td>
                        <td><p style="padding:0 5px; margin:0;">Self only</p></td>
                      </tr>
                      <tr>
                      <?php 
                        $sql_insuranc="Select  * from hr_declaration_insurance where declaration_particulars_id=15 and declaration_head_id='".$id."'";
                        $query_insurance=DB_query($sql_insuranc,$db);
                        $insurance_row=DB_fetch_assoc($query_insurance);
                      ?>
                        <td align="center"><strong>13</strong></td>
                        <input type="hidden" name="insurance_perticuler_id[]" value="<?php echo $insurance_row['id']; ?>"/>
                        <input type="hidden" name="insurance_perticuler[]"  autocomplete="off" value="15"/>
                        <td align="left"><p style="padding:0 5px; margin:0;">National Savings Certificate (NSC)</p></td>
                        <td><input type="text" name="insurance_amount[]" id="insurance_4" onkeyup="sum_insurance(this.value)"  value="<?php echo $insurance_row['amount'] ?>"/></td>
                        <td><p style="padding:0 5px; margin:0;">Self only</p></td>
                      </tr>
                      <tr>
                      <?php 
                        $sql_insuranc="Select  * from hr_declaration_insurance where declaration_particulars_id=16 and declaration_head_id='".$id."'";
                        $query_insurance=DB_query($sql_insuranc,$db);
                        $insurance_row=DB_fetch_assoc($query_insurance);
                      ?>
                        <td align="center"><strong>14</strong></td>
                        <input type="hidden" name="insurance_perticuler_id[]" value="<?php echo $insurance_row['id']; ?>"/>
                        <input type="hidden" name="insurance_perticuler[]"  autocomplete="off" value="16"/>
                        <td align="left"><p style="padding:0 5px; margin:0;">Interest Accrued on NSC (Reinvested)</p></td>
                        <td><input type="text" name="insurance_amount[]" id="insurance_5" onkeyup="sum_insurance(this.value)"  value="<?php echo $insurance_row['amount'] ?>"/></td>
                        <td><p style="padding:0 5px; margin:0;">Self only</p></td>
                      </tr>
                      <tr>
                      <?php 
                        $sql_insuranc="Select  * from hr_declaration_insurance where declaration_particulars_id=17 and declaration_head_id='".$id."'";
                        $query_insurance=DB_query($sql_insuranc,$db);
                        $insurance_row=DB_fetch_assoc($query_insurance);
                      ?>
                        <td align="center"><strong>15</strong></td>
                        <input type="hidden" name="insurance_perticuler_id[]" value="<?php echo $insurance_row['id']; ?>"/>
                        <input type="hidden" name="insurance_perticuler[]"  autocomplete="off" value="17"/>
                        <td align="left"><p style="padding:0 5px; margin:0;">Unit Linked Insurance Policy (ULIP)</p></td>
                        <td><input type="text" name="insurance_amount[]" id="insurance_6" onkeyup="sum_insurance(this.value)" value="<?php echo $insurance_row['amount'] ?>"/></td>
                        <td><p style="padding:0 5px; margin:0;">Self , Spouse &amp; Children only</p></td>
                      </tr>
                      <tr>
                      <?php 
                        $sql_insuranc="Select  * from hr_declaration_insurance where declaration_particulars_id=18 and declaration_head_id='".$id."'";
                        $query_insurance=DB_query($sql_insuranc,$db);
                        $insurance_row=DB_fetch_assoc($query_insurance);
                      ?>

                        <td align="center"><strong>16</strong></td>
                        <input type="hidden" name="insurance_perticuler_id[]" value="<?php echo $insurance_row['id']; ?>"/>
                        <input type="hidden" name="insurance_perticuler[]"  autocomplete="off" value="18"/>
                        <td align="left"><p style="padding:0 5px; margin:0;">ELSS or a Specified Tax Saver Plan<br>(Lock in period of 3 years)</p></td>
                        <td><input type="text" name="insurance_amount[]" id="insurance_7" onkeyup="sum_insurance(this.value)" value="<?php echo $insurance_row['amount'] ?>"/></td>
                        <td><p style="padding:0 5px; margin:0;">Self only</p></td>
                      </tr>
                      <tr>
                      <?php 
                        $sql_insuranc="Select  * from hr_declaration_insurance where declaration_particulars_id=19 and declaration_head_id='".$id."'";
                        $query_insurance=DB_query($sql_insuranc,$db);
                        $insurance_row=DB_fetch_assoc($query_insurance);
                      ?>
                        <td align="center"><strong>17</strong></td>
                        <input type="hidden" name="insurance_perticuler_id[]" value="<?php echo $insurance_row['id']; ?>"/>
                        <input type="hidden" name="insurance_perticuler[]"  autocomplete="off" value="19"/>
                        <td align="left"><p style="padding:0 5px; margin:0;">Payment of Tuition fees for Children<br>(Max 2 Children) for Full Time Education only.</p></td>
                        <td><input type="text" name="insurance_amount[]" id="insurance_8" onkeyup="sum_insurance(this.value)"  value="<?php echo $insurance_row['amount'] ?>"/></td>
                        <td><p style="padding:0 5px; margin:0;">Two children only</p></td>
                      </tr>
                      <tr>
                      <?php 
                        $sql_insuranc="Select  * from hr_declaration_insurance where declaration_particulars_id=20 and declaration_head_id='".$id."'";
                        $query_insurance=DB_query($sql_insuranc,$db);
                        $insurance_row=DB_fetch_assoc($query_insurance);
                      ?>
                        <td align="center"><strong>18</strong></td>
                        <input type="hidden" name="insurance_perticuler_id[]" value="<?php echo $insurance_row['id']; ?>"/>
                        <input type="hidden" name="insurance_perticuler[]"  autocomplete="off" value="20"/>
                        <td align="left"><p style="padding:0 5px; margin:0;">Principal repayment of Housing Loan</p></td>
                        <td><input type="text" name="insurance_amount[]" id="insurance_9" onkeyup="sum_insurance(this.value)" value="<?php echo $insurance_row['amount'] ?>"/></td>
                        <td><p style="padding:0 5px; margin:0;">Self &amp; Joint a/c holder</p></td>
                      </tr>
                      <tr>
                      <?php 
                        $sql_insuranc="Select  * from hr_declaration_insurance where declaration_particulars_id=21 and declaration_head_id='".$id."'";
                        $query_insurance=DB_query($sql_insuranc,$db);
                        $insurance_row=DB_fetch_assoc($query_insurance);
                      ?>
                        <td align="center"><strong>19</strong></td>
                        <input type="hidden" name="insurance_perticuler_id[]" value="<?php echo $insurance_row['id']; ?>"/>
                        <input type="hidden" name="insurance_perticuler[]"  autocomplete="off" value="21"/>
                        <td align="left"><p style="padding:0 5px; margin:0;">Registration charges incurred for Buying House (I year Only)</p></td>
                        <td><input type="text" name="insurance_amount[]" id="insurance_10" onkeyup="sum_insurance(this.value)" value="<?php echo $insurance_row['amount'] ?>"/></td>
                        <td><p style="padding:0 5px; margin:0;">Self only</p></td>
                      </tr>
                      <tr>
                      <?php 
                        $sql_insuranc="Select  * from hr_declaration_insurance where declaration_particulars_id=22 and declaration_head_id='".$id."'";
                        $query_insurance=DB_query($sql_insuranc,$db);
                        $insurance_row=DB_fetch_assoc($query_insurance);
                      ?>
                        <td align="center"><strong>20</strong></td>
                        <input type="hidden" name="insurance_perticuler_id[]" value="<?php echo $insurance_row['id']; ?>"/>
                        <input type="hidden" name="insurance_perticuler[]"  autocomplete="off"  autocomplete="off" value="22"/>
                        <td align="left"><p style="padding:0 5px; margin:0;">Scheduled Bank Fixed Deposit for 5 Years &amp; above</p></td>
                        <td><input type="text" name="insurance_amount[]"  autocomplete="off" id="insurance_11" onkeyup="sum_insurance(this.value)"  value="<?php echo $insurance_row['amount'] ?>"/></td>
                        <td rowspan="2"><p style="padding:0 5px; margin:0;">Self only, Stipulated Bank Stamp Required Marked as "for Income Tax purpose only"</p></td>
                      </tr>
                      <tr>
                      <?php 
                        $sql_insuranc="Select  * from hr_declaration_insurance where declaration_particulars_id=23 and declaration_head_id='".$id."'";
                        $query_insurance=DB_query($sql_insuranc,$db);
                        $insurance_row=DB_fetch_assoc($query_insurance);
                      ?>
                        <td align="center"><strong>21</strong></td>
                        <input type="hidden" name="insurance_perticuler_id[]" value="<?php echo $insurance_row['id']; ?>"/>
                        <input type="hidden" name="insurance_perticuler[]" value="23"/>
                        <td align="left"><p style="padding:0 5px; margin:0;">Term Deposit for  5years &amp; above</p></td>
                        <td><input type="text"  name="insurance_amount[]" insurance_perticuler id="insurance_12" onkeyup="sum_insurance(this.value)"  value="<?php echo $insurance_row['amount'] ?>"/></td>
                      </tr>
                      <tr>
                        <td align="center"></td>
                        <td align="left"><strong>TOTAL</strong></td>
                        <td align="center"></td>
                        <td><input type="text" name="insurance_total_amount" value="<?php echo $insurance_total; ?>"/></td>
                        <td valign="top"><p style="padding:0 5px; margin:0;">(@) Enter the total amount in below declaration.</p></td>
                      </tr>
                      <tr><td colspan="5" style="text-align:center;">
                          <input type="button" name="Back"  class="search" id="c5" onClick="cat_show('cat_5', 'c5');" value="Back">
                        <input type="button" name="next"  class="search" id="c7" onClick="cat_show('cat_7', 'c7');" value="Next"></td></tr> 
                  </table>
                </div>
                <div id="cat_7" style="display:none; border-top:#808080 2px solid;" class="cat">
                <h3></h3>
                  <table width="100%" border="0" cellspacing="0" cellpadding="3" style="border:#808080 1px solid;">
                      <tr>
                        <td align="left" colspan="4" style="border-top:#c1c1c1 1px solid;"><p>It is hereby declared and confirmed that in view of above I am entitled to deduction of Rs.<input type="text" style="float:none; border-bottom:#000000 1px solid; border-top:0; border-left:0; border-right:0; width:10%; height:16px; background:#fff;" name="tot_ded" value="<?php echo $tot_ded; ?>" /> (@)  from my income chargeable under the head salary and accordingly it be considered while deducting the tax at source. It is hereby further declared and confirmed that in the event of any shortfall in my depositing or furnishing any of the above stated financial information  and in consequence thereof if any shortfall in deduction of tax at source is arising by M/s Corona Remedies Pvt.Ltd and if M/s Corona Remedies Pvt.Ltd has to suffer any loss of whatsoever nature under provisions of the Income tax Act, 1961 I shall indemnify the said loss to M/s Corona Remedies Pvt.Ltd immediately on I being called upon by M/s Corona Remedies Pvt. Ltd.</p></td>
                      </tr>
                      <tr>
                        <td width="10%" align="center"><strong>Place</strong></td>
                        <td width="30%" align="left"><input type="text" name="place" value="<?php echo $place; ?>"/></td>
                        <td width="32%"></td>
                        <td align="right">
                        <div id="cat-img">
                          <div class="cat-img">
                            <?php 
                                if($signature!=""){
                                  ?>
                                  <img src="uploaded_docs/HR/sign_image/<?php echo $signature; ?>" height="60" />
                              <?php
                                }
                            ?>
                          </div>
                        </div><input type="file" name="signature" width="60%" style="float:left; margin-top:5px;" /></td>
                      </tr>
                      <tr>
                        <td align="center"><strong>Date</strong></td>
                        <td align="left"><input type="text" class="datepicker" name="date" value="<?php echo ConvertSQLDate($date); ?>"/></td>
                        <td></td>
                        <td align="center"><strong>Signature</strong></td>
                      </tr>
                      <tr>
                        <td align="left" colspan="4"><strong>Guidelines to FILL</strong><br>
                        <ol>
                          <li><strong>Metro City -</strong> Mumbai / Delhi / Calcutta / Chennai</li>
                          <li><strong>Non Metro City -</strong> All Other Cities</li>
                          <li>Please fill in and submit the same along with the Supporting documents</li>
                          <li>Provisional Loan Certificate for House from Banker - must be submitted in respect All the properties declared by employee in the above table</li>
                          <li>Any change in the format or deduction matter will be circulated seperately, if required.</li>
                        </ol></td>
                      </tr>
                      <tr>
                        <td style="text-align:center;" colspan="4" height="60" valign="middle">
                           <input type="button" name="Back"  class="search" id="c6" onClick="cat_show('cat_6', 'c6');" value="Back">
                          <input type="submit" class="search" onclick="return valid()"  name="update" onclick="" value="Update"  /></td>
                        <!-- onclick="hpd_edit();" -->
                      </tr>
                  </table>

               </div>
              </form>
	</div>
</div>
</div>
</div>