// This script has fixes for IE 6.
// Other browsers shouldn't need this.
// But, since IE6 sucks, I needed to change the "global" browser-neutral styles, and now all browsers require this script. Damn, IE really sucks.


// Add "type_something" class to <input type="something"> elements.
function add_extra_classes() {
	var input = document.getElementsByTagName("input");
	for (var i=0; i<input.length; i++) {
		input[i].className += "type_"+input[i].type;
	}
}


// IE
if (window.attachEvent) window.attachEvent("onload", add_extra_classes);
// All other browsers
if(window.addEventListener) window.addEventListener("load",add_extra_classes,false);
// Damn... Writing two codes, one for IE, other for other browsers... I feel like I'm in the 90s, programming for IE4 and Netscape 4.
