// Automatically attach a listener to the window onload, to convert the inputs
addEvent(window,"load",convertInputs);

// Utility function to add an event listener
function addEvent(o,e,f){
	if (o.addEventListener){ o.addEventListener(e,f,true); return true; }
	else if (o.attachEvent){ return o.attachEvent("on"+e,f); }
	else { return false; }
}

// Search the document for UL elements with the correct CLASS name, then process them
function convertInputs() {
	if (!document.createElement) { return; } // Without createElement, we can't do anything
	buttons = document.getElementsByTagName("input");
	for (var i=0;i<buttons.length;i++) {
		var button=buttons[i];
		
		if (button.nodeName=="INPUT" && button.type == "submit") {
			button.onclick = function () { this.value = " ";  }
			
		}
	}
}


