<div class="content">
	<div class="widget">
		<div class="widget-header">
			<h3>Loan Applicant</h3>
		</div>
		<div class="widget-content">
			<ul class="nav nav-tabs nav-tabs-custom-colored" role="tablist">
				<li class="active"><a href="#colored21" role="tab" data-toggle="tab" class="loanApp"><i class="fa fa-user"></i> Home</a></li>
				<li><a href="#colored22" role="tab" data-toggle="tab" class="loanApp"><i class="fa fa-cog"></i> Address</a></li>
				<li><a href="#colored23" role="tab" data-toggle="tab" class="loanApp"><i class="fa fa-cog"></i> Salaried</a></li>
				<li><a href="#colored24" role="tab" data-toggle="tab" class="loanApp"><i class="fa fa-cog"></i> Coapplicant</a></li>
				<li><a href="#colored25" role="tab" data-toggle="tab" class="loanApp"><i class="fa fa-cog"></i> Guarantor</a></li>
			</ul>
			<form role="form" id="loanapplicant">	
<input type="hidden" id="editId" name="editId" value="<?php echo e($data['lacc_id']); ?>">
				<div class="tab-content">
					
					<div class="tab-pane fade in active" id="colored21">
						
						<!-- HORIZONTAL FORM -->
						<div class="widget">
							<div class="widget-header">
							<h3><i class="fa fa-edit"></i> Profile</h3></div>
							<div class="widget-content">
								<div class="row">
									<div class="col-md-6 form-horizontal">
										<div class="form-group">
											<label for="lacc_no" class="col-sm-4 control-label">Application No.</label>
											<div class="col-sm-8">
												<input type="text" class="form-control" id="lacc_no" name="lacc_no" placeholder="Application No." readonly value="<?php echo $data['lacc_no']; ?>">
											</div>
										</div>
										<div class="form-group">
											<label for="br_id" class="col-sm-4 control-label">Branch</label>
											<div class="col-sm-8">
												<select id="br_id" name="br_id" class="form-control">
													<option value="">Select Branch</option>
												</select>
											</div>
										</div>
										<div class="form-group">
											<label for="lacc_custname" class="col-sm-4 control-label">Customer Name</label>
											<div class="col-sm-8">
												<input type="text" class="form-control" id="lacc_custname" name="lacc_custname" placeholder="Customer Name.">
											</div>
										</div>
										<div class="form-group">
											<label for="lacc_swdof" class="col-sm-4 control-label">Son/Wife/Daughter of</label>
											<div class="col-sm-8">
												<input type="text" class="form-control" id="lacc_swdof" name="lacc_swdof" placeholder="Son/Wife/Daughter of">
											</div>
										</div>
										<div class="form-group">
											<label for="lacc_pan" class="col-sm-4 control-label">PAN Card No</label>
											<div class="col-sm-8">
												<input type="text" class="form-control" id="lacc_pan" name="lacc_pan" placeholder="PAN Card No.">
											</div>
										</div>
									</div>
									<div class="col-md-6 form-horizontal">
										<div class="form-group">
											<label for="lacc_chitno" class="col-sm-4 control-label">Chit No.</label>
											<div class="col-sm-8">
												<input type="text" class="form-control" id="lacc_chitno" name="lacc_chitno" placeholder="Chit No.">
											</div>
										</div>
										<div class="form-group">
											<label for="lacc_agrno" class="col-sm-4 control-label">Agr No.</label>
											<div class="col-sm-8">
												<input type="text" class="form-control" id="lacc_agrno" name="lacc_agrno" placeholder="Agr No.">
											</div>
										</div>
										<div class="form-group">
											<label for="lacc_dob" class="col-sm-4 control-label">DOB.</label>
											<div class="col-sm-8">
												<input type="date" class="form-control" id="lacc_dob" name="lacc_dob" placeholder="DOB." onkeyup="ageCount()" onchange="ageCount()">
												<span id="ageerror"></span>
											</div>
										</div>
										<div class="form-group">
											<label for="lacc_age" class="col-sm-4 control-label">Age.</label>
											<div class="col-sm-8">
												<input type="text" class="form-control" id="lacc_age" name="lacc_age" placeholder="Age" readonly >
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
						<!-- END HORIZONTAL FORM -->
						<!-- HORIZONTAL FORM -->
						<div class="widget">
							<div class="widget-header">
							<h3><i class="fa fa-edit"></i> Reference & Security</h3></div>
							<div class="widget-content">
								<div class="row">
									<div class="col-md-12 form-horizontal">
										<div class="form-group">
											<label for="lacc_oldrefno" class="col-sm-4 control-label">Old Reference No.</label>
											
											<div class="col-sm-8">
												<?php if($data['lacc_id']==''): ?>
												<input type="text" class="form-control" id="lacc_oldrefno" name="lacc_oldrefno" placeholder="Old Reference No." onkeyup="referencenumberFind()" style="text-transform: uppercase;">
												<?php else: ?>
												<input type="text" class="form-control" id="lacc_oldrefnos" name="lacc_oldrefno" placeholder="Old Reference No." onfocus="">
												<?php endif; ?>
											</div>
										</div>
										<div class="form-group">
											<label for="lacc_securityentry" class="col-sm-4 control-label">Security Entry</label>
											<div class="col-sm-8">
												<textarea id="lacc_securityentry" name="lacc_securityentry" class="form-control"  placeholder="Security Entry"></textarea>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
						<!-- END HORIZONTAL FORM -->
					</div>
					<div class="tab-pane fade" id="colored22">
						<!-- HORIZONTAL FORM -->
						<div class="row">
							
							<div class="col-md-6">
								<div class="widget">
									<div class="widget-header">
									<h3><i class="fa fa-edit"></i> Residence Address:</h3></div>
									<div class="widget-content">
										<div class="row">
											<div class="col-md-12 form-horizontal">
												<div class="form-group">
													<label for="lacc_resaddr_addr" class="col-sm-4 control-label">Address</label>
													<div class="col-sm-8">
														<textarea class="form-control" id="lacc_resaddr_addr" name="lacc_resaddr_addr" placeholder="Address"></textarea>
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_resaddr_city" class="col-sm-4 control-label">City</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_resaddr_city" name="lacc_resaddr_city" placeholder="City">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_resaddr_pin" class="col-sm-4 control-label">PIN Code</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_resaddr_pin" name="lacc_resaddr_pin" placeholder="PIN Code">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_resaddr_landmark" class="col-sm-4 control-label">Landmark</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_resaddr_landmark" name="lacc_resaddr_landmark" placeholder="Landmark">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_resaddr_fax" class="col-sm-4 control-label">FAX</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_resaddr_fax" name="lacc_resaddr_fax" placeholder="FAX">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_resaddr_mob" class="col-sm-4 control-label">Mobile No.</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_resaddr_mob" name="lacc_resaddr_mob" placeholder="Mobile No.">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_resaddr_tel" class="col-sm-4 control-label">Tel No.</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_resaddr_tel" name="lacc_resaddr_tel" placeholder="Telephone No.">
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<!-- REGISTRATION FORM WITH ICONS -->
								
								<div class="widget">
									<div class="widget-header">
									<h3><i class="fa fa-edit"></i> Company / Firm Name & Address:</h3></div>
									<div class="widget-content">
										<div class="row">
											<div class="col-md-12 form-horizontal">
												<div class="form-group">
													<label for="lacc_compaddr_addr" class="col-sm-4 control-label">Address</label>
													<div class="col-sm-8">
														<textarea class="form-control" id="lacc_compaddr_addr" name="lacc_compaddr_addr" placeholder="Address"></textarea>
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_compaddr_city" class="col-sm-4 control-label">City</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_compaddr_city" name="lacc_compaddr_city" placeholder="City">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_compaddr_pin" class="col-sm-4 control-label">PIN Code</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_compaddr_pin" name="lacc_compaddr_pin" placeholder="PIN Code">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_compaddr_landmark" class="col-sm-4 control-label">Landmark</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_compaddr_landmark" name="lacc_compaddr_landmark" placeholder="Landmark">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_compaddr_fax" class="col-sm-4 control-label">FAX</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_compaddr_fax" name="lacc_compaddr_fax" placeholder="FAX">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_compaddr_mob" class="col-sm-4 control-label">Mobile No.</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_compaddr_mob" name="lacc_compaddr_mob" placeholder="Mobile No.">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_compaddr_tel" class="col-sm-4 control-label">Tel No.</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_compaddr_tel" name="lacc_compaddr_tel" placeholder="Telephone No.">
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>
								<!-- END REGISTRATION FORM WITH ICONS -->
							</div>
							
							<div class="col-md-12">
								<!-- REGISTRATION FORM WITH ICONS -->								
								<div class="widget">
									<div class="widget-header">
									<h3><i class="fa fa-edit"></i> Permanent Address:</h3></div>
									<div class="widget-content">
										<div class="row">
											<div class="col-md-12 form-horizontal">
												<div class="form-group">
													<label for="lacc_permaddr_addr" class="col-sm-4 control-label">Address</label>
													<div class="col-sm-8">
														<textarea class="form-control" id="lacc_permaddr_addr" name="lacc_permaddr_addr" placeholder="Address"></textarea>
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_permaddr_city" class="col-sm-4 control-label">City</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_permaddr_city" name="lacc_permaddr_city" placeholder="City">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_permaddr_pin" class="col-sm-4 control-label">PIN Code</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_permaddr_pin" name="lacc_permaddr_pin" placeholder="PIN Code">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_permaddr_landmark" class="col-sm-4 control-label">Landmark</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_permaddr_landmark" name="lacc_permaddr_landmark" placeholder="Landmark">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_permaddr_fax" class="col-sm-4 control-label">FAX</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_permaddr_fax" name="lacc_permaddr_fax" placeholder="FAX">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_permaddr_mob" class="col-sm-4 control-label">Mobile No.</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_permaddr_mob" name="lacc_permaddr_mob" placeholder="Mobile No.">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_permaddr_tel" class="col-sm-4 control-label">Tel No.</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_permaddr_tel" name="lacc_permaddr_tel" placeholder="Telephone No.">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_permaddr_chngresyesno" class="col-sm-4 control-label">Have You Changed Your residence/office after availment of earlier loan with us</label>
													<div class="col-sm-8">
														<select id="lacc_permaddr_chngresyesno" name="lacc_permaddr_chngresyesno" class="form-control">
															<option value="">Select</option>
															<option value="Yes">Yes</option>
															<option value="No">No</option>
														</select>
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>
								<!-- END REGISTRATION FORM WITH ICONS -->
							</div>							
						</div>
						<!-- END HORIZONTAL FORM -->
					</div>
					<div class="tab-pane fade" id="colored23">
						<!-- HORIZONTAL FORM -->
						<div class="row">
							
							<div class="col-md-12">
								<!-- REGISTRATION FORM WITH ICONS -->
								
								<div class="widget">
									<div class="widget-header"><h3><i class="fa fa-edit"></i> Job category:</h3></div>
									<div class="widget-content">
										<div class="row">
											<div class="col-md-12 form-horizontal">
												<div class="form-group">
													<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_jobcategory" value="Public Limited" class="form-control"><span><i></i>Public Limited</span></label>
													<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_jobcategory" value="Proprietorship" class="form-control"><span><i></i>Proprietorship</span></label>
													<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_jobcategory" value="Private Limited" class="form-control"><span><i></i>Private Limited</span></label>
													<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_jobcategory" value="Govt. / Public Sector" class="form-control"><span><i></i>Govt. / Public Sector</span></label>
													<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_jobcategory" value="Partnership" class="form-control"><span><i></i>Partnership</span></label>
												</div>					
											</div>
										</div>
									</div>
								</div>
								<!-- END REGISTRATION FORM WITH ICONS -->
							</div>
							<div class="col-md-3">
								<!-- REGISTRATION FORM WITH ICONS -->
								<div class="widget">
									<div class="widget-header"><h3><i class="fa fa-edit"></i> Gender:</h3></div>
									<div class="widget-content">
										<div class="row">
											<div class="col-md-12 form-horizontal">
												<div class="form-group">
													<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_gender" value="Male" class="form-control" checked><span><i></i>Male</span></label>
													<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_gender" value="Female" class="form-control"><span><i></i>Female</span></label>
												</div>					
											</div>
										</div>
									</div>
								</div>
								<!-- END REGISTRATION FORM WITH ICONS -->
							</div>
							<div class="col-md-3">
								<!-- REGISTRATION FORM WITH ICONS -->
								
								<div class="widget">
									<div class="widget-header"><h3><i class="fa fa-edit"></i> Marital status:</h3></div>
									<div class="widget-content">
										<div class="row">
											<div class="col-md-12 form-horizontal">
												<div class="form-group">
													<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_maritalst" value="Single" class="form-control"><span><i></i>Single</span></label>
													<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_maritalst" value="Married" class="form-control"><span><i></i>Married</span></label>
												</div>					
											</div>
										</div>
									</div>
								</div>
								<!-- END REGISTRATION FORM WITH ICONS -->
							</div>
							
							<div class="col-md-6">
								<!-- REGISTRATION FORM WITH ICONS -->
								
								<div class="widget">
									<div class="widget-header">
									<h3><i class="fa fa-edit"></i> Education:</h3></div>
									<div class="widget-content">
										<div class="row">
											<div class="col-md-12 form-horizontal">			
												<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_education" value="Matric" class="form-control"><span><i></i>Matric</span></label>
												<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_education" value="Under graduate" class="form-control"><span><i></i>Under graduate</span></label>
												<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_education" value="Graduate" class="form-control"><span><i></i>Graduate</span></label>
												<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_education" value="Post graduate" class="form-control"><span><i></i>Post graduate</span></label>	
												<br>&nbsp;
											</div>
										</div>
									</div>
								</div>
								<!-- END REGISTRATION FORM WITH ICONS -->
							</div>
							
							<div class="col-md-12">
								<div class="widget">
									<div class="widget-header">
									<h3><i class="fa fa-edit"></i> Job Detail:</h3></div>
									<div class="widget-content">
										<div class="row">
											<div class="col-md-12 form-horizontal">
												<div class="form-group">
													<label for="lacc_jobprofile_yrsatcurrentjob" class="col-sm-4 control-label">Years at Current Job</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_jobprofile_yrsatcurrentjob" name="lacc_jobprofile_yrsatcurrentjob" placeholder="Years at Current Job">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_jobprofile_department" class="col-sm-4 control-label">Department</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_jobprofile_department" name="lacc_jobprofile_department" placeholder="Department">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_jobprofile_designation" class="col-sm-4 control-label">Designation</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_jobprofile_designation" name="lacc_jobprofile_designation" placeholder="Designation">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_jobprofile_grossincomepm" class="col-sm-4 control-label">Gross Income(p.m)</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_jobprofile_grossincomepm" name="lacc_jobprofile_grossincomepm" placeholder="Gross Income per month">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_jobprofile_netincomepm" class="col-sm-4 control-label">Net Income (p.m)</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_jobprofile_netincomepm" name="lacc_jobprofile_netincomepm" placeholder="Net Income per month">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_jobprofile_otherincsrc" class="col-sm-4 control-label">Any Other Source Of Income</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_jobprofile_otherincsrc" name="lacc_jobprofile_otherincsrc" placeholder="Any Other Source Of Income">
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
							
							<div class="col-md-6">
								<!-- REGISTRATION FORM WITH ICONS -->
								<div class="widget">
									<div class="widget-header">
									<h3><i class="fa fa-edit"></i> If professional:</h3></div>
									<div class="widget-content">
										<div class="row">
											<div class="col-md-12 form-horizontal">			
												<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_profession" value="Doctor" class="form-control"><span><i></i>Doctor</span></label>
												<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_profession" value="CA" class="form-control"><span><i></i>CA</span></label>
												<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_profession" value="Engineer" class="form-control"><span><i></i>Engineer</span></label>
												<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_profession" value="Lawyer" class="form-control"><span><i></i>Lawyer</span></label>		
												<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_profession" value="MBA" class="form-control"><span><i></i>MBA</span></label>		
											</div>
											<div class="form-group">
												<label for="lacc_profession_other" class="col-sm-12 control-label"><hr>Others(Specify)</label>
												<div class="col-sm-12">
													<input type="text" class="form-control" id="lacc_profession_other" name="lacc_profession_other" placeholder="Any Other..">
												</div>
											</div>	
										</div>
									</div>
								</div>
								<!-- END REGISTRATION FORM WITH ICONS -->
							</div>
							
							
							<div class="col-md-6">
								<!-- REGISTRATION FORM WITH ICONS -->
								
								<div class="widget">
									<div class="widget-header">
									<h3><i class="fa fa-edit"></i> Residence:</h3></div>
									<div class="widget-content">
										<div class="row">
											<div class="col-md-12 form-horizontal">			
												<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_residencestatus" value="Owned" class="form-control"><span><i></i>Owned</span></label>
												<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_residencestatus" value="Rented" class="form-control"><span><i></i>Rented</span></label>
												<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_residencestatus" value="Leased" class="form-control"><span><i></i>Leased</span></label>
												<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_residencestatus" value="Company Leased" class="form-control"><span><i></i>Company Leased</span></label>	
											</div>
											<div class="form-group">
												<label for="lacc_monthlyrent" class="col-sm-12 control-label"><hr>IF Rented, Monthly Rent( Rs.)</label>
												<div class="col-sm-12">
													<input type="text" class="form-control" id="lacc_monthlyrent" name="lacc_monthlyrent" placeholder="IF Rented, Monthly Rent( Rs.)">
												</div>
											</div>	
										</div>
									</div>
								</div> 
								<!-- END REGISTRATION FORM WITH ICONS -->
							</div>

							<div class="col-md-6">
								<!-- REGISTRATION FORM WITH ICONS -->								
								<div class="widget">
									<div class="widget-header">
									<h3><i class="fa fa-edit"></i> Self Employed:</h3></div>
									<div class="widget-content">
										<div class="row">
											<div class="form-group">
												<label for="lacc_monthlyrent" class="col-sm-12 control-label">Nature Of Business</label>
												<div class="col-sm-12">
													<input type="text" class="form-control" id="lacc_selfempdet_natureofbusiness" name="lacc_selfempdet_natureofbusiness" placeholder="Nature Of Business">&nbsp;
												</div>
											</div>	
											<div class="form-group">
												<label for="lacc_monthlyrent" class="col-sm-12 control-label">Income (p.a)</label>
												<div class="col-sm-12">
													<input type="text" class="form-control" id="lacc_selfempdet_incomepa" name="lacc_selfempdet_incomepa" placeholder="Income (p.a)"><br>&nbsp;
												</div>
											</div>
											<div class="form-group">
												<label for="lacc_monthlyrent" class="col-sm-12 control-label">Years At Present Business</label>
												<div class="col-sm-12">
													<input type="text" class="form-control" id="lacc_selfempdet_yearsatpresentbusiness" name="lacc_selfempdet_yearsatpresentbusiness" placeholder="Years At Present Business">
												</div>
											</div>
										</div>
									</div>
								</div> 
								<!-- END REGISTRATION FORM WITH ICONS -->
							</div>

							
							<div class="col-md-6">
								<!-- REGISTRATION FORM WITH ICONS -->
								
								<div class="widget">
									<div class="widget-header">
									<h3><i class="fa fa-edit"></i> I own:</h3></div>
									<div class="widget-content">
										<div class="row">
											<div class="col-md-12 form-horizontal">	
												
												<label class="control-inline fancy-checkbox col-md-6"><input type="checkbox" id="lacc_ihave_Colour_Television" name="lacc_ihave[]" value="Colour Television" class="form-control"><span>Colour Television</span></label>
												
												<label class="control-inline fancy-checkbox col-md-6"><input type="checkbox" id="lacc_ihave_Two_Wheeler"name="lacc_ihave[]" value="Two Wheeler" class="form-control"><span>Two Wheeler</span></label>
												
												<label class="control-inline fancy-checkbox col-md-6"><input type="checkbox" id="lacc_ihave_Refrigerator" name="lacc_ihave[]" value="Refrigerator" class="form-control"><span>Refrigerator</span></label>
												
												<label class="control-inline fancy-checkbox col-md-6"><input type="checkbox" id="lacc_ihave_Car"name="lacc_ihave[]" value="Car" class="form-control"><span>Car</span></label>
												
												<label class="control-inline fancy-checkbox col-md-6"><input type="checkbox" id="lacc_ihave_Washing_Machine" name="lacc_ihave[]" value="Washing Machine" class="form-control"><span>Washing Machine</span></label>
												
												<label class="control-inline fancy-checkbox col-md-6"><input type="checkbox" id="lacc_ihave_PC"name="lacc_ihave[]" value="PC" class="form-control"><span>PC</span></label>
												
												<label class="control-inline fancy-checkbox col-md-6"><input type="checkbox" id="lacc_ihave_Audio_System"name="lacc_ihave[]" value="Audio System" class="form-control"><span>Audio System</span></label>
												
												<label class="control-inline fancy-checkbox col-md-6"><input type="checkbox" id="lacc_ihave_AC" name="lacc_ihave[]" value="AC" class="form-control"><span>AC</span></label>
												
												<label class="control-inline fancy-checkbox col-md-6"><input type="checkbox" id="lacc_ihave_Microwave_Oven"name="lacc_ihave[]" value="Microwave Oven" class="form-control"><span>Microwave Oven</span></label>
												
												<input type="hidden" id="lacc_ihave_Default" name="lacc_ihave[]" value="Default" class="form-control" >
											</div>
										</div>
									</div>
								</div>								
								<!-- END REGISTRATION FORM WITH ICONS -->
							</div>															
							
							<div class="col-md-12">
								<!-- REGISTRATION FORM WITH ICONS -->
								
								<div class="widget">
									<div class="widget-header">
									<h3><i class="fa fa-edit"></i> Bank account details:</h3></div>
									<div class="widget-content">
										<div class="row">
											<div class="col-md-12 form-horizontal">
												<div class="form-group">
													<label for="lacc_bankac_bankname" class="col-sm-4 control-label">Name Of The Bank</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_bankac_bankname" name="lacc_bankac_bankname" placeholder="Name Of The Bank">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_bankac_branch" class="col-sm-4 control-label">Branch</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_bankac_branch" name="lacc_bankac_branch" placeholder="Branch">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_bankac_accountno" class="col-sm-4 control-label">Account No</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_bankac_accountno" name="lacc_bankac_accountno" placeholder="Account No">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_bankac_accountsince" class="col-sm-4 control-label">Account Since</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_bankac_accountsince" name="lacc_bankac_accountsince" placeholder="Account Since">
													</div>
												</div>
												
												<div class="form-group"> 
													<label class="col-sm-4 control-label">Account type</label>
													<div class="col-sm-8"><label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_bankac_accounttype" value="Savings bank a/c" class="form-control"><span><i></i>Savings bank a/c</span></label><label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_bankac_accounttype" value="Current a/c" class="form-control"><span><i></i>Current a/c</span></label></div>
												</div>
											</div>
										</div>
									</div>
								</div>
								<!-- END REGISTRATION FORM WITH ICONS -->
							</div>
							
						</div>
						<!-- END HORIZONTAL FORM -->
					</div>
					<div class="tab-pane fade" id="colored24">
						<!-- HORIZONTAL FORM -->
						
						<div class="row">
							<div class="col-md-6">
								<div class="widget">
									<div class="widget-header">
									<h3><i class="fa fa-edit"></i> Coapplicant:</h3></div>
									<div class="widget-content">
										<div class="row">
											<div class="col-md-12 form-horizontal">
												<div class="form-group">
													<label for="lacc_coapplicantprofile_name" class="col-sm-4 control-label">Name</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_coapplicantprofile_name" name="lacc_coapplicantprofile_name" placeholder="Name">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_coapplicantprofile_compname" class="col-sm-4 control-label">Name of the company</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_coapplicantprofile_compname" name="lacc_coapplicantprofile_compname" placeholder="Name of the company">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_coapplicantprofile_monthlyincome" class="col-sm-4 control-label">Gross Monthly Income</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_coapplicantprofile_monthlyincome" name="lacc_coapplicantprofile_monthlyincome" placeholder="Gross Monthly Income">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_coapplicantprofile_netincome" class="col-sm-4 control-label">Net income</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_coapplicantprofile_netincome" name="lacc_coapplicantprofile_netincome" placeholder="Net income">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_coapplicantprofile_officetel" class="col-sm-4 control-label">Office tel</label>
													<div class="col-sm-8">
														<input type="text" class="form-control" id="lacc_coapplicantprofile_officetel" name="lacc_coapplicantprofile_officetel" placeholder="Office tel">
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<!-- REGISTRATION FORM WITH ICONS -->
								
								<div class="widget">
									<div class="widget-header"><h3><i class="fa fa-edit"></i> Relationship:</h3></div>
									<div class="widget-content">
										<div class="row">
											<div class="col-md-12 form-horizontal">
												<div class="form-group">						
													<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_coapplicantprofile_relationship" value="Father" class="form-control"><span><i></i>Father</span></label>
													<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_coapplicantprofile_relationship" value="Mother" class="form-control"><span><i></i>Mother</span></label>
													<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_coapplicantprofile_relationship" value="Spouse" class="form-control"><span><i></i>Spouse</span></label>
													<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_coapplicantprofile_relationship" value="Son" class="form-control"><span><i></i>Son</span></label>
													<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_coapplicantprofile_relationship" value="Others" class="form-control"><span><i></i>Others</span></label>
												</div>					
											</div>
										</div>
									</div>
								</div>
								<!-- END REGISTRATION FORM WITH ICONS -->
							</div>
							<div class="col-md-3">
								<!-- REGISTRATION FORM WITH ICONS -->
								<div class="widget">
									<div class="widget-header"><h3><i class="fa fa-edit"></i> Qualification:</h3></div>
									<div class="widget-content">
										<div class="row">
											<div class="col-md-12 form-horizontal">
												<div class="form-group">
													<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_coapplicantprofile_qualification" value="Graduate"  ><span><i></i>Graduate</span></label>
													<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_coapplicantprofile_qualification" value="Under graduate" ><span><i></i>Under graduate</span></label>
													<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_coapplicantprofile_qualification" value="Post graduate" ><span><i></i>Post graduate</span></label>
												</div>					
											</div>
										</div>
									</div>
								</div>
								<!-- END REGISTRATION FORM WITH ICONS -->
							</div>
							<div class="col-md-3">
								<!-- REGISTRATION FORM WITH ICONS -->
								
								<div class="widget">
									<div class="widget-header"><h3><i class="fa fa-edit"></i> Occupation:</h3></div>
									<div class="widget-content">
										<div class="row">
											<div class="col-md-12 form-horizontal">
												<div class="form-group">
													<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_coapplicantprofile_occupation" value="Self employed" ><span><i></i>Self employed</span></label>
													<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_coapplicantprofile_occupation" value="Salaried"><span><i></i>Salaried</span></label><br>
													<label class="control-inline fancy-radio custom-color-green"><input type="radio" name="lacc_coapplicantprofile_occupation" value="Others" ><span><i></i>Others</span></label>
												</div>					
											</div>
										</div>
									</div>
								</div>
								<!-- END REGISTRATION FORM WITH ICONS -->
								
							</div>
							
							
							<div class="col-md-12">
								<!-- REGISTRATION FORM WITH ICONS -->
								
								<div class="widget">
				<div class="widget-header"><h3><i class="fa fa-edit"></i> Loan:</h3></div>
									<div class="widget-content">
										<div class="row">
											<div class="col-md-6 form-horizontal">
				<div class="form-group">
					<label for="lacc_loanamt" class="col-sm-5 control-label">Loan type</label>
					<div class="col-sm-7">						
						<select id="ltyp_id" name="ltyp_id" class="form-control" onchange="loanloantypedetails()">
							<option value="">Select Loan type</option>
						</select>
						<input type="hidden" name="ltyp_loantype" id="ltyp_loantype">
					</div>
				</div>
				<div class="form-group">
					<label for="lacc_loanamt" class="col-sm-5 control-label">1. Loan Amount (Rs.)</label>
					<div class="col-sm-7">
						<input type="text" class="form-control" id="lacc_loanamt" name="lacc_loanamt" placeholder="1. Loan Amount (Rs.)">
					</div>
				</div>
				<div class="form-group">
					<label for="lacc_tenor" class="col-sm-5 control-label">2. Tenor (Months)</label>
					<div class="col-sm-7">
						<input type="text" class="form-control" id="lacc_tenor" name="lacc_tenor" placeholder="2. Tenor (Months)">
					</div>
				</div>
											</div>
											<div class="col-md-6 form-horizontal">
				<div class="form-group">
					<label for="lacc_ufc" class="col-sm-5 control-label">Delay Payment Fee (%)</label>
					<div class="col-sm-7">				
						<select id="dpmt_id" name="dpmt_id" class="form-control">
							<option value="">Select Delay Payment Fee</option>
						</select>
					</div>
				</div>
				<div class="form-group">
					<label for="lacc_intrate" class="col-sm-5 control-label">3. Interest Rate (%)</label>
					<div class="col-sm-7">
						<input type="text" class="form-control" id="lacc_intrate" name="lacc_intrate" placeholder="3. Interest Rate (Flat.)">
					</div>
				</div>
				<div class="form-group">
					<label for="lacc_ufc" class="col-sm-5 control-label">4. UFC (Rs.)</label>
					<div class="col-sm-7">
						<input type="text" class="form-control" id="lacc_ufc" name="lacc_ufc" placeholder="4. UFC (Rs.)">
					</div>
				</div>
											</div>
										</div>
									</div>
								</div>
								<!-- END REGISTRATION FORM WITH ICONS -->
							</div>
							
							
							<div class="col-md-6">
								<!-- REGISTRATION FORM WITH ICONS -->								
								<div class="widget">
									<div class="widget-header">
									<h3><i class="fa fa-edit"></i> Reference 1:</h3></div>
									<div class="widget-content">
										<div class="row">
											<div class="col-md-12 form-horizontal">
												<div class="form-group">
													<label for="lacc_reference1_name" class="col-sm-5 control-label">Name</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_reference1_name" name="lacc_reference1_name" placeholder="Name">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_reference1_relationship" class="col-sm-5 control-label">Relationship With Applicant</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_reference1_relationship" name="lacc_reference1_relationship" placeholder="Relationship With Applicant">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_reference1_address" class="col-sm-5 control-label">Address</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_reference1_address" name="lacc_reference1_address" placeholder="Address">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_reference1_tel" class="col-sm-5 control-label">Tel(Office).</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_reference1_tel" name="lacc_reference1_tel" placeholder="Tel(Office)">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_reference1_res" class="col-sm-5 control-label">(Res)</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_reference1_res" name="lacc_reference1_res" placeholder="(Res)">
													</div>
												</div>
											</div>
											
										</div>
									</div>
								</div>
								<!-- END REGISTRATION FORM WITH ICONS -->
							</div>
							
							<div class="col-md-6">
								<!-- REGISTRATION FORM WITH ICONS -->
								
								<div class="widget">
									<div class="widget-header">
									<h3><i class="fa fa-edit"></i> Reference 2:</h3></div>
									<div class="widget-content">
										<div class="row">
											<div class="col-md-12 form-horizontal">
												<div class="form-group">
													<label for="lacc_reference2_name" class="col-sm-5 control-label">Name</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_reference2_name" name="lacc_reference2_name" placeholder="Name">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_reference2_relationship" class="col-sm-5 control-label">Relationship With Applicant</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_reference2_relationship" name="lacc_reference2_relationship" placeholder="Relationship With Applicant">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_reference2_address" class="col-sm-5 control-label">Address</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_reference2_address" name="lacc_reference2_address" placeholder="Address">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_reference2_tel" class="col-sm-5 control-label">Tel(Office).</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_reference2_tel" name="lacc_reference2_tel" placeholder="Tel(Office).">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_reference2_res" class="col-sm-5 control-label">(Res)</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_reference2_res" name="lacc_reference2_res" placeholder="(Res)">
													</div>
												</div>
											</div>
											
										</div>
									</div>
								</div>
								<!-- END REGISTRATION FORM WITH ICONS -->
							</div>
							
							
						</div>
						<!-- END HORIZONTAL FORM -->
					</div>
					<div class="tab-pane fade" id="colored25">
						<!-- HORIZONTAL FORM -->
						<div class="row">
							
							
							<div class="col-md-6">
								<!-- REGISTRATION FORM WITH ICONS -->
								
								<div class="widget">
									<div class="widget-header">
									<h3><i class="fa fa-edit"></i> Guarantor 1:</h3></div>
									<div class="widget-content">
										<div class="row">
											<div class="col-md-12 form-horizontal">
												<div class="form-group">
													<label for="lacc_guarantor1_name" class="col-sm-5 control-label">Name</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_guarantor1_name" name="lacc_guarantor1_name" placeholder="Name">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_guarantor1_relationship" class="col-sm-5 control-label">Relationship With Applicant</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_guarantor1_relationship" name="lacc_guarantor1_relationship" placeholder="Relationship With Applicant">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_guarantor1_address" class="col-sm-5 control-label">Address</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_guarantor1_address" name="lacc_guarantor1_address" placeholder="Address">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_guarantor1_tel" class="col-sm-5 control-label">Tel(Office).</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_guarantor1_tel" name="lacc_guarantor1_tel" placeholder="Tel(Office)">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_guarantor1_res" class="col-sm-5 control-label">(Res)</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_guarantor1_res" name="lacc_guarantor1_res" placeholder="(Res)">
													</div>
												</div>
											</div>
											
										</div>
									</div>
								</div>
								<!-- END REGISTRATION FORM WITH ICONS -->
							</div>
							
							<div class="col-md-6">
								<!-- REGISTRATION FORM WITH ICONS -->
								
								<div class="widget">
									<div class="widget-header">
									<h3><i class="fa fa-edit"></i> Guarantor 2:</h3></div>
									<div class="widget-content">
										<div class="row">
											<div class="col-md-12 form-horizontal">
												<div class="form-group">
													<label for="lacc_guarantor2_name" class="col-sm-5 control-label">Name</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_guarantor2_name" name="lacc_guarantor2_name" placeholder="Name">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_guarantor2_relationship" class="col-sm-5 control-label">Relationship With Applicant</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_guarantor2_relationship" name="lacc_guarantor2_relationship" placeholder="Relationship With Applicant">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_guarantor2_address" class="col-sm-5 control-label">Address</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_guarantor2_address" name="lacc_guarantor2_address" placeholder="Address">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_guarantor2_tel" class="col-sm-5 control-label">Tel(Office).</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_guarantor2_tel" name="lacc_guarantor2_tel" placeholder="Tel(Office).">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_guarantor2_res" class="col-sm-5 control-label">(Res)</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_guarantor2_res" name="lacc_guarantor2_res" placeholder="(Res)">
													</div>
												</div>
											</div>
											
										</div>
									</div>
								</div>
								<!-- END REGISTRATION FORM WITH ICONS -->
							</div>
							
							
							
							<div class="col-md-6">
								<!-- REGISTRATION FORM WITH ICONS -->
								
								<div class="widget">
									<div class="widget-header">
									<h3><i class="fa fa-edit"></i> Guarantor 3:</h3></div>
									<div class="widget-content">
										<div class="row">
											<div class="col-md-12 form-horizontal">
												<div class="form-group">
													<label for="lacc_guarantor3_name" class="col-sm-5 control-label">Name</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_guarantor3_name" name="lacc_guarantor3_name" placeholder="Name">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_guarantor3_relationship" class="col-sm-5 control-label">Relationship With Applicant</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_guarantor3_relationship" name="lacc_guarantor3_relationship" placeholder="Relationship With Applicant">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_guarantor3_address" class="col-sm-5 control-label">Address</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_guarantor3_address" name="lacc_guarantor3_address" placeholder="Address">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_reference3_tel" class="col-sm-5 control-label">Tel(Office).</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_guarantor3_tel" name="lacc_guarantor3_tel" placeholder="Tel(Office)">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_reference3_res" class="col-sm-5 control-label">(Res)</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_guarantor3_res" name="lacc_guarantor3_res" placeholder="(Res)">
													</div>
												</div>
											</div>
											
										</div>
									</div>
								</div>
								<!-- END REGISTRATION FORM WITH ICONS -->
							</div>
							
							
							<div class="col-md-6">
								<!-- REGISTRATION FORM WITH ICONS -->
								
								<div class="widget">
									<div class="widget-header">
									<h3><i class="fa fa-edit"></i> Chit Lien Security/ Entry Amt</h3></div>
									<div class="widget-content">
										<div class="row">
											<div class="col-md-12 form-horizontal">
												<div class="form-group">
													<label for="lacc_chitrefno" class="col-sm-5 control-label">Chit Reference No</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_chitrefno" name="lacc_chitrefno" placeholder="Chit Reference No.">
													</div>
												</div>
												<div class="form-group">
													<label for="lacc_chitbrid" class="col-sm-5 control-label">Branch</label>
													<div class="col-sm-7">
												<select id="lacc_chitbrid" name="lacc_chitbrid" class="form-control">
													<option value="0">Select Chit Branch</option>
												</select>
													</div>
												</div> 
												<div class="form-group">
													<label for="lacc_paidupamt" class="col-sm-5 control-label">Paid Up Amount</label>
													<div class="col-sm-7">
														<input type="text" class="form-control" id="lacc_paidupamt" name="lacc_paidupamt" placeholder="Paid Up Amount">
													</div>
												</div>
											</div>
											
										</div>
									</div>
								</div>
								<!-- END REGISTRATION FORM WITH ICONS -->
							</div>
							
						</div>
						<!-- END HORIZONTAL FORM -->
					</div>								
				</div>
				<!-- HORIZONTAL FORM -->
				<div class="widget">
					<div class="widget-header"><center>
						<?php if($data['lacc_id']==''): ?>
						<button type="submit" class="btn btn-default loanapplicant_submit">Submit</button>
						<?php else: ?>
						<button type="submit" class="btn btn-default loanapplicant_submit">Update</button>
						<?php endif; ?>
						</center></div>
					
					
				</div>
			</form>
			<!-- END HORIZONTAL FORM -->
		</div>
	</div>
</div>
<script src="js/jquery.validate.min.js"></script>
<style>
	.error
	{
	color:red;
	}
</style>
<script>	
	$('.loanapplicant_submit').click(function(e)
	{
		e.preventDefault();
		if(document.getElementById("lacc_no").value == "")
		{
			alert("Application No. should not be empty...");
		}
		else if(document.getElementById("br_id").value == "")
		{
			alert("Branch name should not be empty...");
		}
		else if(document.getElementById("lacc_custname").value == "")
		{
			alert("Customer name should not be empty...");
		}
		else if(document.getElementById("lacc_securityentry").value == "")
		{
			alert("Security entry should not be empty...");
		}
		else if(document.getElementById("lacc_resaddr_mob").value == "")
		{
			alert("Address->Residence Address->Mobile No. Should not be empty...");
		}
		else if(document.getElementById("ltyp_id").value == "")
		{
			alert("Coapplicant->Loan->Loan type Should not be empty...");
		}
		else if(document.getElementById("lacc_loanamt").value == "")
		{
			alert("Coapplicant->Loan->1. Loan Amount (Rs.) Should not be empty...");
		}
		else if(document.getElementById("lacc_tenor").value == "")
		{
			alert("Coapplicant->Loan->2. Tenor (Months) Should not be empty...");
		}
		else if(document.getElementById("lacc_intrate").value == "")
		{
			alert("Coapplicant->Loan->3. Interest Rate (%) Should not be empty...");
		}
		else if(document.getElementById("dpmt_id").value == "")
		{
			alert("Coapplicant->Loan->Loan type Select Delay Payment Fee...");
		}
		else
		{
			$('.pagelodersd').show();
			$.ajax({
				url:'loanApplicantinsert',
				type:'POST',
				data:$('#loanapplicant').serialize(),
				success:function(data)
				{
					var Obj=JSON.parse(data);
					
					if(Obj.entry_type == "Update")
					{
						$.toast({
							heading: 'Loan Applicant Update!',
							text: 'You Sucessfully Updated Loan Applicant record.',
							showHideTransition: 'slide',
							icon: 'success',
							loaderBg: '#d9534f'
						});
						$('.pagelodersd').hide();
						alert("Loan applicant record Updated successfully...");
						$('#sideMenu').load('/LoadViewLoanApplicantion');
					}
					else if(Obj.entry_type == "Insert")
					{
						$.toast({
							heading: 'Loan Applicant Process!',
							text: 'You Sucessfully Inserted New Loan Applicant record.',
							showHideTransition: 'slide',
							icon: 'success',
							loaderBg: '#d9534f'
						});
						$('.pagelodersd').hide();
						alert("Loan applicant record inserted successfully...");
						$('#sideMenu').load('/LoanApplicant');
					}
				}
			})
		}
	});
	
	function ageCount()
	{
		lacc_dob=$('#lacc_dob').val();
		ageCounts(lacc_dob);
	}
	function ageCounts(lacc_dob)
	{
		$('#ageerror').html("");
		
		dob = new Date(lacc_dob);
		var today = new Date();
		var age = Math.floor((today-dob) / (365.25 * 24 * 60 * 60 * 1000));
		if(age<0)
		{
			$('#ageerror').html("<span style='color:red'>Sorry! Age Below Then 0</span>");
		}
		else
		{
			$('#ageerror').html("");
			$('#lacc_age').val(age);
		}		
	}
	
	/* $('.loanApp').click(function(e)
		{
		e.preventDefault();
		$('.loanApp').removeClass('fa-li fa fa-spinner fa-spin');
		$(this).addClass('fa-li fa fa-spinner fa-spin'); 
	}); */
	
	editId=$('#editId').val();
	if(editId!=0)
	{
        setTimeout(function(){ referencenumberFind(); }, 1000);
	}
	
	//###Finding Reference number starts here
	function referencenumberFind()
	{
	    lacc_oldrefno=$('#lacc_oldrefno').val();
		if(lacc_oldrefno != 0)
		{
			editId=$('#editId').val();
			$.ajax({
			url:'referencenumberFind',
			type:'GET',
			data:'&lacc_oldrefno='+lacc_oldrefno+'&editId='+editId,
			success:function(data)
			{
				var Obj=JSON.parse(data);
				//$('#lacc_no').val(Obj.reference.lacc_no); 
				$('#lacc_oldrefnos').val(Obj.reference.lacc_oldrefno); 
				$('#br_id').val(Obj.reference.br_id); 
				$('#br_id').val(Obj.reference.br_id); 
				$('#lacc_custname').val(Obj.reference.lacc_custname); 
				$('#lacc_swdof').val(Obj.reference.lacc_swdof); 
				$('#lacc_pan').val(Obj.reference.lacc_pan); 
				$('#lacc_chitno').val(Obj.reference.lacc_chitno); 
				$('#lacc_agrno').val(Obj.reference.lacc_agrno); 
				$('#lacc_dob').val(Obj.reference.lacc_dob); 
				$('#lacc_securityentry').val(Obj.reference.lacc_securityentry); 
				$('#lacc_monthlyrent').val(Obj.reference.lacc_monthlyrent);	
				$('#ltyp_id').val(Obj.reference.ltyp_id);				
				$('#dpmt_id').val(Obj.reference.dpmt_charge);				
				$('#ltyp_loantype').val(Obj.reference.ltyp_loantype);				
				ageCounts(Obj.reference.lacc_dob);
				/*****Residency Address****/
					$('#lacc_resaddr_addr').val(Obj.res1[0]); 
					$('#lacc_resaddr_city').val(Obj.res1[1]); 
					$('#lacc_resaddr_pin').val(Obj.res1[2]); 
					$('#lacc_resaddr_landmark').val(Obj.res1[3]); 
					$('#lacc_resaddr_fax').val(Obj.res1[4]); 
					$('#lacc_resaddr_mob').val(Obj.res1[5]); 
					$('#lacc_resaddr_tel').val(Obj.res1[6]); 
					/*****permnent Address****/
						$('#lacc_permaddr_addr').val(Obj.perm[0]); 
						$('#lacc_permaddr_city').val(Obj.perm[1]); 
						$('#lacc_permaddr_pin').val(Obj.perm[2]); 
						$('#lacc_permaddr_landmark').val(Obj.perm[3]); 
						$('#lacc_permaddr_fax').val(Obj.perm[4]); 
						$('#lacc_permaddr_mob').val(Obj.perm[5]); 
						$('#lacc_permaddr_tel').val(Obj.perm[6]); 
						$('#lacc_permaddr_chngresyesno').val(Obj.perm[7]); 
						/*****Comapany Address****/
							$('#lacc_compaddr_addr').val(Obj.comp[0]); 
							$('#lacc_compaddr_city').val(Obj.comp[1]); 
							$('#lacc_compaddr_pin').val(Obj.comp[2]); 
							$('#lacc_compaddr_landmark').val(Obj.comp[3]); 
							$('#lacc_compaddr_fax').val(Obj.comp[4]); 
							$('#lacc_compaddr_mob').val(Obj.comp[5]); 
							$('#lacc_compaddr_tel').val(Obj.comp[6]); 
							/*****Job Profile****/
								$('#lacc_jobprofile_yrsatcurrentjob').val(Obj.jobprofile[0]); 
								$('#lacc_jobprofile_department').val(Obj.jobprofile[1]); 
								$('#lacc_jobprofile_designation').val(Obj.jobprofile[2]); 
								$('#lacc_jobprofile_grossincomepm').val(Obj.jobprofile[3]); 
								$('#lacc_jobprofile_netincomepm').val(Obj.jobprofile[4]); 
								$('#lacc_jobprofile_otherincsrc').val(Obj.jobprofile[5]); 
								/*****Bank****/
									$('#lacc_bankac_bankname').val(Obj.bank[0]); 
									$('#lacc_bankac_branch').val(Obj.bank[1]); 
									$('#lacc_bankac_accountno').val(Obj.bank[2]); 
									$('#lacc_bankac_accountsince').val(Obj.bank[3]);
									
									$("input[name='lacc_bankac_accounttype'][value='"+Obj.bank[4]+"']").prop('checked', true);
									$("input[name='lacc_jobcategory'][value='"+Obj.reference.lacc_jobcategory+"']").prop('checked', true);
									$("input[name='lacc_gender'][value='"+Obj.reference.lacc_gender+"']").prop('checked', true);
									$("input[name='lacc_maritalst'][value='"+Obj.reference.lacc_maritalst+"']").prop('checked', true);
									$("input[name='lacc_education'][value='"+Obj.reference.lacc_education+"']").prop('checked', true);
									
									if(Obj.reference.lacc_profession =="Doctor" || Obj.reference.lacc_profession =="CA" || Obj.reference.lacc_profession =="Engineer" || Obj.reference.lacc_profession =="Lawyer" || Obj.reference.lacc_profession =="MBA" )
									{
										$("input[name='lacc_profession'][value='"+Obj.reference.lacc_profession+"']").prop('checked', true);
									}
									else
									{
										$('#lacc_profession_other').val(Obj.reference.lacc_profession);
									}
									
									//Self employed block
									$('#lacc_selfempdet_natureofbusiness').val(Obj.self[0]);
									$('#lacc_selfempdet_incomepa').val(Obj.self[1]);
									$('#lacc_selfempdet_yearsatpresentbusiness').val(Obj.self[2]);
										
									$("input[name='lacc_residencestatus'][value='"+Obj.reference.lacc_residencestatus+"']").prop('checked', true);
									
									lacc_ihave=Obj.reference.lacc_ihave;
												  	 	 	  		 	
									if(lacc_ihave.includes("Colour Television") == true)
									{
										$( "#lacc_ihave_Colour_Television" ).prop( "checked", true );
									}
									
									if(lacc_ihave.includes("Two Wheeler") == true)
									{
										$( "#lacc_ihave_Two_Wheeler" ).prop( "checked", true );
									}									
									if(lacc_ihave.includes("Refrigerator") == true)
									{
										$( "#lacc_ihave_Refrigerator" ).prop( "checked", true );
									}
									if(lacc_ihave.includes("Washing Machine") == true)
									{
										$( "#lacc_ihave_Washing_Machine" ).prop( "checked", true );
									}
									if(lacc_ihave.includes("Audio System") == true)
									{
										$( "#lacc_ihave_Audio_System" ).prop( "checked", true );
									}
									if(lacc_ihave.includes("Microwave Oven") == true)
									{
										$( "#lacc_ihave_Microwave_Oven" ).prop( "checked", true );
									}
									if(lacc_ihave.includes("Car") == true)
									{
										$( "#lacc_ihave_Car" ).prop( "checked", true );
									}	
									if(lacc_ihave.includes("PC") == true)
									{
										$( "#lacc_ihave_PC" ).prop( "checked", true );
									}
									if(lacc_ihave.includes("AC") == true)
									{
										$( "#lacc_ihave_AC" ).prop( "checked", true );
									}
									
									/*****Co applicant****/
										$('#lacc_coapplicantprofile_name').val(Obj.coapplicant[0]); 
										$('#lacc_coapplicantprofile_compname').val(Obj.coapplicant[1]); 
										$('#lacc_coapplicantprofile_monthlyincome').val(Obj.coapplicant[2]); 
										$('#lacc_coapplicantprofile_netincome').val(Obj.coapplicant[3]); 
										$('#lacc_coapplicantprofile_officetel').val(Obj.coapplicant[4]);
																				
										$("input[name='lacc_coapplicantprofile_relationship'][value='"+Obj.coapplicant[5]+"']").prop('checked', true);
										$("input[name='lacc_coapplicantprofile_qualification'][value='"+Obj.coapplicant[6]+"']").prop('checked', true);
										$("input[name='lacc_coapplicantprofile_occupation'][value='"+Obj.coapplicant[7]+"']").prop('checked', true);
										
										/****************LOAN****************/
											$('#lacc_loanamt').val(Obj.reference.lacc_loanamt); 
											$('#lacc_tenor').val(Obj.reference.lacc_tenor); 
											$('#lacc_intrate').val(Obj.reference.lacc_intrate); 
											$('#lacc_ufc').val(Obj.reference.lacc_ufc); 
											
											/*****reference****/
												$('#lacc_reference1_name').val(Obj.ref1[0]); 
												$('#lacc_reference1_relationship').val(Obj.ref1[1]); 
												$('#lacc_reference1_address').val(Obj.ref1[2]); 
												$('#lacc_reference1_tel').val(Obj.ref1[3]); 
												$('#lacc_reference1_res').val(Obj.ref1[4]); 
												
												$('#lacc_reference2_name').val(Obj.ref2[0]); 
												$('#lacc_reference2_relationship').val(Obj.ref2[1]); 
												$('#lacc_reference2_address').val(Obj.ref2[2]); 
												$('#lacc_reference2_tel').val(Obj.ref2[3]); 
												$('#lacc_reference2_res').val(Obj.ref2[4]); 
												
												/*****Gurrantor****/
													$('#lacc_guarantor1_name').val(Obj.Gurr1[0]); 
													$('#lacc_guarantor1_relationship').val(Obj.Gurr1[1]); 
													$('#lacc_guarantor1_address').val(Obj.Gurr1[2]); 
													$('#lacc_guarantor1_tel').val(Obj.Gurr1[3]); 
													$('#lacc_guarantor1_res').val(Obj.Gurr1[4]); 
													
													$('#lacc_guarantor2_name').val(Obj.Gurr2[0]); 
													$('#lacc_guarantor2_relationship').val(Obj.Gurr2[1]); 
													$('#lacc_guarantor2_address').val(Obj.Gurr2[2]); 
													$('#lacc_guarantor2_tel').val(Obj.Gurr2[3]); 
													$('#lacc_guarantor2_res').val(Obj.Gurr2[4]);
													
													$('#lacc_guarantor3_name').val(Obj.Gurr3[0]); 
													$('#lacc_guarantor3_relationship').val(Obj.Gurr3[1]); 
													$('#lacc_guarantor3_address').val(Obj.Gurr3[2]); 
													$('#lacc_guarantor3_tel').val(Obj.Gurr3[3]); 
													$('#lacc_guarantor3_res').val(Obj.Gurr3[4]); 
													/*****refer****/
														$('#lacc_chitrefno').val(Obj.reference.lacc_chitrefno); 
														$('#lacc_chitbrid').val(Obj.reference.lacc_chitbrid); 
														$('#lacc_paidupamt').val(Obj.reference.lacc_paidupamt); 
													} 
												});
		}
	}
	//###Finding Reference number ends here
	
	//###Selected Loan type details starts here
	function loanloantypedetails()
	{
		ltyp_id=$('#ltyp_id').val();
		if(ltyp_id != 0)
		{
				editId=$('#editId').val();
				$.ajax({
				url:'loantypeFind',
				type:'GET',
				data:'&ltyp_id='+ltyp_id+'&editId='+editId,
				success:function(data)
				{
					var Obj=JSON.parse(data);
					$('#lacc_intrate').val(Obj.loantypedet.ltyp_interestperc);
					$('#lacc_tenor').val(Obj.loantypedet.ltyp_maxmonth);
					$('#ltyp_loantype').val(Obj.loantypedet.ltyp_loantype);					
				} 
				});
		}
	}
	//###Selected Loan type details ends here
	//load branch
	$(document).ready(function(){
		var br_id = $('#br_id').val();
		$.ajax({
		type: "GET",
		url:"/loadbranch",
		dataType: "json",
		success: function (data) {
		$.each(data,function(i,obj)
		{
			if(br_id ==0)
			{
				var div_data="<option value="+obj.br_id+">"+obj.br_name+"</option>";	
			}
			else 
			{
				if(br_id == obj.br_id)
				{
					var div_data="<option value="+obj.br_id+" selected>"+obj.br_name+"</option>";	
				}
				else{
					var div_data="<option value="+obj.br_id+">"+obj.br_name+"</option>";		
				}
			}
		 $(div_data).appendTo('#br_id'); 
		});  
		}
		});
		
		var br_id = $('#lacc_chitbrid').val();
		$.ajax({
		type: "GET",
		url:"/loadbranch",
		dataType: "json",
		success: function (data) {
		$.each(data,function(i,obj)
		{
			if(br_id ==0)
			{
				var div_data="<option value="+obj.br_id+">"+obj.br_name+"</option>";	
			}
			else 
			{
				if(br_id == obj.br_id)
				{
					var div_data="<option value="+obj.br_id+" selected>"+obj.br_name+"</option>";	
				}
				else{
					var div_data="<option value="+obj.br_id+">"+obj.br_name+"</option>";		
				}
			}
		 $(div_data).appendTo('#lacc_chitbrid'); 
		});  
		}
		});		
		//###Loan type starts here
		var ltyp_id = $('#ltyp_id').val();
		$.ajax({
		type: "GET",
		url:"/loadloantypes",
		dataType: "json",
		success: function (data) 
			{
				$.each(data,function(i,obj)
				{
					if(ltyp_id ==0)
					{
						var div_data="<option value="+obj.ltyp_id+">"+obj.loantypes+"</option>";	
					}
					else 
					{
						if(ltyp_id == obj.ltyp_id)
						{
							var div_data="<option value="+obj.ltyp_id+" selected>"+obj.loantypes+"</option>";	
						}
						else{
							var div_data="<option value="+obj.ltyp_id+">"+obj.loantypes+"</option>";		
						}
					}
				 $(div_data).appendTo('#ltyp_id');				 
				});  
			}
		});
		//###Loan type ends here
		//###Delay Fee settings starts here
		var dpmt_id = $('#dpmt_id').val();
		$.ajax({
		type: "GET",
		url:"/loaddelayfeetypes",
		dataType: "json",
		success: function (data) 
			{
				$.each(data,function(i,obj)
				{
					if(dpmt_id ==0)
					{
						var div_data="<option value="+obj.dpmt_charge+">"+obj.dpmt_charge+"%</option>";	
					}
					else 
					{
						if(dpmt_id == obj.dpmt_id)
						{
							var div_data="<option value="+obj.dpmt_charge+" selected>"+obj.dpmt_charge+"%</option>";	
						}
						else{
							var div_data="<option value="+obj.dpmt_charge+">"+obj.dpmt_charge+"%</option>";		
						}
					}
				 $(div_data).appendTo('#dpmt_id');				 
				});  
			}
		});
		//###Delay Fee settings ends here
		
	});
</script>																						