		<!--
		//UPDATE THESE VALUES ONLY ----------BEGIN---------------------------------------
		//Payment Standard
		var pstandard = [0,201,270,338,407,475,544,612,681,750,819,888,957];
		//Standard Of Need (75% FPL)
		var son = [0,638,855,1073,1290,1508,1725,1943,2160,2377,2595,2811,3028];
		//185% Of The Standard Of Need
		var per185son = [0,1180,1581,1985,2386,2789,3191,3594,3996,4397,4798,5199,5600];
		//NOT USED AT THIS TIME
		//var per100fpl = [0,817,1100,1384,1667,1950,2234,2517,0,0,0,0];
		//Standard Deduction in the Food Stamp Budget for TANF Family
		var foodstampsd = [0,134,134,134,143,167,191,191,191,191,191,191,191];
		//Maximum Food Stamp Allotments
		var maxfs = [0,162,298,426,542,643,772,853,975,1097,1219,1341,1463];
		//UPDATE THESE VALUES ONLY-----------END----------------------------------------

		var msgtop=220 // Set the top position of the div
		var msgleft=200 // Set the left position of the div

		/* The following three variables are for setting the properties of your table contained within the div. */
		var tborder="0"
		var cspace="0"
		var cpad="5"
		var tabheight=200 // Set the height of table
		var tabwidth=650 // Set the width of table
		var td1height=10
		var td2height=30
		var boxt=""
		function Domsg(flag){
			hidebox() // Hide the box after clicking on text link in box
			if(flag=="Yes")	{
				document.getElementById('hhsize').focus();
			} else {
				history.back();
			}
		}
		function DoFormbox(msgtext)	{
			theString="<table width='"+tabwidth+"' height='"+tabheight+"' border="+tborder+" cellspacing="+cspace+" cellpadding="+cpad+"><tr><td height='"+td1height+"' class='td1style' align='left'><b>"
			theString+=""+msgtext+"</b><a href='javascript:Domsg(\"Yes\")' class='linkstyle'>OK to Continue</a>&nbsp Or &nbsp<a href='javascript:Domsg(\"No\")' class='linkstyle'>Cancel</a></</td></tr></table>"
			if (document.layers) {
				document.formbox.document.write(theString)
				document.formbox.document.close()
				document.formbox.left=msgleft
				document.formbox.top=msgtop+40
				document.formbox.visibility="show"
			}else{
				if(document.getElementById)	{
					elm=document.getElementById("formbox")
					elm.innerHTML=theString
					elm.style.top=msgtop
					elm.style.left=msgleft
					elm.style.visibility = "visible"
				}
			}
		}
		function hidebox(){
			if (document.layers){
				document.formbox.visibility="hidden"
			}
			if(document.getElementById)	{
				elm.style.visibility="hidden"
			}
		}


		function LoadMe(){
			DoFormbox('I understand that this tool is provided to help users get an idea of their potential eligibility for benefits. I understand that this calculation does not represent an eligibility determination. I understand that all eligibility is determined after meeting and verifying required information with a DSS Social Worker.  <br /> <br />    ');
	    }

		function fmtPrice(value) {
		   result="$"+Math.floor(value)+".";
		   var cents=100*(value-Math.floor(value))+0.5;
		   result += Math.floor(cents/10);
		   result += Math.floor(cents%10);
		   return result;
		}

		function skipTo(e, nextField){
			var keyCode = (e.which)?e.which:e.keyCode;
			if(keyCode==13){
				nextField.focus();
				return false;
			}
			return true;
		}

		function round(x) {
			return Math.round(x*100)/100;
		}
		function filterNum(str) {
			re = /^\$|,/g;
			// remove "$" and ","
			return str.replace(re, "");
		}
		function isNumeric(x) {
			if (isNaN(x) || (x==null) || (x=="")) {
				return false;
			}else{
				return true;
			}
		}
		function calcGrantPaymentStandardandSON()
		{
			var x=document.getElementById("hhsize").value;
			if (isNumeric(x)){
				if (x>0 & x<13) {
					document.getElementById("gpstandard").value='$' + pstandard[x];
					document.getElementById("standneed").value= fmtPrice(son[x]);
					document.getElementById("tistandded").value= fmtPrice(foodstampsd[x]);
					document.getElementById("maxallot").value= fmtPrice(maxfs[x]);
				}else{
					alert("Household size must be between 1 and 12.");
				}
			}
		}
		function calcMonthlyEarnedIncome()
		{

			var x=document.getElementById("hoursworked").value;
			var y=document.getElementById("minwage").value;
			if (isNumeric(x) && isNumeric(y)) {
				var z=x*y*4.33;
				document.getElementById("meincome").value=fmtPrice(z);
			}else{
				document.getElementById("meincome").value=fmtPrice(0);
			}

		}
		function calcGrossMonthlyIncome()
		{
			var x = filterNum(document.getElementById("meincome").value);
			var y = filterNum(document.getElementById("unearnedincome").value);

			if (!(isNumeric(y))) {
				y=0;
			}
			if (isNumeric(x)) {
				var z=(x*1)+(y*1);
				document.getElementById("gmincome").value=fmtPrice(z);
				document.getElementById("wages").value=fmtPrice(z);
				var v = z*.2;
				document.getElementById("eided").value=fmtPrice(v);
				var w = z - (z*.2);
				document.getElementById("netearning").value=fmtPrice(w);
			}else{
				document.getElementById("gmincome").value='$0.00';
				document.getElementById("wages").value='$0.00';
				document.getElementById("eided").value='$0.00';
				document.getElementById("netearning").value='$0.00';
			}
		}
		function calcGrossTest()
		{
			var x=document.getElementById("hhsize").value;
			if (isNumeric(x)){
				if (x>0 & x<13) {
					document.getElementById("gtson").value= fmtPrice(per185son[x]);
					var y = filterNum(document.getElementById("gtson").value);
					var z = filterNum(document.getElementById("gmincome").value);
					if (isNumeric(y) && isNumeric(z)) {
						y=y*1;
						z=z*1;
						if (z < y ) {
						    document.getElementById("gteligible").value='Eligible';
						}else{
							document.getElementById("gteligible").value='Not Eligible';
						}
					}
				}
			}
		}
		function calcApplicantTest()
		{
			document.getElementById("workded").value= '$90.00';

			var v = filterNum(document.getElementById("gpstandard").value);
			v=v*1;
			var w = filterNum(document.getElementById("meincome").value);
			var x = filterNum(document.getElementById("workded").value);
			var y = filterNum(document.getElementById("dcded").value);
			if (!(isNumeric(y))) {
				y=0;
			}
			var z = filterNum(document.getElementById("unearnedincome").value);
			if (!(isNumeric(z))) {
				z=0;
			}
			if (isNumeric(w) && isNumeric(x)) {
				var u=(w*1)-(x*1)-(y*1)+(z*1)
				if (u < v) {
					document.getElementById("apptest").value='Eligible';
				}else{
					document.getElementById("apptest").value='Not Eligible';
				}
			}
		}
		function calcRecipientTest()
		{
			var w = filterNum(document.getElementById("meincome").value);
			var x = filterNum(document.getElementById("workded").value);
			var y = filterNum(document.getElementById("dcded").value);
			if (!(isNumeric(y))) {
				y=0;
			}
			var z = filterNum(document.getElementById("unearnedincome").value);
			if (!(isNumeric(z))) {
				z=0;
			}
			if (isNumeric(w) && isNumeric(x)) {
				var u=((w*1)-(x*1)-(y*1)-30)-((w*1)-(x*1)-(y*1)-30)/3+(z*1);
				document.getElementById("netincome").value=fmtPrice(u);
			}

			var a = filterNum(document.getElementById("netincome").value);
			var b = filterNum(document.getElementById("standneed").value);
			if (isNumeric(w) && isNumeric(x)) {
				if ((a*1)<(b*1)) {
					document.getElementById("recptest").value='Eligible';
				}else{
					document.getElementById("recptest").value='Not Eligible';
				}
			}
		}
		function calcGrantAmounts()
		{
			var p = filterNum(document.getElementById("gpstandard").value);
			var t = filterNum(document.getElementById("meincome").value);
			var u = filterNum(document.getElementById("workded").value);
			var v = filterNum(document.getElementById("dcded").value);
			if (!(isNumeric(v))) {
				v=0;
			}
			var w = filterNum(document.getElementById("unearnedincome").value);
			if (!(isNumeric(w))) {
				w=0;
			}
			var x = filterNum(document.getElementById("standneed").value);
			var y = filterNum(document.getElementById("netincome").value);
			if (isNumeric(x) && isNumeric(y)) {
				var z = ((x*1)-(y*1))*.5;
				if (z >= 0) {
					document.getElementById("cosec4months").value=fmtPrice(z);
				}else{
					document.getElementById("cosec4months").value='$0.00';
					z=0;
				}
			}
			if (isNumeric(t) && isNumeric(u) && isNumeric(p)) {
				var s = (t*1-u*1-v*1-30)-(t*1-u*1-v*1-30)/3 + w*1;
				var r = (t*1-u*1-v*1-30) + w*1;
				var q = (t*1-u*1-v*1) + w*1;
				var p = p*1;
				document.getElementById("netincomeforgrant1").value=fmtPrice(s);
				document.getElementById("netincomeforgrant2").value=fmtPrice(r);
				document.getElementById("netincomeforgrant3").value=fmtPrice(q);
				if (z > p){
					document.getElementById("grant1").value='$' + parseInt(p);
				}else{
					document.getElementById("grant1").value='$' + parseInt(z);
				}
				var n = ((x*1)-r)*.5;
				if (n >=0) {
					document.getElementById("add8months").value=fmtPrice(n);
				}else{
					document.getElementById("add8months").value='$0.00';
					n=0;
				}
				var m = ((x*1)-q)*.5;
				if (m >=0) {
					document.getElementById("grantwithnodeds").value=fmtPrice(m);
				}else{
					document.getElementById("grantwithnodeds").value='$0.00';
					m=0;
				}
				if (n > p){
					document.getElementById("grant2").value='$' + parseInt(p);
				}else{
					document.getElementById("grant2").value='$' + parseInt(n);
				}
				if (m > p){
					document.getElementById("grant3").value='$' + parseInt(p);
				}else{
					document.getElementById("grant3").value='$' + parseInt(m);
				}

				if (z > p) {
					if (p > 0) {
						document.getElementById("uiwiththirtythird").value=fmtPrice(p);
					}else{
						document.getElementById("uiwiththirtythird").value='$0.00';
					}
				}else{
					if (z > 0) {
						document.getElementById("uiwiththirtythird").value=fmtPrice(z);
					}else{
						document.getElementById("uiwiththirtythird").value='$0.00';
					}
				}
				if (n > p) {
					if (p > 0) {
						document.getElementById("uiwiththirty").value=fmtPrice(p);
					}else{
						document.getElementById("uiwiththirty").value='$0.00';
					}
				}else{
					if (n > 0) {
						document.getElementById("uiwiththirty").value=fmtPrice(n);
					}else{
						document.getElementById("uiwiththirty").value='$0.00';
					}
				}
				if (m > p) {
					if (p > 0) {
						document.getElementById("uiwithnoded").value=fmtPrice(p);
					}else{
						document.getElementById("uiwithnoded").value='$0.00';
					}
				}else{
					if (m > 0) {
						document.getElementById("uiwithnoded").value=fmtPrice(m);
					}else{
						document.getElementById("uiwithnoded").value='$0.00';
					}
				}
			}
		}
		function calcBudget()
		{
			var v = filterNum(document.getElementById("tistandded").value);
			var w = filterNum(document.getElementById("uiwiththirtythird").value);
			var x = filterNum(document.getElementById("uiwiththirty").value);
			var y = filterNum(document.getElementById("uiwithnoded").value);
			var z = filterNum(document.getElementById("netearning").value);
			if (isNumeric(w) && isNumeric(x) && isNumeric(y) && isNumeric(z)) {
				if ((w*1) < 0) {
					document.getElementById("tiwiththirtyandthird").value=fmtPrice(z*1);
				}else{
					document.getElementById("tiwiththirtyandthird").value=fmtPrice((z*1) + (w*1));
				}
				if ((x*1) < 0) {
					document.getElementById("tiwiththirty").value=fmtPrice(z*1);
				}else{
					document.getElementById("tiwiththirty").value=fmtPrice((z*1) + (x*1));
				}
				if ((y*1) < 0) {
					document.getElementById("tiwithnoded").value=fmtPrice(z*1);
				}else{
					document.getElementById("tiwithnoded").value=fmtPrice((z*1) + (y*1));
				}

				var s = filterNum(document.getElementById("tiwiththirtyandthird").value);
				var t = filterNum(document.getElementById("tiwiththirty").value);
				var u = filterNum(document.getElementById("tiwithnoded").value);

				document.getElementById("ajwiththirtyandthird").value=fmtPrice((s*1) - (v*1));
				document.getElementById("ajwiththirty").value=fmtPrice((t*1) - (v*1));
				document.getElementById("ajwithnoded").value=fmtPrice((u*1) - (v*1));

				var a = filterNum(document.getElementById("rent").value);
				var b = filterNum(document.getElementById("utils").value);
				var c = 0;
				if (!(isNumeric(a))) {
					a=0;
				}
				if (!(isNumeric(b))) {
					b=0;
				}

				if ((a*1) <= 417) {
					c = (a*1) + (b*1);
				}else{
					c = 417 + (b*1);
				}

				document.getElementById("ajshelterded").value=fmtPrice(c);

				var d = filterNum(document.getElementById("ajwiththirtyandthird").value);
				var e = filterNum(document.getElementById("ajwiththirty").value);
				var f = filterNum(document.getElementById("ajwithnoded").value);

				if ((d*1) - c >= 0) {
					document.getElementById("thirtyandthird").value=fmtPrice(Math.round((d*1) - (c)));
				}else{
					document.getElementById("thirtyandthird").value='$0.00';
				}
				if ((e*1) - c >= 0) {
					document.getElementById("withthirty").value=fmtPrice(Math.round((d*1) - (c)));
				}else{
					document.getElementById("withthirty").value='$0.00';
				}
				if ((f*1) - c >= 0) {
					document.getElementById("withnoded").value=fmtPrice(Math.round((d*1) - (c)));
				}else{
					document.getElementById("withnoded").value='$0.00';
				}
				var g = filterNum(document.getElementById("maxallot").value);
				var h = filterNum(document.getElementById("thirtyandthird").value);
				var i = filterNum(document.getElementById("withthirty").value);
				var j = filterNum(document.getElementById("withnoded").value);

				if ((h*1) < 0) {
					document.getElementById("awiththirtythird").value=fmtPrice(parseInt((g*1)));
				}else{
					document.getElementById("awiththirtythird").value=fmtPrice(parseInt((g*1)-.3*(h*1)));
				}
				if ((i*1) < 0) {
					document.getElementById("awiththirty").value=fmtPrice(parseInt((g*1)));
				}else{
					document.getElementById("awiththirty").value=fmtPrice(parseInt((g*1)-.3*(i*1)));
				}
				if ((j*1) < 0) {
					document.getElementById("awithnoded").value=fmtPrice(parseInt((g*1)));
				}else{
					document.getElementById("awithnoded").value=fmtPrice(parseInt((g*1)-.3*(j*1)));
				}
			}
		}
		function calcForm()
		{

			calcGrantPaymentStandardandSON();
			calcMonthlyEarnedIncome();
			calcGrossMonthlyIncome();
			calcGrossTest();
			calcApplicantTest();
			calcRecipientTest();
			calcGrantAmounts();
			calcBudget();
		}


		// -->

