/* This disables Double clicks on submit buttons */
var currentClick;
var timerSet;
function ClearClick()
{
currentClick = '';
timerSet = false;
}
function DC(id)
{
var retVal = !(id == currentClick);
currentClick = id;
if (!timerSet)
{
setTimeout('ClearClick()',10000);
timerSet = true;
}
return retVal;
}
No comments:
Post a Comment