function stopSubmitDoubleClick(formSubmit)
{
	if (!window.XMLHttpRequest)
	{
		return true;
	}
	
	/* Create a hidden field with the same name as the button */
	var hiddenButtonVar = document.createElement('input');
	hiddenButtonVar.setAttribute("type", "hidden");
	hiddenButtonVar.setAttribute("name", formSubmit.name);
	hiddenButtonVar.setAttribute("value", formSubmit.value);
	
	/* Add this hidden field to the form */
	formSubmit.form.appendChild(hiddenButtonVar);
	
	/* Disable the button */
	formSubmit.disabled = true;
	formSubmit.value = 'Please wait';

	return true;
}