		function Validate()
		{
			var bResult;
			
			bResult = true;
			
			strSearch = new RegExp("[^0-9]", "g");
			UnFormatText(document.theCalcForm.U5);
			res = document.theCalcForm.U5.value.match(strSearch);
		
			// AdjustedGrossINcome Required, whole numbers
			if (((res != null) && (res != "-") && (res != ",")) || (document.theCalcForm.U5.value <= 0))
			{
				alert ("Please enter the Adjusted Gross Income greater than 0.");
				bResult = false;
			}
		
			UnFormatText(document.theCalcForm.U6);
			res = document.theCalcForm.U6.value.match(strSearch);
			// Number of exemptions Required, positive Ints only
			if ((document.theCalcForm.U6.value <= 0) || (res == "."))
			{
				alert("Please enter a positive integer for the number of personal exemptions.");
				bResult = false;
			}
			
			return bResult;
		}
		
		function Calculate()
		{
			if (Validate())
			{
				document.theCalcForm.MyAction.value = "Calc";
				document.theCalcForm.action = "default.asp";
				document.theCalcForm.submit();
			}
		}
				
		function Reset()
		{
			document.theCalcForm.MyAction.value = "Init";
			document.theCalcForm.action = "default.asp";
			document.theCalcForm.submit();
		}
		
