function applyInputsCSS()
{
	var els = document.getElementsByTagName("input");
	var elsLen = els.length;
	
	for (var i = 0; i < elsLen; i++)
	{
		if (els[i].getAttribute("type"))
		{
			var input = els[i];
			
			if (input.getAttribute("type") == "text")
			{
				input.className = "text";
				input.onfocus = function() { this.select(); }
			}
			else if (input.getAttribute("type") == "checkbox")
				input.className = "checkbox";
			else
				input.className = "button";
		}
	}
}

window.onload = function() { applyInputsCSS(); }