/* Created by Kerry of Studio98 */

window.addEventListener?window.addEventListener("load",so_init,false):window.attachEvent("onload",so_init);

var d=document, fields = new Array(), fieldBGColor = "#BFEEFF";

function so_init() {
	if(!d.getElementById || !d.createElement) return;

	fields = d.getElementsByTagName('input');
	for(i = 1; i < fields.length; i++) {
		if(fields[i].className == "temp") {
			fields[i].title = fields[i].value;
			fields[i].style.backgroundColor = fieldBGColor;
			fields[i].onfocus = function(){if(this.value==this.title){this.value='';this.style.backgroundColor="#FFFFFF";}};
			fields[i].onblur = function(){if(this.value==''||this.value.length==0){this.value=this.title;this.style.backgroundColor=fieldBGColor;}};
		}
	}
}

