window.onload = function() {
	for(f=0; f < document.forms.length; f++){
		form = document.forms[f];
		for(i=0; i < form.elements.length; i++){
			element = form.elements[i];
			
			element.onfocus = function() {
				this.className = this.className + " focus";
			}
			
			element.onblur = function() {
				this.className = this.className.replace(" focus" , "");
			}
		}
	}
}

