// 
//
//	This document assigns all form buttons the same class so they all look the same :D
//
//
function addLoadEvent(func)
{
	var oldonload = window.onload;
	if ( typeof window.onload != 'function' )
	{
		window.onload = func;
	}
	else
	{
		window.onload = function()
		{
			oldunload();
			func();
		}
	}
}
function formInputs() {
	var inputs = document.getElementsByTagName("input"); // Gets all Inputs
	
	// first, loop through inputs
	for (var i = 0; i<inputs.length; i++ ) 
	{
		if (inputs[i].getAttribute('type') == "button" || inputs[i].getAttribute('type') == "submit") 
		{		
			inputs[i].className = 'formbutton';
			
			if(inputs[i].className != 'formbutton')
			{
				inputs[i].setAttribute('class', 'formbutton');	
			}
			
			var oldcol = inputs[i].style.color;
			
			inputs[i].onmouseover = function() 
			{
				this.style.color = "#f06";
			
			}
		inputs[i].onmouseout = function() 
			{
				this.style.color = oldcol;
			}
		}
	}

}

addLoadEvent(formInputs);
