function hovFormButton() {
	if(!document.getElementsByTagName) return false;
	
	var inputs = document.getElementsByTagName("input");
	for (i=0; i<inputs.length; i++) {
		var frm_buttons = inputs[i].getAttribute("type");
		
		if (frm_buttons == 'submit' || frm_buttons == 'button' || frm_buttons == 'reset') {
			inputs[i].onmouseover = function() {
				this.style.backgroundColor = "#FFFFFF";
				this.style.color = "#004994";
				//this.style.backgroundColor = "#3A5697";
				//this.style.color = "#FFFFCC";
			}
			inputs[i].onfocus = function() {
				this.style.backgroundColor = "#FFFFFF";
				this.style.color = "#004994";
				//this.style.backgroundColor = "#3A5697";
				//this.style.color = "#FFFFCC";
			}
			inputs[i].onmouseout = function() {
				this.style.backgroundColor = "#004994";
				this.style.color = "#FFFFFF";				
				//this.style.backgroundColor = "#993333";
				//this.style.color = "#FFFFCC";				
				//this.style.backgroundColor = "#E6F4FD";
				//this.style.color = "#000000";				
			}
			inputs[i].onblur = function() {
				this.style.backgroundColor = "#004994";
				this.style.color = "#FFFFFF";				
				//this.style.backgroundColor = "#993333";
				//this.style.color = "#FFFFCC";				
				//this.style.backgroundColor = "#E6F4FD";
				//this.style.color = "#000000";				
			}
		}
		
	}
}

window.onload = function(e) {
  hovFormButton();
}