function initInputs() {
// grab elements to process
inputs = document.getElementsByTagName("input");
txtareas = document.getElementsByTagName("textarea");
// assign events to elements
for (i=0; i<inputs.length; i++) {
if (inputs[i].getAttribute("type") == "text") {
inputs[i].onfocus = hiliteInput; 
inputs[i].onblur = diliteInput;
}
}
for (t=0; t<txtareas.length; t++) {
txtareas[t].onfocus = hiliteInput; 
txtareas[t].onblur = diliteInput;
}
}

function hiliteInput() {
this.style.borderTop = "1px solid #6AB94B";
this.style.borderRight = "1px solid #94DA78";
this.style.borderLeft = "1px solid #94DA78";
this.style.borderBottom = "1px solid #AEDF9A";
this.style.backgroundColor = "#ffffff"
}

function diliteInput() { // no, "dilite" is not a word
this.style.borderTop = "1px solid #999999";
this.style.borderRight = "1px solid #CCCCCC";
this.style.borderLeft = "1px solid #CCCCCC";
this.style.borderBottom = "1px solid #DBDBDB";
this.style.backgroundColor = "#EFEFEF"
}

function init2() {initInputs();}
onload = init2;


	

