var arr_focus = new Array();

function clear_onfocus(formID) {
	arr_focus = document.forms[formID].getElementsByTagName('input');
	for(var i = 0; i < arr_focus.length; i++) {
		if(arr_focus[i].getAttribute('type') == 'text') {
			// Have to pass reference to internal attribute for self-referencing, since the value of 'i' keeps changing in the for() loop.
			arr_focus[i].setAttribute("i", i);
			arr_focus[i].runOnce = false;
			arr_focus[i].oldValue = arr_focus[i].value;
			arr_focus[i].onfocus = function() {
				if(this.oldValue == this.value && this.runOnce == false) {
					this.value = '';
					this.runOnce = true;
				} 
			};
		}
	}
};