function loadApplyVariables(check,term,Ammount,Apr,totalammount,monthly,Saving){		
		document.applyForm.app_checkBit.value = check;
		document.applyForm.app_term.value = term;
		document.applyForm.app_ammount.value = Ammount;
		document.applyForm.app_apr.value = Apr;
		document.applyForm.app_month_repay.value = totalammount;
		document.applyForm.app_total_repay.value = monthly;
		document.applyForm.app_month_saving.value = Saving;		
		}
	function apply(){
		if(checkSelection()){
			document.applyForm.submit();
			}
		else{
			window.alert("Please check the desired loan term.")
			}
		}
	function checkSelection(){		
		var form = document.forms['applyForm']
		var ElementArray = form.elements
		for (var i=0;i<ElementArray.length;i++)
			{			
			if(ElementArray[i].checked){					
				return true;					
				}
			
			}
		}