Here's what I got for input button.
<!DOCTYPE html><!-- add a doctype or validators will have a fit! -->
<html>
<head>
<title></title>
</head>
<script type="text/javascript">
var t, max, i, count;
// added count to global memory so you don't have to use document.getElementById every time (you should get in the habit of doing things like this

)
// and you don't actually need the var t since you're not clearing the timeout but I've left it in just in case you plan on using it later
{
document.getElementById('txt').value=x;
{
function Increase(amount) {
max = amount;
count = document.getElementById("count");
i = parseInt(count.value);
t = setTimeout("SetIncrease()", 0);
}
function SetIncrease() {
count.value = ++i;
if(i == max) {
// here you flash the max amount and then start over
// using your current implementation, a simple way to flash would be to just have a number of setTimeout calls in a row
// see what's happening here? you should actually make a function to do this flash but we'll leave that for another exercise

setTimeout(function(){count.value='';},0);
i = 0;
t = setTimeout("SetIncrease()",0); // start over!
} else {
t = setTimeout("SetIncrease()", 00); // here you call setTimeout to call SetIncrease, works the same as setInterval but you have more control
}
}
</script>
<body onLoad="Increase(x);">
<input type="button" value="Enter your number" onclick="var x()" onclick="restart()">
<input type="text" id="x">
<input id="count" type="text" value="1" style="width:40px;font-family:georgia;font-size:30px;font-weight:bold;color:#CC0000;border: 0px solid #000000;text-align:right;background-color:#FFFF00;" align="center">
</body>
</html>
Or maybe someone could suggest an easier method?