function attachBorderAndSelect(id){
  	obj0 = document.getElementById(id)
  	obj0.onfocus= function() {this.style.border='#4e3a5b 1px solid'; this.select();}
  	obj0.onblur = function() {this.style.border='#c2b6c8 1px solid';}
}

function initTextHighlight(intFormID) {
	var arInputFields = document.forms[intFormID].getElementsByTagName("INPUT");
  	var bFocusSet = false;
  	for (var i=0; i<arInputFields.length; i++) {
		if ((arInputFields[i].type == 'text') || (arInputFields[i].type == 'password') || (arInputFields[i].type == 'file')) {
			attachBorderAndSelect(arInputFields[i].id); // Attach onFocus & onBlur events
			if (!bFocusSet) {document.forms[intFormID][arInputFields[i].id].focus(); bFocusSet = true;}	// Automatically focus first text box on page
    	}
  	}
}