<!--
function javaScriptTrim(inputString) {
     // create a new string object with the input
     var sWorkString = new String(inputString);
     var foundit = false;

     // see if we are going to check this string
     if (sWorkString.length > 0) {foundit = true}

     // loop while we find leading spaces
     do {
          // is the first character a string?
          if (sWorkString.charAt(0) == ' ') {
               // remove the space
               sWorkString = sWorkString.substring(1,sWorkString.length);
          } else {
               // end this search
               foundit = false
          }

     } while (foundit)

     // check to see if we should continue.
     if (sWorkString.length > 0) {foundit = true}

     do {
          // is the last character a space?
          if (sWorkString.charAt(sWorkString.length-1) == ' ') {
               // remove the space.
               sWorkString = sWorkString.substring(0,(sWorkString.length-2));
          } else {
               // end the search
               foundit = false
          }
     } while (foundit)
     // return the trimmed string
     return sWorkString
}

function searchIt (f) {
	var firstname = f.first_name.value;
	var lastname = f.last_name.value;
	var pattern = /[a-zA-Z_S]/;
	var dash = '-';
	var testfirst = pattern.test(firstname);
	var testlast = pattern.test(lastname);
	
	if (!testfirst  && !testlast) {
		alert ("Please enter a search string");
		f.first_name.select();
		f.first_name.focus();
		return false;
	}
	
	return true;
}

function getAnch(n) {
    return getPos(n);
	if (NS4) {
		for (i=0;i<document.anchors.length;i++) {
			anch = document.anchors[i];
			if(anch.name == n) break;
		}
		menX = anch.x;
		menY = anch.y;
	}
	if (IE4) {
		menX = tbAnch.offsetLeft;
		menY = tbAnch.offsetTop;
	}
	return [menX,menY];
}

function getPos(name) {
	if (NS4) {
		for (i=0;i<document.images.length;i++) {
			anch = document.images[i];
			if(anch.src.indexOf("spacer_bevel") >0 ) {
				 break;
			}
		}
		menX = anch.x;
		//menY = anch.y+anch.height;
		menY = anch.y;
	}
	if (IE4) {
		/*for (i=0;i<document.images.length;i++) {
			anch = document.images[i];
			if(anch.src.indexOf("spacer_bevel") >0 ) {
				break;
            }
		}*/
		anch = document.getElementById('navigation');
		//menX = anch.getBoundingClientRect().left-2;
		//menY = anch.getBoundingClientRect().top+anch.height-2+document.body.scrollTop;
		menX=getAbsolutePosition(anch)[0];
        menY=getAbsolutePosition(anch)[1]+3;
	}
	return [menX,menY];
	//return [149,150];
}

function getAbsolutePosition(obj){
   var n=0;
   var left=obj.offsetLeft;
   var top=obj.offsetTop;
   do {
      left+=obj.offsetParent.offsetLeft;
      top+=obj.offsetParent.offsetTop;
      obj=obj.offsetParent;
      n++;
      if (n>20) break;
   } while (obj.offsetParent)
	return [left,top];
}

function LinkTo(selectbox) {
	if (selectbox.options[selectbox.selectedIndex].value != "") {
		window.location.href=selectbox.options[selectbox.selectedIndex].value;
		selectbox.selectedIndex=0;
	}
	selectbox.options[selectbox.selectedIndex].value == ""
	return
}

//-->