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 = "2px solid #6AB94B";
this.style.borderRight = "2px solid #94DA78";
this.style.borderLeft = "2px solid #94DA78";
this.style.borderBottom = "2px solid #AEDF9A";
this.style.backgroundColor = "#ffffff"
}

function diliteInput() { // no, "dilite" is not a word
this.style.borderTop = "2px solid #999999";
this.style.borderRight = "2px solid #CCCCCC";
this.style.borderLeft = "2px solid #CCCCCC";
this.style.borderBottom = "2px solid #DBDBDB";
this.style.backgroundColor = "#EFEFEF"
}

function init2() {initInputs();}
onload = init2;

function HearAboutUs_Change(){
	if (document.ContactForm.HearAboutUs.value == "Select"){
	document.getElementById("block1").style.display = "none"; }	
	
	if (document.ContactForm.HearAboutUs.value == "Advertisement"){
	document.getElementById("block1").style.display = "block";}
	
	if (document.ContactForm.HearAboutUs.value == "Previous Client"){
	document.getElementById("block1").style.display = "block";}
	
	if (document.ContactForm.HearAboutUs.value == "Search Engine"){
	document.getElementById("block1").style.display = "block";}	
	
	if (document.ContactForm.HearAboutUs.value == "Friend"){
	document.getElementById("block1").style.display = "block";}
	
	if (document.ContactForm.HearAboutUs.value == "Other..."){
	document.getElementById("block1").style.display = "block";}	
}

