- ID de l'analyse :
- 306aad88-856b-421a-8ebb-0d18155c065aTerminée
- URL soumise :
- https://webcrm.bank.sbi/Redirigé
- Fin du rapport :
Liens : 0 trouvé(s)
Liens sortants identifiés à partir de la page
Variables JavaScript : 68 trouvée(s)
Les variables JavaScript globales chargées dans l'objet fenêtre d'une page sont des variables déclarées en dehors des fonctions et accessibles depuis n'importe quel endroit du code au sein du champ d'application actuel
Nom | Type |
---|---|
onbeforetoggle | object |
documentPictureInPicture | object |
onscrollend | object |
html5 | object |
Modernizr | object |
$ | function |
jQuery | function |
pageGrids | object |
GridMvc | function |
TextFilterWidget | function |
Messages de journal de console : 1 trouvé(s)
Messages consignés dans la console web
Type | Catégorie | Enregistrement |
---|---|---|
error | network |
|
HTML
Le corps HTML de la page en données brutes
<!DOCTYPE html><html class=" js flexbox flexboxlegacy canvas canvastext webgl no-touch geolocation postmessage no-websqldatabase indexeddb hashchange history draganddrop websockets rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent video audio localstorage sessionstorage webworkers no-applicationcache svg inlinesvg smil svgclippaths" style=""><head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login - Distributor Management</title>
<link href="/leadapp/Content/bootstrap.css" rel="stylesheet">
<link href="/leadapp/Content/site.css" rel="stylesheet">
<link href="/leadapp/Content/Gridmvc.css" rel="stylesheet">
<link href="/leadapp/Content/bootstrap.min.css" rel="stylesheet">
<link href="/leadapp/Content/themes/base/jquery-ui.css" rel="stylesheet">
<script src="/leadapp/Scripts/modernizr-2.8.3.js"></script>
<script src="/leadapp/Scripts/jquery-3.7.0.js"></script>
<script src="/leadapp/Scripts/jquery-ui-1.13.2.js"></script>
<script src="/leadapp/Scripts/gridmvc.min.js"></script>
<script src="/leadapp/Scripts/aes.js"></script>
<script src="/leadapp/Scripts/ci.js"></script>
<script src="/leadapp/Scripts/sjcl.js"></script>
<style>
.page-title {
margin: 0px;
font-weight: bold;
font-size: 150%;
color: #FFF;
background-color: #662B7D;
}
.container-fluid {
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}
.WordWrap {
width: 100%;
text-align: start;
word-wrap: break-word;
}
.customDropdown {
display: block;
width: 100%;
padding: 0.375rem 0.75rem;
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #212529;
background-color: #fff;
background-clip: padding-box;
border: 1px solid #ced4da;
border-radius: 0.25rem;
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
</style>
<script type="text/javascript">
$(document).ready(function () {
//Start..added for Auto/Two Wheeler Loan..
if ('' == "12" || '' == "116") {
document.getElementById("RefGroup").style.display = "";
}
//..End
if (''.length!=0) {
var selectprodcatID = '';
// alert(selectprodid);
$.ajax({
url: '/leadapp/Home/GetAllProduct',
type: "GET",
dataType: "JSON",
data: { productId: selectprodcatID},
success: function (relatedProducts) {
$("#ProductID").html(""); // clear before appending new list
$("#ProductID").append($('<option></option>').val("").html('--Select--'));
$.each(relatedProducts, function (i, relatedProduct) {
$("#ProductID").append(
$('<option></option>').val(relatedProduct.Value).html(relatedProduct.Text));
});
var selectprodid = '';
$("#ProductID").val(selectprodid);
}
});
}
//ViewBag.ErrNamePrefix = obj.NamePrefix;
//ViewBag.ErrGender = obj.Gender;
//ViewBag.ErrMaritalStatus = obj.MatritalStatus;
//ViewBag.ErrLeadRating = obj.LeadRating;
//ViewBag.ErrLoanPurpose = obj.LoanPurpose;
//ViewBag.ErrPrefModComm = obj.CommunicationMode;
//ViewBag.ErrResStatus = obj.ResidentialStatus;
if (''.length != 0) {
$("#NamePrefix").val('');
}
if (''.length != 0) {
$("#Gender").val('');
}
if (''.length != 0) {
$("#MatritalStatus").val('');
}
if (''.length != 0) {
$("#LeadRating").val('');
}
if (''.length != 0) {
$("#LoanPurpose").val('');
}
if (''.length != 0) {
$("#CommunicationMode").val('');
}
if(''.length != 0){
$("#ResidentialStatus").val('');
}
if(''.length != 0){
$("#CountryOfResidence").val('');
}
if(''.length != 0){
$("#AddressType").val('');
}
if(''.length != 0){
$("#State").val('');
}
if(''.length != 0){
var id = '';
$.ajax({
url:'/leadapp/Home/GetDistrictStateWise',
type: "GET",
dataType: "JSON",
data: { StateCode: id},
success: function (Districts) {
$('#District').html(""); // clear before appending new list
$('#District').append($('<option></option>').val("").html('--Select--'));
$.each(Districts, function (i, District) {
$('#District').append(
$('<option></option>').val(District.Value).html(District.Text));
});
var district = ''
$('#District').val(district);
}
})
}
if (''.length != 0) {
var districtID = '';
$.ajax({
url: '/leadapp/Home/GetSubDistrictDistrictwise',
type: "GET",
dataType: "JSON",
data: { DistrictCode: districtID},
success: function (SubDistricts) {
$('#SubDistrict').html(""); // clear before appending new list
$('#SubDistrict').append($('<option></option>').val("").html('--Select--'));
$.each(SubDistricts, function (i, SubDistrict) {
$('#SubDistrict').append(
$('<option></option>').val(SubDistrict.Value).html(SubDistrict.Text));
});
var Subdistrict = ''
$('#SubDistrict').val(Subdistrict);
}
})
}
if (''.length != 0) {
var Subdistrict = '';
$.ajax({
url: '/leadapp/Home/GetCitiesSubDistrictWise',
type: "GET",
dataType: "JSON",
data: { SubDistrictCODE: Subdistrict },
success: function (Cities) {
$("#City").html(""); // clear before appending new list
$("#City").append($('<option></option>').val("").html('--Select--'));
$.each(Cities, function (i, City) {
$("#City").append(
$('<option></option>').val(City.Value).html(City.Text));
});
var city = '';
$("#City").val(city);
}
});
}
$("#NoofCoApplicants").keydown(function (e) {
// Allow: backspace, delete, tab, escape, enter and .
//alert(e.keyCode);
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
// Ensure that it is a number and stop the keypress
if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 53)) && (e.keyCode < 96 || e.keyCode > 101)) {
e.preventDefault();
}
});
var selectedMode = $("#CommunicationMode option:selected").text();
if (selectedMode == 'SMS')
{
$("#mandatory").hide();
}
else
{
$("#mandatory").show();
}
$("#NoofGuarantors").keydown(function (e) {
// Allow: backspace, delete, tab, escape, enter and .
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
// Ensure that it is a number and stop the keypress
if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 53)) && (e.keyCode < 96 || e.keyCode > 101)) {
e.preventDefault();
}
});
$("#NoofCoApplicants").on("focusout", function () {
var result = true;
var ptr = /^[0-5/s]+/;
var value = $("#NoofCoApplicants").val();
var Str = $('span[data-valmsg-for="NoofCoApplicants"]');
if (!ptr.test(value)) {
Str.removeClass("field-validation-valid text-danger");
Str.addClass("field-validation-error text-danger");
Str.text("Enter No.of Co-Applicants between 0-5.");
result = false;
}
else {
Str.addClass("field-validation-valid text-danger");
Str.removeClass("field-validation-error text-danger");
Str.text("");
result = true;
alert("Please provide co-applicants details to branch");
}
return result;
});
$("#NoofGuarantors").on("focusout", function () {
var result = true;
var ptr = /^[0-5/s]+/;
var value = $("#NoofGuarantors").val();
var Str = $('span[data-valmsg-for="NoofGuarantors"]');
if (!ptr.test(value)) {
Str.removeClass("field-validation-valid text-danger");
Str.addClass("field-validation-error text-danger");
Str.text("Enter No.of Guarantors between 0-5.");
result = false;
}
else {
Str.addClass("field-validation-valid text-danger");
Str.removeClass("field-validation-error text-danger");
Str.text("");
result = true;
alert("Please provide guarantors details to branch");
}
return result;
});
$("#CaptchaInputText").on("focusout", function () {
var result = true;
var ptr = /^[^<>,<|>]+$/;
var value = $("#CaptchaInputText").val();
if (!ptr.test(value)) {
var captchaStr = $('span[data-valmsg-for="CaptchaInputText"]');
captchaStr.removeClass("field-validation-valid text-danger");
captchaStr.addClass("field-validation-error text-danger");
captchaStr.text("Captcha is Not Valid.");
result = false;
}
return result;
});
//check gender validation.
$("#Gender").change(function () {
var selGender = this.value;
var salutationValue = $('#NamePrefix').val();
if (selGender == 'F' && salutationValue == 13 ) {
$("#Gender").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Select Valid Gender");
}
else if (selGender == 'M' && salutationValue == 14 ) {
$("#Gender").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Select Valid Gender");
}
else if (selGender == 'M' && salutationValue == 4 ) {
$("#Gender").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Select Valid Gender");
}
else if (selGender == 'M' && salutationValue == 15 ) {
$("#Gender").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Select Valid Gender");
}
else if (selGender == 'M' && salutationValue == 17 ) {
$("#Gender").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Select Valid Gender");
}
else if (selGender == 'F' && salutationValue == 20) {
$("#Gender").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Select Valid Gender");
}
else if (selGender == 'F' && salutationValue == 18) {
$("#Gender").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Select Valid Gender");
}
else
{
$("#Gender").removeClass("input-validation-error").next('span[data-valmsg-for]').removeClass("field-validation-error").addClass("field-validation-valid").html();
}
});
$("#NamePrefix").change(function () {
// alert("aasd");
var salutationValue = $('#NamePrefix').val();
var gen = $('#Gender').val();
if (gen == 'F' && salutationValue != 13) {
$("#Gender").removeClass("input-validation-error").next('span[data-valmsg-for]').removeClass("field-validation-error").addClass("field-validation-valid").html();
}
else if (gen == 'M' && salutationValue == 13) {
$("#Gender").removeClass("input-validation-error").next('span[data-valmsg-for]').removeClass("field-validation-error").addClass("field-validation-valid").html();
}
var genselecttext = $("#Gender option:selected").text();
if (gen == 'F' && salutationValue == 13 ) {
$("#Gender").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Select Valid Gender");
}
else if (gen == 'M' && salutationValue == 14 ) {
$("#Gender").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Select Valid Gender");
}
else if (gen == 'M' && salutationValue == 4 ) {
$("#Gender").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Select Valid Gender");
}
else if (gen == 'M' && salutationValue == 15 ) {
$("#Gender").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Select Valid Gender");
}
else if (gen == 'M' && salutationValue == 17 ) {
$("#Gender").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Select Valid Gender");
}
else if (gen == 'F' && salutationValue == 20) {
$("#Gender").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Select Valid Gender");
}
else if (gen == 'F' && salutationValue == 18) {
$("#Gender").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Select Valid Gender");
}
else
{
$("#Gender").removeClass("input-validation-error").next('span[data-valmsg-for]').removeClass("field-validation-error").addClass("field-validation-valid").html();
}
});
$("#CoGender").change(function () {
var selGender = this.value;
var salutationValue = $('#CoNamePrefix').val();
if (selGender == 'F' && salutationValue == 13) {
$("#CoGender").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Select Valid Gender");
}
if (selGender == 'M' && salutationValue == 14) {
$("#CoGender").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Select Valid Gender");
}
if (selGender == 'M' && salutationValue == 4) {
$("#CoGender").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Select Valid Gender");
}
if (selGender == 'M' && salutationValue == 15) {
$("#CoGender").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Select Valid Gender");
}
if (selGender == 'M' && salutationValue == 17) {
$("#CoGender").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Select Valid Gender");
}
});
$("#CoNamePrefix").change(function () {
var salutationValue = $('#CoNamePrefix').val();
var gen = $('#CoGender').val();
if (gen == 'F' && salutationValue != 13) {
$("#CoGender").removeClass("input-validation-error").next('span[data-valmsg-for]').removeClass("field-validation-error").addClass("field-validation-valid").html();
}
if (gen == 'M' && salutationValue == 13) {
$("#CoGender").removeClass("input-validation-error").next('span[data-valmsg-for]').removeClass("field-validation-error").addClass("field-validation-valid").html();
}
var genselecttext = $("#CoGender option:selected").text();
if (gen == 'F' && salutationValue == 13) {
$("#CoGender").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Select Valid Gender");
}
if (gen == 'M' && salutationValue == 14) {
$("#CoGender").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Select Valid Gender");
}
if (gen == 'M' && salutationValue == 4) {
$("#CoGender").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Select Valid Gender");
}
if (gen == 'M' && salutationValue == 15) {
$("#CoGender").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Select Valid Gender");
}
if (gen == 'M' && salutationValue == 17) {
$("#CoGender").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Select Valid Gender");
}
});
$("#Description").on("focusout", function () {
var result = true;
// var ptr = /^[^<>,<|>]+$/;
var ptr = /^[^<><|>]+$/;
var value = $("#Description").val();
var trimval = value.toString().trimval
if (value.length != 0) {
if (!ptr.test(value)) {
$("#Description").val("");
}
else {
var captchaStr = $('span[data-valmsg-for="Description"]');
captchaStr.addClass("field-validation-valid text-danger");
captchaStr.removeClass("field-validation-error text-danger");
result = false;
}
}
else
{
var captchaStr = $('span[data-valmsg-for="Description"]');
captchaStr.addClass("field-validation-valid text-danger");
captchaStr.removeClass("field-validation-error text-danger");
result = false;
}
return result;
});
$("#BranchName").on("focusout", function () {
var result = true;
var ptr = /^[^<>,<|>]+$/;
var value = $("#BranchName").val();
if (value.length != 0) {
if (!ptr.test(value)) {
$("#BranchName").val("");
}
else {
var captchaStr = $('span[data-valmsg-for="Description"]');
captchaStr.addClass("field-validation-valid text-danger");
captchaStr.removeClass("field-validation-error text-danger");
result = false;
}
}
else {
var captchaStr = $('span[data-valmsg-for="Description"]');
captchaStr.addClass("field-validation-valid text-danger");
captchaStr.removeClass("field-validation-error text-danger");
result = false;
}
return result;
});
$('.decimal').keypress(function (e) {
var character = String.fromCharCode(e.keyCode)
var newValue = this.value + character;
if (isNaN(newValue) || hasDecimalPlace(newValue, 3)) {
e.preventDefault();
return false;
}
});
$(".officephoneSME").change(function () {
var value = $(".officephoneSME").val();
if (value.length != 11) {
alert("Enter 11 Digits Office Phone No");
}
});
$(".residenceNoSME").change(function () {
var value = $(".residenceNoSME").val();
if (value.length != 11) {
alert("Enter 11 Digits Residence No");
}
});
$(".officephoneAgri").change(function () {
var value = $(".officephoneAgri").val();
if (value.length != 12) {
alert("Enter 12 Digits Office Phone No");
}
});
$(".residenceAgri").change(function () {
var value = $(".residenceAgri").val();
if (value.length != 12) {
alert("Enter 12 Digits Residence No");
}
});
//hide class
// $('.showhideSME').hide();
$('.monthyear').hide();
$('.quarteryear').hide();
// $('#CoApplicantRow').hide();
$('.input-validation-error').parents('.form-group').addClass('has-eror');
$('.field-validation-error').addClass('has-eror');
var value = $("#ExistingCustomer option:selected").text();
if (value == 'Yes') {
$("#AccountNumberCIF").attr('readonly', false);
}
var value = $("#ReportType option:selected").text();
if (value!=""){
if (value != '--Select--') {
$("#fetchRept").prop('disabled', false);
var type = $("#ReportType option:selected").val();
ChangeReportType(type);
}
else
{
$("#fetchRept").prop('disabled', true);
}
}
$(function () {
if (!Modernizr.inputtypes.data)
{
$('#DOB').datepicker({
dateFormat: 'dd/mm/yy',
changeMonth: true,
changeYear: true,
yearRange: "-80:+0",
maxDate: new Date()
});
}
});
if (''.length !=0){
var productcatid = $("#ProductCatID option:selected").val();
if (''.length != 0)
{
GetNRIProducts(productcatid, '')
}
else
{
GetRelatedProducts(productcatid);
}
var sid = $("#sid").val();
if (sid == "NRIDeposit") {
var stateID = $("#StateLocalPointOfContact option:selected").val();
GetDistrict(stateID, '#DistrictLocalPointOfContact');
$("#ISDCode").val();
var countyofResidencId = $("#CountryOfResidence option:selected").text();
GetSelectedISDCode(countyofResidencId);
} else {
var stateID = $("#State option:selected").val();
GetDistrict(stateID);
}
GetSubDistrict('');
GetCities('');
}
$("#FirstName").keydown(function (e) {
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
var key = e.keyCode;
if (key >= 48 && key <= 57 || key === 190 || key === 188)
{
e.preventDefault();
}
// let keys = Number(e.key);
var keys = Number(e.key);
if (!isNaN(keys)) {
e.preventDefault();
}
if ($("#FirstName").val().length > 14) {
// alert("hi");
return false;
}
});
$("#NameLocalPointOfContact").keydown(function (e) {
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
var key = e.keyCode;
if (key >= 48 && key <= 57 || key === 190 || key === 188) {
e.preventDefault();
}
// let keys = Number(e.key);
var keys = Number(e.key);
if (!isNaN(keys)) {
e.preventDefault();
}
if ($("#NameLocalPointOfContact").val().length > 25) {
// alert("hi");
return false;
}
});
$("#SME_NameOfUnit").keydown(function (e) {
$("#SME_NameOfUnit").removeClass("input-validation-error").next('span[data-valmsg-for]').removeClass("field-validation-error").addClass("field-validation-valid").html("");
});
$("#SME_NameOfUnit").on("focusout", function () {
var result = htmltagremoval($("#SME_NameOfUnit").val());
if (result) {
$("#SME_NameOfUnit").val("");
}
});
$("#SME_NameofKeyPerson").on("focusout", function () {
var result = htmltagremoval($("#SME_NameofKeyPerson").val());
if (result) {
$("#SME_NameofKeyPerson").val("");
}
});
$("#SME_NameofKeyPerson").keydown(function (e) {
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
var key = e.keyCode;
if (key >= 48 && key <= 57) {
e.preventDefault();
}
//if ($("#SME_NameofKeyPerson").val().length > 100) {
// // alert("hi");
// return false;
//}
});
$("#MiddleName").keydown(function (e) {
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
var key = e.keyCode;
if (key >= 48 && key <= 57 || key === 190 || key === 188) {
e.preventDefault();
}
//let keys = Number(e.key);
var keys = Number(e.key);
if (!isNaN(keys)) {
e.preventDefault();
}
if ($("#MiddleName").val().length > 14) {
// alert("hi");
return false;
}
});
$("#LastName").keydown(function (e) {
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
var key = e.keyCode;
if (key >= 48 && key <= 57 || key === 190 || key === 188) {
e.preventDefault();
}
//let keys = Number(e.key);
var keys = Number(e.key);
if (!isNaN(keys)) {
e.preventDefault();
}
if ($("#LastName").val().length > 14) {
// alert("hi");
return false;
}
});
$("#Address1").keydown(function (e) {
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
if ($("#Address1").val().length > 29) {
return false;
}
});
$("#Address2").keydown(function (e) {
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
if ($("#Address2").val().length > 29) {
// alert("hi");
return false;
}
});
$("#Address3").keydown(function (e) {
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
if ($("#Address3").val().length > 29) {
return false;
}
});
$("#Address1LocalPointOfContact").keydown(function (e) {
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
if ($("#Address1LocalPointOfContact").val().length > 29) {
return false;
}
});
$("#LocalArea").keydown(function (e) {
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
if ($("#LocalArea").val().length > 15) {
return false;
}
});
$("#LandMark").keydown(function (e) {
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
if ($("#LandMark").val().length > 15) {
return false;
}
});
$("#MobileNumber").keydown(function (e) {
// Allow: backspace, delete, tab, escape, enter and .
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
// Ensure that it is a number and stop the keypress
if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) {
e.preventDefault();
}
});
$("#AccountNumberCIF").keydown(function (e) {
// Allow: backspace, delete, tab, escape, enter and .
if ($("#AccountNumberCIF").val().length > 13) {
return false;
}
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
// Ensure that it is a number and stop the keypress
if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) {
e.preventDefault();
}
});
$("#PinCode").keydown(function (e) {
// Allow: backspace, delete, tab, escape, enter and .
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
// Ensure that it is a number and stop the keypress
if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) {
e.preventDefault();
}
});
$("#PinCodeLocalPointOfContact").keydown(function (e) {
// Allow: backspace, delete, tab, escape, enter and .
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
// Ensure that it is a number and stop the keypress
if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) {
e.preventDefault();
}
});
$("#OfficePhoneNumber").keydown(function (e) {
// Allow: backspace, delete, tab, escape, enter and .
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) {
e.preventDefault();
}
var segmentid = $("#segmentID").val();
var lengthCheck = 10;
var sidnri = $("#sid").val();
if (sidnri == 'NRIDeposit')
{
lengthCheck = 34;
}
//if (segmentid != "")
// lengthCheck = 12; $("#OfficePhoneNumber").val().length
if (segmentid.length != 0)
lengthCheck = 12;
if ($("#OfficePhoneNumber").val().length > lengthCheck) {
return false;
}
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
// Ensure that it is a number and stop the keypress
});
$("#ResidentialNumber").keydown(function (e) {
// Allow: backspace, delete, tab, escape, enter and .
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
// Ensure that it is a number and stop the keypress
if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) {
e.preventDefault();
}
var segmentid = $("#segmentID").val();
//alert(segmentid);
var lengthCheck = 11;
//if (segmentid != "")
// lengthCheck = 12;
var sidnri = $("#sid").val();
if (sidnri == 'NRIDeposit') {
lengthCheck = 34;
}
if (segmentid.length != 0)
lengthCheck = 12;
var valurNo = $("#ResidentialNumber").val();
if (valurNo.length > lengthCheck) {
return false;
}
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
});
$("#TemporaryNumber").keydown(function (e) {
// Allow: backspace, delete, tab, escape, enter and .
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
var segmentid = $("#segmentID").val();
var lengthCheck = 15;
var valurNo = $("#TemporaryNumber").val();
if (valurNo.length > lengthCheck) {
return false;
}
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
// Ensure that it is a number and stop the keypress
if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) {
e.preventDefault();
}
});
$("#MobileLocalPointOfContact").keydown(function (e) {
// Allow: backspace, delete, tab, escape, enter and .
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
var segmentid = $("#segmentID").val();
var lengthCheck = 11;
var valurNo = $("#MobileLocalPointOfContact").val();
if (valurNo.length > lengthCheck) {
return false;
}
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
// Ensure that it is a number and stop the keypress
if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) {
e.preventDefault();
}
});
$('.datepicker').datepicker({
changeMonth: false,
changeYear: true,
showButtonPanel: true,
yearRange: '1999:2018',
dateFormat: 'yy',
onClose: function (dateText, inst) {
var year = $("#ui-datepicker-div .ui-datepicker-year :selected").val();
$(this).datepicker('setDate', new Date(year, 0, 1));
}
});
$('#years').datepicker({
changeMonth: true,
changeYear: true,
dateFormat: 'MM yy',
onClose: function () {
var iMonth = $("#ui-datepicker-div .ui-datepicker-month :selected").val();
var iYear = $("#ui-datepicker-div .ui-datepicker-year :selected").val();
$(this).datepicker('setDate', new Date(iYear, iMonth, 1));
},
beforeShow: function () {
if ((selDate = $(this).val()).length > 0) {
var iMonth = jQuery.inArray(selDate.substring(0, selDate.length - 5), $(this).datepicker('option', 'monthNames'));
var iYear = selDate.substring(selDate.length - 4, selDate.length);
$(this).datepicker('option', 'defaultDate', new Date(iYear, iMonth, 1));
$(this).datepicker('setDate', new Date(iYear, iMonth, 1));
}
}
});
$(function () {
var $select = $(".2000-2019");
var currentdate = new Date();
var dateLimit = currentdate.getFullYear();
for (i = 2019; i <= dateLimit; i++) {
$select.append($('<option></option>').val(i).html(i))
}
var selyear = '';
$("#yearsofmonth").val(selyear);
$("#yearOfQuarter").val(selyear);
});
///CODE TO CLOSE SESSION ON BROWSER CLOSE
//$(window).bind("beforeunload", function () {
// var validNavigation = false;
// $('form').on('submit', function (e) {
// alert("keypress");
// validNavigation = true;
// });
// if (!validNavigation) {
// return confirm("closedevent");
// }
//});
$("#Description").keyup(function (event) {
$("#charid").html($("#Description").val().length);
});
$("#Description").keypress(function (event) {
if (event.keyCode == 13) {
event.preventDefault();
}
});
var showhidecoapplicantdfalse = $("input[id = 'Radiono']:checked").val();
if (showhidecoapplicantdfalse == "False") {
$('#coapplicantdiv').hide();
}
var showhidecoapplicantdyes = $("input[id = 'Radioyes']:checked").val();
if (showhidecoapplicantdyes == "True")
{
$('#coapplicantdiv').show();
}
$("#Radioyes").click(function () {
$('#coapplicantdiv').show();
});
$("#Radiono").click(function () {
$('#coapplicantdiv').hide();
});
$("#BranchCode").click(function () {
$("#location").val(1);
var url = '/leadapp/Home/BranchLocator';
window.open(url + '/' + 1, 'win', 'toolbar=0,location=0,directories=0,status=1,menubar=0,resizable=yes,WIDTH=1200,HEIGHT=600,top=50,left=50,scrollbars=1');
});
$("#BranchCodeHidden").val();
function SearchBranches(){
var location = $("#location").val();
var search = $("#BranchName").val();
ShowLoading();
$.ajax({
url: '/leadapp/Home/BranchLocator',
type: "POST",
dataType: "JSON",
data: { search: search },
success: function (searchResults) {
document.getElementById("SearchHeader").style.display = "table-row";
document.getElementById("SearchResultRow").style.display = "table-row";
//HideLoading();
},
error: function (jqXHR, textStatus, errorThrown) {
}
});
}
var Descrp = $("#Description").length;
if (Descrp != 0) {
$("#charid").html($("#Description").val().length);
}
});
function ShowHideElements(id)
{
if (id == "12" || id == "116") {
document.getElementById("RefGroup").style.display = "";
}
else
{
document.getElementById("RefGroup").style.display = "none";
}
}
function hasDecimalPlace(value, x) {
var pointIndex = value.indexOf('.');
return pointIndex >= 0 && pointIndex < value.length - x;
}
function Check() {
var result = true;
var salutationValue = $('#NamePrefix').val();
var selGender = $('#Gender').val();
if (selGender == 'F' && salutationValue == 13) {
result = false;
}
if (selGender == 'M' && salutationValue == 14) {
result = false;
}
if (selGender == 'M' && salutationValue == 4) {
result = false;
}
if (selGender == 'M' && salutationValue == 15) {
result = false;
}
if (selGender == 'M' && salutationValue == 17) {
result = false;
}
if (selGender == 'F' && salutationValue == 13) {
result = false;
}
if (selGender == 'M' && salutationValue == 14) {
result = false;
}
if (selGender == 'M' && salutationValue == 4) {
result = false;
}
if (selGender == 'M' && salutationValue == 15) {
result = false;
}
if (selGender == 'M' && salutationValue == 17) {
result = false;
}
if (selGender == 'F' && salutationValue == 20) {
result = false;
}
if (selGender == 'F' && salutationValue == 18) {
result = false;
}
var officePhoneObj = $("#officephoneSME").length;
if (officePhoneObj != 0) {
var value = $("#officephoneSME").val();
if (value.length != 0) {
if (value.length != 11) {
alert("Enter 11 Digits Office Phone No");
result = false;
}
}
}
var resNosSMEObj = $("#residenceNoSME").length;
if (resNosSMEObj != 0) {
var valueNo = $("#residenceNoSME").val();
if (valueNo.length != 0) {
if (valueNo.length != 11) {
alert("Enter 11 Digits Residence No");
result = false;
}
}
}
var valueObjectPAgri = $("#officephoneAgri").length;
if (valueObjectPAgri != 0) {
var valuePAgri = $("#officephoneAgri").val();
if (valuePAgri.length != 0 && valuePAgri.length != 12) {
alert("Enter 12 Digits Office Phone No");
result = false;
}
}
var valueObjAgri = $("#residenceAgri").length;
if (valueObjAgri != 0) {
var valueRAgri = $("#residenceAgri").val();
if (valueRAgri.length != 0 && valueRAgri.length != 12) {
alert("Enter 12 Digits Residence No");
result = false;
}
}
var officePhone = $("#OfficePhoneNumber").length;
if (officePhone != 0) {
//call regex
if ($("#OfficePhoneNumber").val().length != 0) {
var x = RegexForNonMobileNRI($("#OfficePhoneNumber").val());
if (x == true) {
result = false;
}
}
}
var officePhone = $("#ResidentialNumber").length;
if (officePhone != 0) {
//call regex
if ($("#ResidentialNumber").val().length != 0) {
var x = RegexForNonMobileNRI($("#ResidentialNumber").val());
if (x == true) {
result = false;
}
}
}
var officePhone = $("#OfficePhoneNumber").length;
if (result == true) {
var nonNrimobobj = $('#nonNRIMobile').length;
if (nonNrimobobj != 0) {
var userinput = $('#nonNRIMobile').val();
if (userinput.length != 0) {
if (!/^([5-9]){1}([0-9]){9}$/.test(userinput)) {
$("#nonNRIMobile").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Enter Valid Mobile Number");
result = false;
}
else {
$("#nonNRIMobile").removeClass("input-validation-error").next('span[data-valmsg-for]').removeClass("field-validation-error").addClass("field-validation-valid").html();
result = true;
}
}
}
}
var statesexist = $("#State").length;
if (statesexist != 0) {
var valueState = $("#State option:selected").text();
$("#StateName").val(valueState);
var valueDistrict = $("#District option:selected").text();
$("#DistrictName").val(valueDistrict);
}
//check hidden field
var hdnristatexit = $("#HidNriState").length;
if (hdnristatexit != 0) {
var valueSubDistrict = $("#StateLocalPointOfContact option:selected").text();
$("#HidNriState").val(valueSubDistrict);
var valueCity = $("#DistrictLocalPointOfContact option:selected").text();
$("#HidNriDistrict").val(valueCity);
}
var subdisexist = $("#SubDistrict").length;
if (subdisexist != 0) {
var valueSubDistrict = $("#SubDistrict option:selected").text();
$("#HidSubDistrict").val(valueSubDistrict);
var valueCity = $("#City option:selected").text();
$("#HidCityName").val(valueCity);
}
return result;
}
//Change validation on mode of communcation.
function ChangeValidation(mode) {
if (mode == 2)
{
$("#mandatory").hide();
}
else
{
$("#mandatory").show();
}
}
function CheckOfficeMobile() {
var valueState = $("#State option:selected").text();
$("#StateName").val(valueState);
var valueDistrict = $("#District option:selected").text();
$("#DistrictName").val(valueDistrict);
var valueSubDistrict = $("#SubDistrict option:selected").text();
$("#HidSubDistrict").val(valueSubDistrict);
var valueCity = $("#City option:selected").text();
$("#HidCityName").val(valueCity);
var value = $(".officephoneSME").val();
if (value.length == 0) {
return true;
}
else
{
if (value.length != 11) {
alert("Enter 11 Digits Office Phone No");
return false;
}
}
}
function CheckResidenceNumber() {
var value = $("#ResidentialNumber").val();
//var ptr = /^[1 - 9][0 - 9]{5 } $/;
if (value.length == 0) {
return true;
}
else {
if (value.length != 11) {
alert("Enter 11 Digits Residence Number");
return false;
}
}
}
function CheckValidEmailNRI() {
var userinput = $('#EmailLocalPointOfContact').val();
if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(userinput)) {
$('#EmailLocalPointOfContact').addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Enter Valid Email");
return false;
}
else {
$('#EmailLocalPointOfContact').removeClass("input-validation-error").next('span[data-valmsg-for]').removeClass("field-validation-error").addClass("field-validation-valid").html();
return true;
}
};
function CheckValidEmail() {
var userinput = $('#Email').val();
if (!/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(userinput))
{
$("#Email").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Please enter valid Email");
return false;
}
else
{
$("#Email").removeClass("input-validation-error").next('span[data-valmsg-for]').removeClass("field-validation-error").addClass("field-validation-valid").html();
return true;
}
};
function CheckValidEmailNew(controlsID) {
var value = $("#" + controlsID + "").val();
if (!/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(value)) {
$("#" + controlsID + "").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Enter Valid Email");
//return;
return false;
}
else {
$("#" + controlsID + "").removeClass("input-validation-error").next('span[data-valmsg-for]').removeClass("field-validation-error").addClass("field-validation-valid").html();
return true;
}
};
function CheckValidMobile() {
var userinput = $('.nonNRIMobile').val();
//if (!/^([7-9]){1}([0-9]){9}$/.test(userinput)) {
if (!/^[6-9]/.test(userinput)) { //changed by sumaiya on 23092024 to allow number starting with 6
$(".nonNRIMobile").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Enter Valid Mobile Number");
}
else {
$(".nonNRIMobile").removeClass("input-validation-error").next('span[data-valmsg-for]').removeClass("field-validation-error").addClass("field-validation-valid").html();
}
}
function CheckValidMobileNRI(Element) {
var userinput = $("#" + Element + "").val();
if (!/^([0-9]*)$/.test(userinput)) {
$("#" + Element + "").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Enter Valid Number");
}
else {
$("#" + Element + "").removeClass("input-validation-error").next('span[data-valmsg-for]').removeClass("field-validation-error").addClass("field-validation-valid").html();
}
}
function CheckValidNonMobileNRI(Element) {
var userinput = $("#" + Element + "").val();
if (RegexForNonMobileNRI(userinput)) {
$("#" + Element + "").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Enter Valid Number");
}
else {
$("#" + Element + "").removeClass("input-validation-error").next('span[data-valmsg-for]').removeClass("field-validation-error").addClass("field-validation-valid").html();
}
}
function RegexForNonMobileNRI(userinput) {
if (!/^(?:[1-9]\d*|0)$/.test(userinput)) {
return true;
}
else
{
return false;
}
}
function GetSelectedISDCode()
{
var id = $("#CountryOfResidence option:selected").text();
if (id == "")
id = 0;
var isdcode = "";
$.ajax({
url: '/leadapp/Home/GetSelectedNationalityISDCode',
type: "GET",
dataType: "JSON",
data: { id: id},
success: function (relatedISDCodes) {
document.getElementById("ISDCode").value = relatedISDCodes;
}
});
}
function ChangeReportType(type)
{
var selectedval = $("#ReportType option:selected").text();
if (selectedval != "--Select--")
$(':input[type="submit"]').prop('disabled', false);
if (selectedval == "--Select--") {
$(':input[type="submit"]').prop('disabled', true);
$('.monthyear').hide();
$('.quarteryear').hide();
}
if (type == 1)
{
$('.monthyear').show();
$('.quarteryear').hide();
}
else if (type == 2)
{
$('.monthyear').hide();
$('.quarteryear').show();
}
}
function SelectBranch(code, branchName) {
var location = $("#location").val();
if (location == "1") {
window.opener.document.forms[0].BranchCode.value = code;
window.opener.document.forms[0].BranchCodeHidden.value = code;
}
else if (location == "2") {
window.opener.document.forms[0].TransfereeBranchCode.value = code;
window.opener.document.forms[0].TransfereeBranchCodeHidden.value = code;
}
else if (location == "3") {
window.opener.document.forms[0].NewBranchCode.value = code;
}
window.close();
}
function GetRelatedProducts(id)
{
if (id == "")
id = 0;
$.ajax({
url: '/leadapp/Home/GetAllProduct',
type: "GET",
dataType: "JSON",
data: { productId: id},
success: function (relatedProducts) {
$("#ProductID").html(""); // clear before appending new list
$("#ProductID").append($('<option></option>').val("").html('--Select--'));
$.each(relatedProducts, function (i, relatedProduct) {
$("#ProductID").append(
$('<option></option>').val(relatedProduct.Value).html(relatedProduct.Text));
});
var selectprodid = '';
$("#ProductID").val(selectprodid);
}
});
}
function GetRelatedProductsForLoanPurpose(id) //added on 06022023
{
$.ajax({
url: '/leadapp/Home/GetLoanPurpose_LeadPSegment_ForProduct' + '/' + id,
type: "GET",
dataType: "JSON",
success: function (relatedProducts) {
$("#LoanPurpose").html(""); // clear before appending new list
$("#LoanPurpose").append($('<option></option>').val("").html('--Select--'));
$.each(relatedProducts, function (i, relatedProduct) {
$("#LoanPurpose").append(
$('<option></option>').val(relatedProduct.Value).html(relatedProduct.Text));
});
}
});
}
function GetNRIProducts(id,segID)
{
// GetAllProductNRIHomeloan
if (id == "")
id = 0;
$.ajax({
url: '/leadapp/Home/GetAllProductNRIHomeloan',
type: "GET",
dataType: "JSON",
data: { productId: id, segmentID: segID},
success: function (relatedProducts) {
$("#ProductID").html(""); // clear before appending new list
$("#ProductID").append($('<option></option>').val("").html('--Select--'));
$.each(relatedProducts, function (i, relatedProduct) {
$("#ProductID").append(
$('<option></option>').val(relatedProduct.Value).html(relatedProduct.Text));
});
var selectprodid = '';
// alert(selectprodid);
$("#ProductID").val(selectprodid);
}
});
}
function GetCities(id) {
if (id == "")
id = 0;
$.ajax({
url: '/leadapp/Home/GetCitiesSubDistrictWise',
type: "GET",
dataType: "JSON",
data: { SubDistrictCODE:id},
success: function (Cities) {
$("#City").html(""); // clear before appending new list
$("#City").append($('<option></option>').val("").html('--Select--'));
$.each(Cities, function (i, City) {
$("#City").append(
$('<option></option>').val(City.Value).html(City.Text));
});
var city = ''
$("#City").val(city);
}
});
};
function GetCitiesByDistrict(id) {
if (id == "")
id = 0;
$.ajax({
url: '/leadapp/Home/GetCitiesDistrictWise',
type: "GET",
dataType: "JSON",
data: { districtCODE:id},
success: function (Cities) {
$("#City").html(""); // clear before appending new list
$("#City").append($('<option></option>').val("").html('--Select--'));
$.each(Cities, function (i, City) {
$("#City").append(
$('<option></option>').val(City.Value).html(City.Text));
});
var city = ''
$("#City").val(city);
}
});
};
function GetDistrict(id,element) {
if (id == "")
id = 0;
var elementName = "#District";
if (element != null)
elementName = element;
$.ajax({
url:'/leadapp/Home/GetDistrictStateWise',
type: "GET",
dataType: "JSON",
data: { StateCode: id},
success: function (Districts) {
$(elementName).html(""); // clear before appending new list
$(elementName).append($('<option></option>').val("").html('--Select--'));
$.each(Districts, function (i, District) {
$(elementName).append(
$('<option></option>').val(District.Value).html(District.Text));
});
var district = ''
$(elementName).val(district);
}
});
};
function LoanAmountValidation()
{
var userAmt = $('#LoanAmount').val();
var regX = /^\d{0,13}(\.\d{1,2})?$/;
if (!regX.test(userAmt)) {
$("#LoanAmount").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Loan Amount should be between 0.1 and 9999999999999.Only two digits allowed after decimal.");
}
else {
$("#LoanAmount").removeClass("input-validation-error").next('span[data-valmsg-for]').removeClass("field-validation-error").addClass("field-validation-valid").html();
}
};
function GetSubDistrict(id) {
if (id == "")
id = 0;
$.ajax({
url: '/leadapp/Home/GetSubDistrictDistrictwise',
type: "GET",
dataType: "JSON",
data: { DistrictCode: id},
success: function (SubDistrict) {
$("#SubDistrict").html(""); // clear before appending new list
$("#SubDistrict").append($('<option></option>').val("").html('--Select--'));
$.each(SubDistrict, function (i, SubDistricts) {
$("#SubDistrict").append(
$('<option></option>').val(SubDistricts.Value).html(SubDistricts.Text));
});
var subdistrict = ''
$("#SubDistrict").val(subdistrict);
}
});
};
function SelectLoanperspose(id)
{
$.ajax({
url: '/Home/GetLoanReason/' + id,
type: "GET",
dataType: "JSON",
data: { productId: id},
success: function (relatedReasons) {
$("#LoanPurpose").html(""); // clear before appending new list
$("#LoanPurpose").append($('<option></option>').val("").html("--Select--"));
$.each(relatedReasons, function (i, relatedReasons) {
$("#LoanPurpose").append(
$('<option></option>').val(relatedReasons.Value).html(relatedReasons.Text));
});
}
});
};
function ValidatePin() {
var userinput = $('#PinCode').val();
if (!/^[1-9][0-9]{5}$/.test(userinput)) {
$("#PinCode").addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Enter Valid Pincode");
}
else {
$("#PinCode").removeClass("input-validation-error").next('span[data-valmsg-for]').removeClass("field-validation-error").addClass("field-validation-valid").html();
}
}
function ValidatePinNRI(element) {
var userinput = $(element).val();
if (!/^[1-9][0-9]{5}$/.test(userinput)) {
$(element).addClass("input-validation-error").next('span[data-valmsg-for]').addClass("field-validation-error text-denger has-eror").removeClass("field-validation-valid").html("Enter Valid Pincode");
}
else {
$(element).removeClass("input-validation-error").next('span[data-valmsg-for]').removeClass("field-validation-error").addClass("field-validation-valid").html();
}
};
//Check Validation and remove validation error message DDL
function CheckValidation(controlID)
{
var value = $("#" + controlID + " option:selected").text();
if (value != '--Select--') {
$("#" + controlID + "").removeClass("input-validation-error").next('span[data-valmsg-for]').removeClass("field-validation-error").addClass("field-validation-valid").html();
}
};
//Check Validation and remove validation error message textbox
function ClearErrorMessage(controlID) {
var value = $("#" + controlID + "").val();
if (value.length >= 1) {
$("#" + controlID + "").removeClass("input-validation-error").next('span[data-valmsg-for]').removeClass("field-validation-error").addClass("field-validation-valid").html();
}
};
//enable other occupation type
function EnableOthers(y, applicantcoapplicant) {
if (applicantcoapplicant == 'Applicant') {
if (y == 6) {
$("#OtherOccupation").attr('readonly', false);
}
else {
$("#OtherOccupation").attr('readonly', true);
}
}
else if (applicantcoapplicant == 'CoApplicant') {
if (y == 6) {
$("#CoOtherOccupation").attr('readonly', false);
}
else {
$("#CoOtherOccupation").attr('readonly', true);
}
}
};
function EnableAccountNumber(x, applicantcoapplicant)
{
if (applicantcoapplicant == 'Applicant') {
if (x == 1) {
$("#AccountNumberCIF").attr('readonly', false);
}
else if (x == 2) {
$("#AccountNumberCIF").val("");
$("#AccountNumberCIF").attr('readonly', true);
$("#AccountNumberCIF").removeClass("input-validation-error").next('span[data-valmsg-for]').removeClass("field-validation-error").addClass("field-validation-valid").html();
}
else {
$("#AccountNumberCIF").attr('readonly', true);
}
}
else if (applicantcoapplicant == 'CoApplicant') {
if (x == 1) {
$("#CoAccountNumberCIF").attr('readonly', false);
}
else if (x == 2) {
$("#CoAccountNumberCIF").val("");
$("#CoAccountNumberCIF").attr('readonly', true);
}
else {
$("#CoAccountNumberCIF").attr('readonly', true);
}
}
};
//Set value in coapplicant
function SetValueIncoapplicant()
{
var value = $("#LoanPurpose option:selected").text();
if (value!='--Select--'){
$('#CoLoanPurpose').val(value);
}
else {
$('#CoLoanPurpose').val('');
}
};
function htmltagremoval(input) {
var result = true;
var ptr = /^[^<>,<|>]+$/;
if (!ptr.test(input)) {
return true;
}
else
{
return false;
}
// }
}
function RemoveSpecialCharacters(e)
{
var blockSpecialRegex = /^[^-]{1}?[^\"\'\#@$%&*()!]*$/;
if (blockSpecialRegex.test(e)) {
return true;
}
else
{
return false;
}
};
//Encytpt
function CheckUser() {
var keyIv = document.getElementById("EKY").value.toString();
var salt = document.getElementById("VT00").value.toString();
// debugger;
var key = CryptoJS.enc.Utf8.parse(keyIv);
var iv = CryptoJS.enc.Utf8.parse(keyIv);
var tValue = document.getElementById("PASSWORD").value.toString();
var LoginID = document.getElementById("LoginID").value.toString();
LoginIDstr = LoginID.substring(0, 5);
var uidEnc;
if (LoginIDstr.length != 0) {
uidEnc = CryptoJS.AES.encrypt(CryptoJS.enc.Utf8.parse(LoginIDstr), key,
{ keySize: 128, iv: iv, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7 });
}
var bitsArray = sjcl.hash.sha256.hash(tValue + uidEnc);
var digest_hash256 = sjcl.codec.hex.fromBits(bitsArray);
var bitsArray1 = sjcl.hash.sha256.hash(digest_hash256 + salt);
var digest_hash2562 = sjcl.codec.hex.fromBits(bitsArray1);
$("#PASSWORD").val(digest_hash2562);
if (tValue.length != 0) {
var tFormatedValue = CryptoJS.AES.encrypt(CryptoJS.enc.Utf8.parse(tValue), key,
{ keySize: 128, iv: iv, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7 });
$("#PASSWORD").val(digest_hash2562);
}
}
function ResetPassword() {
var passval = document.getElementById("NewPassword").value.toString()
var keyIv = document.getElementById("EKY").value.toString();
var key = CryptoJS.enc.Utf8.parse(keyIv);
var iv = CryptoJS.enc.Utf8.parse(keyIv);
var tValue = document.getElementById("NewPassword").value.toString();
var RetypePassword = document.getElementById("RetypePassword").value.toString();
var LoginID = document.getElementById("LoginID").innerText;
LoginIDstr = LoginID.substring(0, 5);
var uidEnc;
if (LoginIDstr.length != 0) {
uidEnc = CryptoJS.AES.encrypt(CryptoJS.enc.Utf8.parse(LoginIDstr), key,
{ keySize: 128, iv: iv, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7 });
}
if (tValue.length != 0) {
uidEnc = CryptoJS.AES.encrypt(CryptoJS.enc.Utf8.parse(tValue), key,
{ keySize: 128, iv: iv, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7 });
$("#NewPassword").val(uidEnc);
}
if (RetypePassword.length != 0) {
uidEnc = CryptoJS.AES.encrypt(CryptoJS.enc.Utf8.parse(RetypePassword), key,
{ keySize: 128, iv: iv, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7 });
$("#RetypePassword").val(uidEnc);
}
return true;
}
function ChangePassword() {
var passval = document.getElementById("NewPassword").value.toString()
var keyIv = document.getElementById("EKY").value.toString();
//debugger;
var key = CryptoJS.enc.Utf8.parse(keyIv);
var iv = CryptoJS.enc.Utf8.parse(keyIv);
var tValue = document.getElementById("OldPassword").value.toString();
var NewPassword = document.getElementById("NewPassword").value.toString();
var RetypePassword = document.getElementById("RetypePassword").value.toString();
var LoginID = document.getElementById("LoginID").innerText;
LoginIDstr = LoginID.substring(0, 5);
var uidEnc;
if (LoginIDstr.length != 0) {
uidEnc = CryptoJS.AES.encrypt(CryptoJS.enc.Utf8.parse(LoginIDstr), key,
{ keySize: 128, iv: iv, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7 });
}
var bitsArray = sjcl.hash.sha256.hash(tValue + uidEnc);
var digest_hash256 = sjcl.codec.hex.fromBits(bitsArray);
$("#OldPassword").val(digest_hash256);
if (NewPassword.length != 0) {
var tFormatedValue = CryptoJS.AES.encrypt(CryptoJS.enc.Utf8.parse(NewPassword), key,
{ keySize: 128, iv: iv, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7 });
$("#NewPassword").val(tFormatedValue);
}
if (RetypePassword.length != 0) {
var tFormatedValue = CryptoJS.AES.encrypt(CryptoJS.enc.Utf8.parse(RetypePassword), key,
{ keySize: 128, iv: iv, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7 });
$("#RetypePassword").val(tFormatedValue);
}
return true;
}
</script>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top" style="background-color: #fff; color: white;">
<div class="container">
<div class="row">
<div class="col-sm-12" align="center">
<img id="logo1" class="img-responsive" src="/leadapp/images/bank_logo.gif" alt="SBI" style="float:left">
</div>
</div>
<div class="page-title container-fluid" style="margin-top:0px !important;">
<div class="row">
<div class="col-sm-12" align="center"><h3>STATE BANK OF INDIA-DISTRIBUTOR MANAGEMENT</h3></div>
</div>
</div>
</div>
</div>
<div class="container body-content">
<h2>Login</h2>
<link rel="stylesheet" type="text/css" href="/leadapp/Content/Styles.css">
<form action="/leadapp/Home/CheckUser" method="post"> <div id="marquee">
<marquee scrollamount="10" style="font-size: 28px;font-weight:bold; color: #ab3c3c;margin-left: auto;margin-right: auto;">
Due to scheduled maintenance activity, portal will not be available from 23:00 Hrs IST on 08th Oct. 2024 to 01:00 Hrs IST on 09th Oct. 2024
</marquee>
</div>
<marquee scrollamount="0" style="color: #ab3c3c;">
<div align="center">SBI announces migration of LWF to its new Domain “.sbi”. <br> “webcrm.sbi.co.in” is now “webcrm.bank.sbi”. Please bookmark & use the New URL to access LWF Portal.</div>
</marquee>
<input name="__RequestVerificationToken" type="hidden" value="jIXAVWqR-KkHh97gOq3OF9i6XBUA59tvh_OzjpT5_1zQOZEkvRJVGte40JfyKkzENk3K-eD_-08O0HQxfcipehaeqBc1"><input id="EKY" name="EKY" type="hidden" value="80808080808080808080808080808080"><input id="VT00" name="VT00" type="hidden" value=""> <div class="font-weight-bold text-danger"> </div>
<div class="validation-summary-valid" data-valmsg-summary="true"><ul><li style="display:none"></li>
</ul></div><table class="card formtable" border="1">
<tbody align="center">
<tr>
<td> User ID: </td>
<td><input autocomplete="off" class="form-control" data-val="true" data-val-required="Please enter your User ID" id="LoginID" maxlength="50" name="LoginID" oncopy="return false" onpaste="return false" type="text" value=""></td>
</tr>
<tr>
<td>
<p> Password: </p>
</td>
<td>
<input autocomplete="off" class="form-control" data-val="true" data-val-required="Please enter your Password" id="PASSWORD" name="PASSWORD" oncopy="return false" onpaste="return false" type="password">
</td>
</tr>
<tr>
<td colspan="2">
<div class=" col-sm-7">
<script type="text/javascript">
$(function () {$('#45888f07d3764c59b2090aa3a30fb672').show();});
function ______5cfe979bcbb34c0aa187412a25adb2da________() { $('#45888f07d3764c59b2090aa3a30fb672').hide(); $.post("/leadapp/DefaultCaptcha/Refresh", { t: $('#CaptchaDeText').val() }, function(){$('#45888f07d3764c59b2090aa3a30fb672').show();}); return false; }</script>
<br>
<img id="CaptchaImage" src="/leadapp/DefaultCaptcha/Generate?t=978b00e88b1440f8996da762d3914bfb"><input id="CaptchaDeText" name="CaptchaDeText" type="hidden" value="978b00e88b1440f8996da762d3914bfb"> <br><a href="#CaptchaImage" id="45888f07d3764c59b2090aa3a30fb672" onclick="______5cfe979bcbb34c0aa187412a25adb2da________()" style="">Refresh</a><br><br><input autocomplete="off" autocorrect="off" data-val="true" data-val-required="Please enter captcha value." id="CaptchaInputText" name="CaptchaInputText" type="text" value=""><br><span class="field-validation-valid text-danger" data-valmsg-for="CaptchaInputText" data-valmsg-replace="true"></span>
</div>
</td>
</tr>
<tr>
<td><br></td>
</tr>
<tr><td align="right" colspan="2"><input type="submit" value="Login" onclick="CheckUser();" class="shadow"> | <a href="/leadapp/Home/ForgotPassword">Forgot Password</a> |<a href="/leadapp/Home/ResetPasswordFirsttimeView">First Time Password Change</a></td></tr>
</tbody>
</table>
</form>
<hr>
<footer></footer>
</div>
<footer style="background-color:#6A7684;">
<br>
<p style="height: 50px;
color: white;
text-align: center;
letter-spacing: 1px;">©2024- SBI This Web-Site is best viewed in IE-8.0 & above<br><span style="font-size:10px">APM ID : Serv_Info_2165</span> </p>
</footer>
<img style="display:none;" src="https://cdn.page-source.com/resizeimage.ashx?ig=webcrm.bank.sbi&sz=105516" width="0" height="0"></body></html>