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;


sfHover = function() {
	var sfEls = document.getElementById("nav_body").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
function newImage(arg){
	if (document.images) {
		rslt = new Image(); 
		rslt.src = arg; 
		return rslt;
	}
}
function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1]; }
	} 
} 
	

function HearAboutUs_Change(){
	if (document.ContactForm.HearAboutUs.value == "Select"){
	document.getElementById("hiddenblock").style.display = "none"; }	
	
	if (document.ContactForm.HearAboutUs.value == "Advertisement"){
	document.getElementById("hiddenblock").style.display = "block";}
	
	if (document.ContactForm.HearAboutUs.value == "Previous Client"){
	document.getElementById("hiddenblock").style.display = "block";}
	
	if (document.ContactForm.HearAboutUs.value == "Search Engine"){
	document.getElementById("hiddenblock").style.display = "block";}	
	
	if (document.ContactForm.HearAboutUs.value == "Friend"){
	document.getElementById("hiddenblock").style.display = "block";}
	
	if (document.ContactForm.HearAboutUs.value == "Other..."){
	document.getElementById("hiddenblock").style.display = "block";}	
}

function imgPopUp(FileName, winlgw, winlgh, winName){
	var scrWidth = window.screen.width
	var scrHeight = window.screen.height
	
	var winlgw = 820
	var winlgh = 635
	
	var lgwinprop
	var winName
	
	var getLeft = (scrWidth - winlgw)/2
	var getTop = (scrHeight - winlgh)/2
	
	lgwinprop = "'personalbar=no,toolbar=no,location=no,scrollbars=no,resizable=yes,width=" + winlgw + ",height=" + winlgh + ",left=" + getLeft + ",top=" + getTop + "'"
	newWindow = window.open(FileName, winName, lgwinprop)
}

function showTest(num) {
	if (num == "1") {
		document.getElementById("test2").style.display = "none";
		document.getElementById("test1").style.display = "block";
	}
	if (num == "2") {
		document.getElementById("test1").style.display = "none";
		document.getElementById("test2").style.display = "block";
	}
}
var emp;
function showEmp(emp) {
	document.getElementById("link1").className = "up";
	document.getElementById("link2").className = "up";
	document.getElementById("link3").className = "up";
	document.getElementById("link4").className = "up";
	document.getElementById("link"+emp+"").className = "down";
	
	document.getElementById("emp1").style.display = "none";
	document.getElementById("emp2").style.display = "none";
	document.getElementById("emp3").style.display = "none";
	document.getElementById("emp4").style.display = "none";
	document.getElementById("emp"+emp+"").style.display = "block";
}
		
					
