// Andy's Google Autofill Fixer v1.0
// Set the text colour of Google autofill fields to black
// (c) 2008 Propeller Communications Ltd.

if(window.attachEvent)
	window.attachEvent("onload", fixGoogleAutofill);
	
function fixGoogleAutofill() {
	var inputElements = document.getElementsByTagName("INPUT");
	var setTextColour = function() {if(event.srcElement.style.backgroundColor == "#ffffa0") event.srcElement.style.color = "#000000";};
	
	for(var i=0; i<inputElements.length; i++)
		inputElements[i].attachEvent("onpropertychange", setTextColour);
}