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 calculator3() { //calculate monthly profit
		
		ratio3=document.frm.ratio3.value;
		ratio4=document.frm.ratio4.value;
		ratio5=document.frm.ratio5.value;
		ratio6=document.frm.ratio6.value;
		
		if(document.frm.dep1.value.length==0){
		alert("Please enter Value");
		document.frm.dep1.focus();
		return false;
		}
		if(document.frm.yeardep.value.length==0){
		alert("Please Select Year");
		document.frm.yeardep.focus();
		return false;
		}
		dep1=document.frm.dep1.value;
		yeardep=document.frm.yeardep.value;
		days=document.frm.days.value;
		
		if(dep1>0 && yeardep<=5){
			if(yeardep==1)
				pro1=(dep1*ratio3/100)*days/365;
			if(yeardep==2)
				pro1=(dep1*ratio4/100)*days/365;
			if(yeardep==3)
				pro1=(dep1*ratio5/100)*days/365;
			if(yeardep==5)
				pro1=(dep1*ratio6/100)*days/365;
			document.frm.pro1.value=pro1.toFixed(2);
		return true;
		}
					
			return false;
	}//function
	function calculator2() { //calculate Yearly Deposit
		
		ratio3=document.frm2.ratio3.value;
		ratio4=document.frm2.ratio4.value;
		ratio5=document.frm2.ratio5.value;
		ratio6=document.frm2.ratio6.value;
		
		if(document.frm2.pro.value.length==0){
		alert("Please enter Value");
		document.frm2.pro.focus();
		return false;
		}
		if(document.frm2.year.value.length==0){
		alert("Please Select Year");
		document.frm2.year.focus();
		return false;
		}
		pro=document.frm2.pro.value;
		year=document.frm2.year.value;
		days=document.frm2.days.value;
		if(pro>0 && year<=5){
			if(year==1)
				dep=(pro*100/ratio3)*365/days;
			if(year==2)
				dep=(pro*100/ratio4)*365/days;
			if(year==3)
				dep=(pro*100/ratio5)*365/days;
			if(year==5)
				dep=(pro*100/ratio6)*365/days;
			document.frm2.dep.value=dep.toFixed(2);
		return true;
		}
		
			
			return false;
	}//function
	

