// <![CDATA[

/* the prevention of double submit
------------------------------------------------------------------------------*/
function FormUtil() {
	this.initalize.apply(this, arguments);
}

FormUtil.prototype = {
	initalize: function()
	{
	},
		
	submit: function(formId, btnId)
	{
		var elm = document.getElementById(btnId);
		// disable button and remove onclick event.
		elm.disabled = true;
		elm.onclick = null;
		document.getElementById(formId).submit();
	}
}

// ]]>
