// JavaScript Document

window.onload = global_init;

function global_init(){
	
	if(document.all) {
		var t = document.getElementsByTagName('input');
		for(i = 0; i < t.length; i++) {
			var input = t[i];
			if((input.type == "text") || (input.type == "password")) {
				var oldFocus, oldBlur;
				if(typeof(input.onfocus) == "function") { oldFocus = input.onfocus; }
				input.onfocus = function() { if(oldFocus) { oldFocus(); }; this.className += " focus"; }
				if(typeof(input.onblur) == "function") { oldBlur = input.onblur; }
				var s = /\sfocus/;
				input.onblur = function() { if(oldBlur) { oldBlur(); }; this.className = this.className.replace(" focus", "") }
			}
		}	
	}
	
}

