

			function calculatedirtydata() {
				var yrs = parseInt(document.forms[0].years.value);
				var recs = parseInt(document.forms[0].records.value);
				if (recs > 0)
				{
					if (yrs > 0)
					{
						var badRecords = 0;

						for (var i=yrs; i>0; i--) {
								if (i >=4) badRecords += parseInt(recs/yrs);
								else badRecords += (parseInt((recs/yrs) * (.021 * i * 12)));
						}
						top.location="/dirtydata/index.jsp?records=" + badRecords + "&percentage=" + parseInt((badRecords / recs) * 100);
					} else {
						alert("Please enter an integer for years!");
					}
				} else {
					alert("Please enter an integer for records!");
				}

				
				
				
				return false;
			}
