Toll Free: 1800-103-0003 | SMS: 97790-30003
NEW CUSTOMER
  • *
  • *
"; var window_dimensions = "toolbars=no,menubar=no,location=no,scrollbars=yes,resizable=yes,status=yes,WIDTH=1150 HEIGHT=700"; var win = window.open("","",window_dimensions); win.document.write(htm); win.document.close(); } function openPopUpforFirfox(pdf, fileName){ if(/Android|webOS|iPhone|iPod|iPad|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { var window_dimensions2 = "toolbars=no,menubar=no,location=no,scrollbars=yes,resizable=yes,status=yes"; win2 = window.open("","",window_dimensions2); win2.location.href = pdf; } else { var htm2 = ""+fileName+" "; htm2 += "" htm2 += "" htm2 += "" htm2 += ""; htm2 +="" ; } else{ htm2 +=" data='"+ pdf+"'>"; } htm2 +=""; htm2 += ""; var window_dimensions2 = "toolbars=no,menubar=no,location=no,scrollbars=yes,resizable=yes,status=yes"; win2 = window.open("","",window_dimensions2); win2.document.write(htm2); win2.document.close(); win2.focus(); } } function channelValidation(){ var channel = getValue('channel'); var loan = getValue('ti_loanType'); //alert("inside >>> Channel Validation >>> channel>>> "+channel+" loan >>> "+loan); if(channel != "" ){ //alert("else1>>> "+channel); if( loan != ""){ //alert("else2>>> "+channel); return true; }else{ //alert("else3>>> "+channel); $('#channelErr').show().html("Please select Loan Type"); return false; } }else{ //alert("else>>> "+channel); $('#channelErr').show().html("Please Select Channel"); return false; } } function generateGroupProposalForm11() { //alert('Inside generateGroupProposalForm' + getValue('channel')); $('#errorMessage').html(""); var error =channelValidation(); var loanTypeSaved = getValue('ti_loanType'); if (typeof error != 'undefined' && error!= false){ $.ajax({ url: '/lifeinsurance/PA_CHOPortal/GroupSecureProposalFormServlet', type: 'POST', data: { GenerateGroupProposalForm : 'GenerateGroupProposalForm', channel : getValue('channel'), ti_loanType : getValue('ti_loanType'), askCaptcha : getValue('askCaptcha1') }, error: function() { $('#info').html('

An error has occurred

'); }, dataType: 'json', success: function(resp) { //alert("resp >>>> "+resp.error); $('.overlay_form').hide(); if(resp.status == 0){ downloadProposalPDF1(loanTypeSaved); $('#channelErr').show().html(""); $('#errorMessage').show().html(resp.msg); //console.log(resp.msg); }else{ $('#channelErr').show().html(""); $('#errorMessage').show().html(resp.msg); showError(resp.error); } }, }); } } function clearText(){ //alert("in cleartext >>> channel "+document.getElementById("channel").value); document.getElementById("channel").value = ""; document.getElementById("ti_loanType").value = ""; document.getElementById("askCaptcha1").value = ""; } function showError(error) { $(".errorMsg").html(""); $.each(error, function(k, v) { //alert("Key:"+k); $('#'+k).parent().append('
'+v+'
'); }); }