
<!--
	function removeframe()
	{
	  if (top.location != location) {
	    top.location.href = document.location.href ;
	  }
	}
	
	function check_amount()
	{
		if (!isNum3(document.frmApplication.amount.value,'Loan Amount'))
		{
			document.frmApplication.amount.focus()
			document.frmApplication.amount.select()
		}
	}
	
	function checkNumber(field,fieldname)
	{
		intField = "document." + field;
		intField2 = eval(intField + ".value");
		intField3 = eval(intField);
		if (intField2 != "")
		{
			if (!isNum(intField2,fieldname))
			{
				intField3.focus();
				intField3.select();
			}
		}
	}
	
	function checkPhone(field,fieldname)
	{
		intField = "document." + field;
		intField2 = eval(intField + ".value");
		intField3 = eval(intField);
		if (intField2 != "")
		{
			if (!isNo(intField2,fieldname))
			{
				intField3.focus();
				intField3.select();
			}
		}
	}
	
	function checkEmail(field,fieldname)
	{
		intField = "document." + field;
		intField2 = eval(intField + ".value");
		intField3 = eval(intField);
		if (intField2 != "")
		{
			if (!validEmail(intField2,fieldname))
			{
				intField3.focus();
				intField3.select();
			}
		}
	}
	
	function checkDate(field,fieldname)
	{
		intField = "document." + field;
		intField2 = eval(intField + ".value");
		intField3 = eval(intField);
		if (intField2 != "")
		{
			if (!isDateWithoutDelimiterFuture(intField2,fieldname))
			{
				intField3.focus();
				intField3.select();
			}
		}
	}
	function checkDate2(field,fieldname)
	{
		intField = "document." + field;
		intField2 = eval(intField + ".value");
		intField3 = eval(intField);
		if (intField2 != "")
		{
			if (!isMMYYYYDateWithoutDelimiterFuture(intField2,fieldname))
			{
				intField3.focus();
				intField3.select();
			}
		}
	}
	function checkCurrency(field,fieldname)
	{
		intField = "document." + field;
		intField2 = eval(intField + ".value");
		intField3 = eval(intField);
		if (intField2 != "")
		{
			if (!formatCurrency(intField2,fieldname))
			{
				intField3.focus();
				intField3.select();
			}
		}
	}
	
	function change_case(field)
	{
		intField = "document." + field;
		intField2 = eval(intField + ".value");
		intField3 = eval(intField);
		intField3.value = intField2.toUpperCase()
	}
	//-->
	
	// Is this a number or a dot check
function isNum3(passedVal,fieldname) {
	if (passedVal == "") {
	return (false);
	}
	for (i=0; i<passedVal.length; i++) {
	if (passedVal.charAt(i) < "0") {
	alert("Error in " + fieldname + ". Please enter numbers only.");  return (false);
	}
	if (passedVal.charAt(i) > "9") {
	alert("Error in " + fieldname + ". Please enter numbers only.");  return (false);
	}
	}
	return (true);
	}
