LIC Jeevan Kishore Maturity Calculator
योजना 102 / Plan 102 – Calculate Your Investment Returns
निवेश विवरण / Investment Details
${content}
`);
newWindow.document.close();
setTimeout(() => {
newWindow.print();
newWindow.close();
}, 500);
}
function resetCalculator() {
document.getElementById('age').value = '';
document.getElementById('sumAssured').value = '';
document.getElementById('premium').value = '';
document.getElementById('premiumTerm').value = '';
document.getElementById('policyTerm').value = '';
document.getElementById('resultsSection').classList.add('hidden');
}
// Input validation
document.getElementById('age').addEventListener('input', function() {
if (this.value > 50) this.value = 50;
if (this.value < 0) this.value = 0;
});
document.getElementById('sumAssured').addEventListener('input', function() {
if (this.value < 50000) this.value = 50000;
if (this.value > 4000000) this.value = 4000000;
});
document.getElementById('premium').addEventListener('input', function() {
if (this.value < 1000) this.value = 1000;
});