function checkall(e) {
		//'"|\/<>?~`#$%^-+*,:;
		var reg = /^[a-zA-Z'"~`!@<>;{}()\/\\\|#\$\.,=\+\?-_^&*%:\-\[\]\s]*$/;
		var key = window.event ? e.keyCode : e.which;
		var keychar = String.fromCharCode(key);
		
		return !reg.test(keychar);
		
	}
	
	function checknone(e) {
		//'"|\/<>?~`#$%^-+*,:;
		var reg = /^[0-9a-zA-Z'"~`!@<>;{}()\/\\\|#\$\.,=\+\?-_^&*%:\-\[\]\s]*$/;
		var key = window.event ? e.keyCode : e.which;
		var keychar = String.fromCharCode(key);
		
		return !reg.test(keychar);
		
	}
	
	function calculator() {
		ratio1=document.frm.ratio1.value;
		ratio2=document.frm.ratio2.value;
		ratio3=document.frm.ratio3.value;
		ratio4=document.frm.ratio4.value;
		ratio5=document.frm.ratio5.value;
		ratio6=document.frm.ratio6.value;
		ratio7=document.frm.ratio7.value;
		ratio13=document.frm.ratio13.value;
		ratio14=document.frm.ratio14.value;
		ratio15=document.frm.ratio15.value;
		ratio16=document.frm.ratio16.value;
		if(document.frm.dep1.value.length==0){
		alert("Please enter Value");
		document.frm.dep1.focus();
		return false;
		}
		if(document.frm.year.value==0){
		alert("Please Select Year");
		document.frm.year.focus();
		return false;
		}
		dep1=document.frm.dep1.value;
		year=document.frm.year.value;
		
		if(dep1>=1) {
			if(year==1)
				pro1=(dep1*ratio1/100)*31/365;
			if(year==2)
				pro1=(dep1*ratio2/100)*31/365;
			if(year==3)
				pro1=(dep1*ratio3/100)*31/365;
			if(year==4)
				pro1=(dep1*ratio4/100)*31/365;
			if(year==5)
				pro1=(dep1*ratio5/100)*31/365;
			if(year==6)
				pro1=(dep1*ratio6/100)*31/365;
			if(year==7)
				pro1=(dep1*ratio7/100)*31/365;
			if(year==13)
				pro1=(dep1*ratio13/100)*31/365;
			if(year==14)
				pro1=(dep1*ratio14/100)*31/365;
			if(year==15)
				pro1=(dep1*ratio15/100)*31/365;
			if(year==16)
				pro1=(dep1*ratio16/100)*31/365;

		document.frm.pro1.value=pro1.toFixed(2);
		return true;
		} else
		{
			alert("Please enter value less then Rs.10000000");
			return false;
		}
		return false;
	} //function

function calculator3() {
			
		ratio12=document.frm2.ratio12.value;
		ratio22=document.frm2.ratio22.value;
		ratio32=document.frm2.ratio32.value;
		ratio42=document.frm2.ratio42.value;
		ratio52=document.frm2.ratio52.value;
		ratio62=document.frm2.ratio62.value;
		ratio72=document.frm2.ratio72.value;
		ratio132=document.frm2.ratio132.value;
		ratio142=document.frm2.ratio142.value;
		ratio152=document.frm2.ratio152.value;
		ratio162=document.frm2.ratio162.value;
		
		if(document.frm2.profit.value.length==0){
		alert("Please enter Value");
		document.frm2.profit.focus();
		return false;
		}
		if(document.frm2.y1.value==0){
		alert("Please Select Year");
		document.frm2.year.focus();
		return false;
		}
		profit=document.frm2.profit.value;
		y1=document.frm2.y1.value;
		
		if(profit>=1 && profit <1000000) {
			if(y1==1)
				deposit=(profit*100/ratio12)/31*365;
			if(y1==2)
				deposit=(profit*100/ratio22)/31*365;
			if(y1==3)
				deposit=(profit*100/ratio32)/31*365;
			if(y1==4)
				deposit=(profit*100/ratio42)/31*365;
			if(y1==5)
				deposit=(profit*100/ratio52)/31*365;
			if(y1==6)
				deposit=(profit*100/ratio62)/31*365;
			if(y1==7)
				deposit=(profit*100/ratio72)/31*365;
			if(y1==13)
				deposit=(profit*100/ratio132)/31*365;
			if(y1==14)
				deposit=(profit*100/ratio142)/31*365;
			if(y1==15)
				deposit=(profit*100/ratio152)/31*365;
			if(y1==16)
				deposit=(profit*100/ratio162)/31*365;

			document.frm2.deposit.value=deposit.toFixed(2);
		return true;
		} else
		{
			alert("Please enter value less then Rs.10000000");
			return false;
		}
		return false;
	} //function

