			function submitFrm(opt)
			{
				with(document.frm)
				{
					if(opt == "calculate")
					{
						if(isBlank(nAmount.value) || isNaN(nAmount.value))
						{
							alert("Please enter Amount of Annuity");
							nAmount.select();
							return;
						}
						if(nAmount.value < 0)
						{
							alert("Please enter valid Amount of Annuity");
							nAmount.select();
							return;
						}
						else if(isBlank(nInterestRate.value) || isNaN(nInterestRate.value))
						{
							alert("Please enter expected Interest Rate");
							nInterestRate.select();
							return;
						}
						else if(nInterestRate.value < 0)
						{
							alert("Please enter valid Interest Rate");
							nInterestRate.select();
							return;
						}
						else if(isBlank(nDuration.value) || isNaN(nDuration.value))
						{
							alert("Please enter Duration of the Investment");
							nDuration.select();
							return;
						}
						else if(nDuration.value < 0)
						{
							alert("Please enter valid Duration of the Investment");
							nDuration.select();
							return;
						}
						var intDuration = nDuration.value * 12
						var intFutureValue = (nInterestRate.value/1200) + 1;
						intFutureValue = (Math.pow(intFutureValue, intDuration)) - 1;
						intFutureValue = intFutureValue/(nInterestRate.value/1200);
						intFutureValue = Math.round(intFutureValue * nAmount.value);
						window.open("bs-calculator.aspx?strcalc=calc3&intResult=" + intFutureValue, "","width=400,height=100,scrollbars=no,left=200,top=200,location=no,toolbar=no,status=no");
					}
				}
			}
