function initInputs() {

	// grab elements to process
	inputs = document.getElementsByTagName("input");
	txtareas = document.getElementsByTagName("textarea");
	anchors = document.getElementsByTagName("a");
	// 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;
		}
		if (inputs[i].className == "submit") {
			inputs[i].onmouseover = hiliteSubmit; 
			inputs[i].onmouseout = diliteSubmit;
		}
	}
	for (t=0; t<txtareas.length; t++) {
		txtareas[t].onfocus = hiliteInput; 
		txtareas[t].onblur = diliteInput;
	}
	for (a=0; a<anchors.length;a++) {
	    if(anchors[a].className == "submit") {
		anchors[a].onmouseover = hiliteSubmit_Link; 
		anchors[a].onmouseout = diliteSubmit_Link;
		}
	}
	
}

function hiliteInput() {
	if(this.className == "REQUIRED") this.className = "REQUIRED RF";
	if(this.className == "FIELD") this.className = "FIELD FF";
	if(this.className == "ERROR") this.className = "ERROR EF";
	if(this.id == "ctl00_ContentPlaceHolder_con_Email") {
	    showHDNdiv('hdnemail');
	}
}

function diliteInput() { // no, "dilite" is not a word
	if(this.className == "REQUIRED RF") this.className = "REQUIRED";
	if(this.className == "FIELD FF") this.className = "FIELD";
	if(this.className == "ERROR EF") this.className = "ERROR";
	if(this.id == "ctl00_ContentPlaceHolder_con_Email") {
	    hideHDNdiv('hdnemail');
	}
}

function hiliteSubmit_Link() {
this.style.background = "#bbb";

}

function diliteSubmit_Link() {
this.style.background = "#bbb url(/images/bg_btn.gif) repeat-x";

}

function hiliteSubmit() {
this.className = "submitF";

}

function diliteSubmit() { // no, "dilite" is not a word
this.className = "submit";
}

function hiliteTextarea() {
this.className = "txt_focus";
}

function diliteTextarea() { // no, "dilite" is not a word
this.className = "txt_off";
}

//function init2() {initInputs();}
onload = initInputs;	