
//WINDOW STATUS
function showStatus(){
	window.status="Finkl Landscaping | © Copyright 2002";
	document.title="Finkl Landscaping | © Copyright 2002";
}

//POPUP WINDOW FUNCTION
function OpenBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

//DROP DOWN NAVIGATION
function leapto(form) {
var uid = new Date().getTime(); 
var myindex=form.dest.selectedIndex;
//var myindex=form.dest.options[form.dest.selectedIndex].value;
str = new String(form.dest.options[myindex].value);
strarray = str.split(/\,/); 

if (strarray[0] == "main") 
window.location.href = strarray[1];
else 
window.open(strarray[1],uid, "toolbars=0,scrollbars=0,location=0,statusbars=0,menubars=0"); 
myindex = 0; 
}
		
function submissionHandler(which) {
	var pass = true;
	if (document.images) {
		for (i = 0;i < which.length;i++) {
			var tempobj = which.elements[i];
			if (tempobj.name.substring(0,3) == "req") {
				if (((tempobj.type == "text" || tempobj.type == "textarea" || tempobj.type == "password") && tempobj.value=='') || (tempobj.type.toString().charAt(0) == "s" && tempobj.selectedIndex == 0)) {
				pass = false;
				break;
				}
			}
		}
	}
	if (!pass) {
		shortFieldName = tempobj.name.substring(3,30).toUpperCase()
		alert("Please make sure the " + shortFieldName + " field was properly completed.")
		which[i].focus()
		return false;
	}
	else
	document.forms[0].submit()
	return true
}	


window.onMouseMove = showStatus()

navItem = new Image();
navItem.src = "images/navItemBack.gif";         

navItemOn = new Image();
navItemOn.src = "images/navItemBackOn.gif";         

function onImg(ID) { 
	document.getElementById(ID).background = "images/navItemBackOn.gif"; 
}
function offImg(ID) { 
	document.getElementById(ID).background = "images/navItemBack.gif"; 
}