			function submitFrm(opt)
			{
				with(document.frm)
				{
					if(opt == "calculate")
					{
						if(isBlank(nAmount.value) || isNaN(nAmount.value))
						{
							alert("Please enter the Investment Amount");
							nAmount.select();
							return;
						}
						if(nAmount.value < 0)
						{
							alert("Please enter valid Amount");
							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 intFutureValue = nInterestRate.value/100;
						intFutureValue = intFutureValue + 1;
						intFutureValue = Math.pow(intFutureValue, nDuration.value);
						intFutureValue = intFutureValue * nAmount.value;
						intFutureValue = Math.round(intFutureValue);
						window.open("bs-calculator.aspx?strcalc=calc1&intResult=" + intFutureValue, "","width=400,height=100,scrollbars=no,left=200,top=200,location=no,toolbar=no,status=no");
					}
				}
			}
