function clearDefault(){ 
var dbg='#FFFFFF'; // Background color, Default
var fbg='#FFFFFF'; // Background color, onFocus 
	var tI = document.getElementsByTagName('input'); var tT = document.getElementsByTagName('textarea');
	for (var i = 0; i < tI.length; i++) { 
		if (tI[i] && tI[i].getAttribute('type') != '' && tI[i].getAttribute('type').toLowerCase() == 'text' || tI[i].getAttribute('type').toLowerCase() == 'password') 
		{tI[i].style.backgroundColor = dbg; thisValue = tI[i].getAttribute("title");
			if (thisValue){	tI[i].value = thisValue;} 
			tI[i].onfocus = function(){this.style.backgroundColor = fbg; if (this.value != this.getAttribute("title") && this.value != '') {return;} 
			else {this.value = '';}};
			tI[i].onblur = function(){this.style.backgroundColor = dbg; if (this.value == ''){this.value = this.getAttribute("title");}};}} 
	for (var i = 0; i < tT.length; i++){if (tT[i]){tT[i].style.backgroundColor = dbg; thisValue = tT[i].getAttribute("title");if (thisValue){tT[i].value = thisValue;} 
			tT[i].onfocus = function(){this.style.backgroundColor = fbg; if (this.value != this.getAttribute("title") && this.value != ''){return;}
			else {this.value = '';}};
			tT[i].onblur = function(){this.style.backgroundColor = dbg;if (this.value == ''){this.value =  this.getAttribute("title");}};}} 
}
window.onload=clearDefault;
