var lastSubmit = 0;

//we wanna make sure the double clickers only get 1 submit through
function doubleClickCheck(inForm)
{
  var currentTime = (new Date()).getTime(); 
  //If they haven't tried submitting within the past 20 seconds, allow the submit
  if((currentTime - lastSubmit) > 5000)
  {
	lastSubmit = currentTime;
	//inForm.submit();
	return true;
  }else{
	//else, stop the submit 
	return false;
  }

}

