var inputList = document.getElementsByTagName('input');
for (i=0; i < inputList.length; i++) {
	if (inputList[i].type == 'button' || inputList[i].type == 'submit') {
		inputList[i].className = 'button';
//		inputList[i].onmouseover = function () {this.className = "buttonon"}
//		inputList[i].onmouseout = function () {this.className = "button"};
	}
	else if (inputList[i].type == 'text' || inputList[i].type == 'password')
		inputList[i].className = 'formField';
}

var textareaList = document.getElementsByTagName('textarea');
for (i=0; i < textareaList.length; i++) {
	textareaList[i].className = 'formField';
}
