Okay...minor mod:
Code:
<script>
(
function()
{
var button = document.getElementById("store");
var wait = setInterval(clickIt,10000);
button.onclick =
function()
{
alert("saved"); // optional
clearInterval(wait);
wait = setInterval(clickIt,10000);
};
function clickIt()
{
if ( ! button.disabled) { button.click( ); }
}
}
)();
</script>
But now that's not really different than your code.