";
optDiv.innerHTML=OptionPanel;
ShowInputDialog(optDiv,"Match Found","hint","inptDialog");
}
function copyReport(visit,cuuid)
{
$("#cuuid").val(cuuid);
SubmitForm('copy'+visit+'report', '_parent', document.forms[0].name);
}
function fetchDedupe()
{
$("#DedupeSection").html("Loading ");
var usid=$("#usid").val();
var uuid=$("#uuid").val();
QueryStr="val0="+uuid+"&val1="+usid;
RunAjax('GET','fetchdedupe', QueryStr, 3);
}
function callkeydownhandler(evnt) {
var ev = evnt;
keyListen('','',ev);
}
window.document.addEventListener("keydown", callkeydownhandler, false);
function ValidateResiReport()
{
validate(document.getElementById("visitedbefore"),'t','');
validate(document.getElementById("contactable"),'t','Remarks');
if(document.getElementById("addrconfd").value!='-1')
{
validate(document.getElementById("changeinadd"),'t','');
validate(document.getElementById("correctaddr"),'t','Remarks');
}
if(document.getElementById("addrconfd").value=='Yes')
{
validate(document.getElementById("metperson"),'t','Remarks');
validate(document.getElementById("metrela"),'t','');
if(document.getElementById("metrela").value=='Others')
{
validate(document.getElementById("metrelaoth"),'t','Remarks');
}
if(document.getElementById("owner").value=='Others')
{
validate(document.getElementById("owneroth"),'t','Remarks');
}
if(document.getElementById("proof").value=='Yes')
{
validate(document.getElementById("proofdet"),'t','Remarks');
}
if(document.getElementById("portfolioid").value==176){
validate(document.getElementById("Field50_2"),'t','');
}
validate(document.getElementById("access"),'t','');
validate(document.getElementById("accmode"),'t','');
validate(document.getElementById("locality"),'t','');
if(document.getElementById("locality").value=='Others')
{
validate(document.getElementById("locaoth"),'t','SplInstruction');
}
validate(document.getElementById("carpetarea"),'t','SplInstruction');
validate(document.getElementById("socboard"),'t','');
if(document.getElementById("socboard").value=='Yes')
{
validate(document.getElementById("socboarddet"),'t','SplInstruction');
}
validate(document.getElementById("restype"),'t','');
if(document.getElementById("restype").value=='Others')
{
validate(document.getElementById("typeoth"),'t','SplInstruction');
}
validate(document.getElementById("construction"),'t','');
if(document.getElementById("construction").value=='Others')
{
validate(document.getElementById("constoth"),'t','SplInstruction');
}
validate(document.getElementById("comdom"),'t','');
validate(document.getElementById("nameplate"),'t','');
if(document.getElementById("nameplate").value=='Yes')
{
validate(document.getElementById("platedet"),'t','SplInstruction');
}
if(document.getElementById("interior").value!='-1')
{
validate(document.getElementById("furlevel"),'t','');
}
validate(document.getElementById("doubtfull"),'t','');
validate(document.getElementById("political"),'t','');
if(document.getElementById("political").value=='Yes')
{
validate(document.getElementById("politicdet"),'t','Remarks');
}
validate(document.getElementById("risklevel"),'t','');
if(document.getElementById("risklevel").value!='-1')
{
validate(document.getElementById("riskremarks"),'t','Remarks');
}
}
if($("#portfolioid").val()!=81 && $("#portfolioid").val()!=91) // for HDFC PFC Only, Updated on 29 June 2016
{
validate(document.getElementById("visitdate"),'t','Date');
validate(document.getElementById("visittime"),'t','Time');
}
validate(document.getElementById("verremarks"),'t','Remarks');
validate(document.getElementById("veropinion"),'t','');
if(document.getElementById("utype").value=='mgr')
{
var stat=document.getElementById("status");
validate(stat,'t','');
if(stat.value.toUpperCase()=='NOT RECOMMENDED' || stat.value.toUpperCase()=='NEGATIVE')
{
validate(document.getElementById("negreason"),'t','');
}
validate(document.getElementById("remarks"),'t','Remarks');
validate(document.getElementById("redalert"),'t','');
if(document.getElementById("redalert").value=='Yes')
{
validate(document.getElementById("alertrem"),'t','Remarks');
}
validate(document.getElementById("isocl"),'t','');
if(document.getElementById("isocl").value=='Yes')
{
validate(document.getElementById("distance"),'t','SplInstruction');
}
validate(document.getElementById("issameadd"),'t','');
}
ValidateHdfcCCPhoto();
}
function ValidateHdfcCCPhoto()
{
if(document.getElementById("utype").value=='opr')
{
if(document.getElementById("portfolioid").value==44)
{
validate(document.getElementById("Field15_1"),'t','');
}
}
}
function ValidateOffReport()
{
validate(document.getElementById("visitedbefore"),'t','');
validate(document.getElementById("contactable"),'t','Remarks');
if(document.getElementById("addrconfd").value!='-1')
{
validate(document.getElementById("changeinadd"),'t','');
validate(document.getElementById("correctaddr"),'t','Remarks');
}
if(document.getElementById("addrconfd").value=='Yes')
{
validate(document.getElementById("metperson"),'t','Remarks');
validate(document.getElementById("metrela"),'t','');
if(document.getElementById("metrela").value=='Others')
{
validate(document.getElementById("metrelaoth"),'t','Remarks');
}
if(document.getElementById("appdesign").value=='Others')
{
validate(document.getElementById("appdesignoth"),'t','SplInstruction');
}
if(document.getElementById("compprof").value=='Others')
{
validate(document.getElementById("compprofoth"),'t','Remarks');
}
validate(document.getElementById("appcategory"),'t','');
if(document.getElementById("portfolioid").value==176){
if(document.getElementById("appcategory").value == 'Salaried'){
validate(document.getElementById("jobtype"),'t','');
}
validate(document.getElementById("Field50_2"),'t','');
}
validate(document.getElementById("bizboard"),'t','');
validate(document.getElementById("locality"),'t','');
if(document.getElementById("locality").value=='Others')
{
validate(document.getElementById("locaoth"),'t','SplInstruction');
}
validate(document.getElementById("easeloc"),'t','');
if(document.getElementById("ownership").value=='Others')
{
validate(document.getElementById("owneroth"),'t','Remarks');
}
validate(document.getElementById("doubtfull"),'t','');
validate(document.getElementById("political"),'t','');
if(document.getElementById("political").value=='Yes')
{
validate(document.getElementById("politicdet"),'t','Remarks');
}
validate(document.getElementById("risklevel"),'t','');
if(document.getElementById("risklevel").value!='-1')
{
validate(document.getElementById("riskremarks"),'t','Remarks');
}
}
if($("#portfolioid").val()!=81 && $("#portfolioid").val()!=91) // for HDFC PFC Only, Updated on 29 June 2016
{
validate(document.getElementById("visitdate"),'t','Date');
validate(document.getElementById("visittime"),'t','Time');
}
validate(document.getElementById("verremarks"),'t','Remarks');
validate(document.getElementById("veropinion"),'t','');
if(document.getElementById("utype").value=='mgr')
{
var stat=document.getElementById("status");
validate(stat,'t','');
if(stat.value.toUpperCase()=='NOT RECOMMENDED' || stat.value.toUpperCase()=='NEGATIVE')
{
validate(document.getElementById("negreason"),'t','');
}
validate(document.getElementById("remarks"),'t','Remarks');
validate(document.getElementById("redalert"),'t','');
if(document.getElementById("redalert").value=='Yes')
{
validate(document.getElementById("alertrem"),'t','Remarks');
}
validate(document.getElementById("isocl"),'t','');
if(document.getElementById("isocl").value=='Yes')
{
validate(document.getElementById("distance"),'t','SplInstruction');
}
validate(document.getElementById("issameadd"),'t','');
}
ValidateHdfcCCPhoto();
}
function ValidateTeleReport()
{
if($("#raddr").length > 0)
{
validate(document.getElementById("rcontno"),'t','Phone');
validate(document.getElementById("rcontacted"),'t','');
if(document.getElementById("rcontacted").value=='Yes')
{
validate(document.getElementById("rcontpers"),'t','Remarks');
validate(document.getElementById("rcontrela"),'t','');
if(document.getElementById("rcontrela").value=='Others')
{
validate(document.getElementById("rcontrelaoth"),'t','Remarks');
}
if(document.getElementById("rowner").value=='Others')
{
validate(document.getElementById("rowneroth"),'t','Remarks');
}
validate(document.getElementById("rnameconfd"),'t','');
validate(document.getElementById("loanappconfd"),'t','');
validate(document.getElementById("raddrconfd"),'t','');
}
else
{
validate(document.getElementById("rnotcontres"),'t','');
}
validate(document.getElementById("rtotattempt"),'t','');
validate(document.getElementById("rattempt1"),'t','Date');
validate(document.getElementById("rtime1"),'t','Time');
validate(document.getElementById("rstatus1"),'t','');
validate(document.getElementById("roverallstat"),'t','');
validate(document.getElementById("rremarks"),'t','Remarks');
}
if($("#oaddr").length > 0)
{
validate(document.getElementById("ocontno"),'t','Phone');
validate(document.getElementById("ocontacted"),'t','');
if(document.getElementById("ocontacted").value=='Yes')
{
validate(document.getElementById("ocontpers"),'t','Remarks');
validate(document.getElementById("ocontrela"),'t','');
if(document.getElementById("ocontrela").value=='Others')
{
validate(document.getElementById("ocontrelaoth"),'t','Remarks');
}
if(document.getElementById("odesign").value=='Others')
{
validate(document.getElementById("odesignoth"),'t','SplInstruction');
}
if(document.getElementById("onob").value=='Others')
{
validate(document.getElementById("onoboth"),'t','Remarks');
}
validate(document.getElementById("onameconfd"),'t','');
validate(document.getElementById("oaddrconfd"),'t','');
}
else
{
validate(document.getElementById("onotcontres"),'t','');
}
validate(document.getElementById("oattempt"),'t','');
validate(document.getElementById("oattempt1"),'t','Date');
validate(document.getElementById("otime1"),'t','Time');
validate(document.getElementById("ostatus1"),'t','');
validate(document.getElementById("ooverallstat"),'t','');
validate(document.getElementById("oremarks"),'t','Remarks');
}
}
function ValidateOthReport()
{
validate(document.getElementById("addrconfd"),'t','');
if(document.getElementById("addrconfd").value!='-1')
{
validate(document.getElementById("changeinadd"),'t','');
validate(document.getElementById("correctaddr"),'t','Remarks');
}
if($("#portfolioid").val()==81 || $("#portfolioid").val()==91) // for HDFC PFC Only, Updated on 29 June 2016
{
validate(document.getElementById("visitdate"),'t','Date');
}
if(document.getElementById("addrconfd").value=='Yes')
{
validate(document.getElementById("doubtfull"),'t','');
validate(document.getElementById("political"),'t','');
if(document.getElementById("political").value=='Yes')
{
validate(document.getElementById("politicdet"),'t','Remarks');
}
validate(document.getElementById("risklevel"),'t','');
if(document.getElementById("risklevel").value!='-1')
{
validate(document.getElementById("riskremarks"),'t','Remarks');
}
}
if($("#portfolioid").val()!=81 && $("#portfolioid").val()!=91) // for HDFC PFC Only, Updated on 29 June 2016
{
validate(document.getElementById("visitdate"),'t','Date');
validate(document.getElementById("visittime"),'t','Time');
}
validate(document.getElementById("verremarks"),'t','Remarks');
validate(document.getElementById("veropinion"),'t','');
if(document.getElementById("utype").value=='mgr')
{
var stat=document.getElementById("status");
validate(stat,'t','');
if(stat.value.toUpperCase()=='NOT RECOMMENDED' || stat.value.toUpperCase()=='NEGATIVE')
{
validate(document.getElementById("negreason"),'t','');
}
validate(document.getElementById("remarks"),'t','Remarks');
validate(document.getElementById("redalert"),'t','');
if(document.getElementById("redalert").value=='Yes')
{
validate(document.getElementById("alertrem"),'t','Remarks');
}
validate(document.getElementById("isocl"),'t','');
if(document.getElementById("isocl").value=='Yes')
{
validate(document.getElementById("distance"),'t','SplInstruction');
}
validate(document.getElementById("issameadd"),'t','');
}
}
function ValidateFDReport()
{
var stat=document.getElementById("overallstatus");
validate(stat,'t','');
}
function ValidateRTReport()
{
var stat1=document.getElementById("ref1status");
var rem1=document.getElementById("ref1remarks");
var stat2=document.getElementById("ref2status");
var rem2=document.getElementById("ref2remarks");
var ref1=document.getElementById("refcontactno1");
var ref2=document.getElementById("refcontactno2");
if(ref1.value !='' && ref1.value.trim().length > 5)
{
validate(stat1,'t','');
validate(rem1,'t','Remarks');
}
if(ref2.value !='' && ref2.value.trim().length > 5)
{
validate(stat2,'t','');
validate(rem2,'t','Remarks');
}
}
function CheckLoan(lamt,prod)
{
prod=prod.toUpperCase();
if(Number(lamt) >= 500000 && (prod.search('AUTO LOAN')>-1 || prod=='AL' || prod=='CAR LOAN' || prod=='TW LOAN' || prod=='TWO WHEELER LOAN'))
{
return true;
}
else if(Number(lamt) >= 3000000 && (prod=='HOME LOAN' || prod=='HL' || prod.search('MORTGAGE')>-1 || prod=='LAP'))
{
return true;
}
else
{
return false;
}
}
function FilterNegReason(elm,vistype)
{
var val=$(elm).val().trim();
var port=$("#portfolioid").val();
if(port==65)
{
if(val != '-1')
{
$("#negreason > option").each(function() {
if(this.value.search(val+'-') > -1)
{
$(this).show();
}
else
{
if(this.value != '-1')
{
$(this).hide();
}
}
});
}
else
{
$("#negreason > option").each(function() {
$(this).show();
});
}
$("#negreason").val('-1');
}
if(port==43)
{
if(val != '-1')
{
$("#negreason").attr("onblur","validate(this,'t','')");
$("#negreason").trigger("blur");
}
else
{
$("#negreason").attr("onblur","validate(this,'f','')");
$("#negreason").trigger("blur");
}
}
if(port == 25){
$("#negreason").html('NA Positive ');
if(val != '-1'){
if(val.toUpperCase() == "NEGATIVE"){
$("#negreason").html('NA Shifted Untraceable Entry Restricted / Tpc Not Confirmed Negative Neighbour Check Loan / Application Cancel No Such Person Slum Area (Residence) Negative Area Under Construction Detail Mismatched Refuse To Provide Details Applicant Not Stay/Applicant Not Working Ocl-Non Serviceable Area Incomplete Address Wrong Address/Incorrect Address Negative-Any other Reason Poor Living Condition Door Locked/ TPC Not Confirmed ');
}else if(val.toUpperCase() == "REFERRED"){
$("#negreason").html('NA Bachelor Accomodation / PG / Shared Rented Accmmodation Low Stability/Rented Residing 6 Months Lower Middle Class Area Applicant Residing In Relative House ');
}else{
}
}
}
if(port == 18 || port == 36 || port == 107 || port == 108){
$("#negreason").html('NA Positive ');
if(val != '-1'){
if(val.toUpperCase() == "NEGATIVE"){
$("#negreason").html(''+
'NA '+
'Shifted '+
'Police Link '+
'Object to Verification '+
'Met Person Refuse to Details '+
'Door locked/Entry Not allowed '+
(vistype === 'R' ? ''+
'Wrong Address '+
'No Such Person '+
'Negative Area '+
'Bachelor Accommodation '+
'No Resi Setup Seen '+
'Applicant Staying at Relative House ' :
'No Office Setup Seen ')+
(vistype === 'R' ? '' : 'Wrong Address '));
}else if(val.toUpperCase() == "REFERRED"){
$("#negreason").html(''+
'NA '+
'Low Resi/Office Stability '+
'TPC Not Confirm '+
(vistype === 'R' ? ''+
'Applicant Age Norm Not Met ' : ''));
}else if(val.toUpperCase() == "CNV"){
$("#negreason").html(''+
'NA '+
'Address not Traced/Incomplete/OCL ');
}else if(val.toUpperCase() == "FRAUD"){
$("#negreason").html(''+
'NA '+
'Fraud ');
}else{
}
}
}
}
function NegRepCalc()
{
var res=0;
var off=0;
var prop=0;
$("#pending").val(maxrow+1);
$('#tabbody tr [id*=visit]').each(function () {
if($(this).val()=='R'){res=res+1;}
else if($(this).val()=='O'){off=off+1;}
else if($(this).val()=='P'){prop=prop+1;}
});
$("#totresi").val(res);
$("#totoff").val(off);
$("#totprop").val(prop);
}
function fetchAutorem(pid,rtype,cat)
{
autorem_temp="";
autorem_vals= new Array(1);
RunAjax('POST','fetchautorem', "pid="+pid+"&rtype="+rtype+"&cat="+cat, 108); //108 reserved for fetching Hard Copy details
}
function AutoRemarks()
{
$("#remarks").val("");
var mulvals= new Array(1);
var tval="";
var indx=0;
if(autorem_temp != "")
{
var autorem=autorem_temp;
for(indx = autorem_vals.length-1; indx >= 0; indx--)
{
mulvals=autorem_vals[indx].split("-");
tval=$("#"+mulvals[0]).val();
if(mulvals.length > 1 && tval=="Others")
{
tval=$("#"+mulvals[1]).val();
}
else
{
tval=$("#"+mulvals[0]).val();
}
autorem=autorem.replace("<>",tval);
}
$("#remarks").val(autorem.toUpperCase());
}
}
function DisableFields(fields,elm,keyVal)
{
var flist= new Array(1);
flist=fields.split(",");
var indx=0;
for(indx = flist.length-1; indx >= 0; indx--)
{
keyVal.search($(elm).val()) > -1 ? $("#"+flist[indx]).show():$("#"+flist[indx]).hide();
}
}
function triggers(vistype) //25 Apr 2016
{
var trigs=document.getElementById("triggers");
if(vistype=='O')
{
if(document.getElementById("appcategory").value=='Salaried')
{
trigs.value = document.getElementById("sal_area").value == 'Negative' || document.getElementById("sal_area").value == 'Low Income' ? document.getElementById("sal_area").value+" Area":"";
if((document.getElementById("sal_area").value == 'Negative' || document.getElementById("sal_area").value == 'Low Income') && document.getElementById("ownership").value.toUpperCase().search("RENT") > -1)
{
trigs.value = trigs.value.length > 0 ? trigs.value+", Rented Premises" : "Rented Premises";
}
}
else
{
trigs.value = document.getElementById("se_area").value == 'Negative' || document.getElementById("se_area").value == 'Low Income' ? document.getElementById("se_area").value+" Area":"";
if(document.getElementById("ownership").value.toUpperCase().search("RENT") > -1)
{
trigs.value = trigs.value.length > 0 ? trigs.value+", Rented Premises" : "Rented Premises";
}
}
if(document.getElementById("rco").value == '1' && document.getElementById("ownership").value.toUpperCase().search("RENT") > -1)
{
trigs.value = trigs.value.length > 0 ? trigs.value+", RCO and Rented Premises" : "RCO and Rented Premises";
}
}
else
{
trigs.value = trigs.value = document.getElementById("res_area").value == 'Negative' || document.getElementById("res_area").value == 'Low Income' ? document.getElementById("res_area").value+" Area":"";
if(document.getElementById("metrela").value == 'Others')
{
trigs.value = trigs.value.length > 0 ? trigs.value+", Met person is not a family member" : "Met person is not a family member";
}
if(document.getElementById("rco").value == '1' && document.getElementById("owner").value.toUpperCase().search("RENT") > -1)
{
trigs.value = trigs.value.length > 0 ? trigs.value+", RCO and Rented Premises" : "RCO and Rented Premises";
}
}
}
function ChangeVerifier(vid)
{
verid=vid;
RunAjax('GET','verlist', "bid=1", 109);
}
function UpdateVer(verlist)
{
var optDiv=document.createElement("div");
optDiv.setAttribute("id","optDiv");
optDiv.setAttribute("class","FormPanel");
optDiv.setAttribute("style","font-family:Tahoma;overflow:visible;padding-right:15px;width:315px");
var OptionPanel="";
optDiv.innerHTML=OptionPanel;
ShowInputDialog(optDiv,"Transfer Case","hint","inptDialog");
}
function InitiateTransfer(dialg,vid,issms,spinst,tvisit,sender)
{
//if(vid==verid){ alert('Cannot transfer to same verifier. Please change verifier');return false;}
var pid=$('#portfolioid').val();
var usid=$('#usid').val();
var uuid=$('#uuid').val();
issms=issms ? 1:0;
$(sender).css("background","url('/matrix/images/loading_circle.gif') 4px center no-repeat");
$(sender).val("Transfering...");
QueryStr="val0="+pid+"&val1="+uuid+"&val2="+verid+"&val3="+vid+"&val4="+issms+"&val5="+spinst+"&val6="+usid+"&val7="+tvisit;
RunAjax('POST','transfersinglevisit', QueryStr, 110);
}
function fetchDocs(uuid,vtype)
{
RunAjax('POST','fetchtaggeddocs', "uuid="+$("#uuid").val()+"&vtype="+vtype, 111);
}
/*function tagDocuments(vtype)
{
var uuid=$("#uuid").val();
$("#duuid").val(uuid);
$("#vtype").val(vtype);
$("#dport").val($("#portfolioid").val());
var optDiv=document.createElement("div");
optDiv.setAttribute("id","optDiv");
optDiv.setAttribute("class","FormPanel");
optDiv.setAttribute("style","font-family:Tahoma;overflow:visible;padding-right:15px;width:355px");
var OptionPanel="";
optDiv.innerHTML=OptionPanel;
ShowInputDialog(optDiv,"Tag Documents","hint","inptDialog");
fetchDocs(uuid,vtype);
} OLD CODE*/
function tagDocs(vtype)
{
var uuid=$("#uuid").val();
QueryStr="rand="+Math.round(Math.random()*4+1)+"&uuid="+uuid+"&type="+vtype+"&pid="+($("#portfolioid").val())+"&photo="+($("#requiredphoto").val())+"&mvcode="+($("#mvcode").val());
var dialogHost=(window.MatrixFrameDialog ? window : window.parent);
if(dialogHost.MatrixFrameDialog)
{
dialogHost.MatrixFrameDialog.open("tagdocs?"+QueryStr, "Tag Documents");
}
}
function validateBeforeUpload()
{
getFile();
}
function showPreview(elm)
{
if(document.getElementById('prevDiv') !== null)
{
$("#prevDiv").remove();
}
var optDiv=document.createElement("div");
optDiv.setAttribute("id","prevDiv");
optDiv.innerHTML = " ";
document.body.appendChild(optDiv);
$("#prevDiv").attr("style","position:absolute;height:auto;width:auto;z-index:20");
$("#prevDiv").attr("ondblclick","$('#prevDiv').remove()");
centerDivBoth(optDiv,'B');
}
function UpdateFeedback(visit)
{
RunAjax('POST','getQCFeedback', "uuid="+$("#uuid").val()+"&vtype="+visit, 7);
}
function DrawQCFeedbackDiag(vals)
{
var valarr = new Array(8);
if(vals!='0')
{
valarr = vals.split(ColDelim);
}
var optDiv=document.createElement("div");
optDiv.setAttribute("id","optDiv");
optDiv.setAttribute("class","FormPanel");
optDiv.setAttribute("style","font-family:Tahoma;overflow:visible;padding-right:15px;width:350px");
var OptionPanel="";
optDiv.innerHTML=OptionPanel;
ShowInputDialog(optDiv,"QC Feedback","hint","inptDialog");
if(typeof valarr[7]!='undefined')
{
$("#qc_risk").val(valarr[7]);
}
}
function UpdateQCRemarks(divID,diag,visit)
{
var $inputs = $('#'+divID).find('input,textarea');
$inputs.trigger('blur');
if(checkForm())
{
var vconf=$("#qc_vconfd").val();
var intiss=$("#qc_intiss").val();
var risk = $("#qc_risk").val();
var dfrom = encodeURIComponent($("#qc_dialfrom").val());
var contno=encodeURIComponent($("#qc_contactedno").val());
var contp=encodeURIComponent($("#qc_contpers").val());
var qcrem=encodeURIComponent($("#qc_remakrs").val());
RunAjax('POST','updateQCremarks', "uuid="+$("#uuid").val()+"&vtype="+visit+"&vconf="+vconf+"&intiss="+intiss+"&contno="+contno+"&contp="+contp+"&qcrem="+qcrem+"&usid="+($("#usid").val())+"&dfrom="+dfrom+"&risk="+risk, 6);
}
}
function ClrFieldsRemoveDiag(divID,diag)
{
var $inputs = $('#'+divID).find('input,textarea');
$inputs.val("");
$txtarea = $('#'+divID).find('textarea');
$("#qc_dialfrom").attr("onblur","validate(this,'f','')");
$txtarea.attr("onblur","validate(this,'f','')");
$inputs.trigger('blur');
RemoveDialog(diag);
}
function expandPanel(elm)
{
var divhtml="";
var windowpos = $(window).scrollTop();
$(".expandmask").html(divhtml).show();
$(".expandmask").css("top", windowpos);
}
// 18 Mar 2019
function FetchDocRemarks()
{
var appno = encodeURIComponent($("#applno").val());
var cname = encodeURIComponent($("#customername").val());
var pid = 47;
RunAjax('POST','fetchDocRemarks', "appno="+appno+"&cname="+cname+"&pid="+pid, 8);
}
// 30-11-2021
function HideSomeOptions(repType){
var portid = $("#portfolioid").val();
var vercode = $("#verifiercode").val();
var utype = $("#utype").val();
if(portid == 43 && vercode == 'DS' && repType == 'O'){
$("#crtshowphoto").hide();
$("#crtshowloc").hide();
}
if(portid == 43 && (utype == 'opr' || utype == 'bopr')){
$("#crtcontactno").hide();
}
}
function filterCrossCheckCases() {
var isChecked = $("#chkCrosscheck").is(":checked");
$("tr[id^='row']").each(function () {
var crosscheckVal = $(this).find("input[id$='crosscheck']").val();
if (isChecked) {
if (crosscheckVal && crosscheckVal.toLowerCase() === "t") {
$(this).show();
} else {
$(this).hide();
}
} else {
$(this).show();
}
});
}