<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->

// functions used to display the hover menus on the side navigation
	function showSubNavMenu(ID) {
		
		// Parent is the td cell of the navigation button
   		var objParentNav = document.getElementById("parent_" + ID);
		var objChildNav = document.getElementById("child_" + ID);

		if (objChildNav != null) {
			objChildNav.style.visibility = 'visible';

			// Get the position of the child nav table
			var ChildNavTop = objChildNav.offsetTop;
			var ChildNavLeft = objChildNav.offsetLeft;
			var ChildNavWidth = objChildNav.offsetWidth;
			var ChildNavHeight = objChildNav.offsetHeight;

			// Position the iFrame shim under the child nav container table, so that form elements are blocked out (IE 6 fix)
			//var objiFrameShim = document.getElementById("iFrameShim");
//			objiFrameShim.style.top = ChildNavTop;
//			objiFrameShim.style.left = ChildNavLeft;
//			objiFrameShim.style.width = ChildNavWidth;
//			objiFrameShim.style.height = ChildNavHeight;
//			objiFrameShim.style.visibility = "visible";
		}
	}

	function hideSubNavMenu(ID) {

		var objChildNav = document.getElementById("child_" + ID);
		//var objiFrameShim = document.getElementById("iFrameShim");
		
		if (objChildNav != null) {
			objChildNav.style.visibility = 'hidden';
			//objiFrameShim.style.visibility = 'hidden';	
		}
	}


//functions for contact form validation - added by Anthony Chika 6/23/2007
function validateEmail(strValue) {
  var objRegExp = /^[a-z0-9_\-]+(\.[a-z0-9_\-]+)*@[a-z0-9_\-]+(\.[a-z0-9_\-]+)*\.[a-z0-9]{2,}$/i;
  return objRegExp.test(strValue);
}
function trim(str_String)
{
   return str_String.replace(/^\s*(.*\S|.*)\s*$/, '$1');
}

function validPhone(num){

var re= /\D/;
// test for this format: (xxx)xxx-xxxx
var re2 = /^\({1}\d{3}\)\d{3}-\d{4}/; 
// test for this format: xxx-xxx-xxxx
//var re2 = /^\d{3}-\d{3}-\d{4}/;

var newNum;
 if (num != "" && re2.test(num)!=true){
   if (num != ""){
     while (re.test(num)){
     num = num.replace(re,"");
     }
   }

  if (num.length != 10){
    return false;
  }
  else {
    return true;
  }
 }
}

function formatPhone(num){

var re= /\D/;
// test for this format: (xxx)xxx-xxxx
var re2 = /^\({1}\d{3}\)\d{3}-\d{4}/; 
// test for this format: xxx-xxx-xxxx
//var re2 = /^\d{3}-\d{3}-\d{4}/;

 var newNum;
 if (num != "" && re2.test(num)!=true){
   if (num != ""){
     while (re.test(num)){
       num = num.replace(re,"");
     }
   }

  if (num.length != 10){
    return num;
  }
  else {
     // for format (xxx)xxx-xxxx
     newNum = '(' + num.substring(0,3) + ') ' + num.substring(3,6) + '-' + num.substring(6,10);
     // for format xxx-xxx-xxxx
     // newNum = num.substring(0,3) + '-' + num.substring(3,6) + '-' + num.substring(6,10);
     return newNum;
  }
 }  
}

function validateZIP(field) {
var valid = "0123456789-";
var hyphencount = 0;

if (field.length!=5 && field.length!=10) {
return false;
}
for (var i=0; i < field.length; i++) {
temp = "" + field.substring(i, i+1);
if (temp == "-") hyphencount++;
if (valid.indexOf(temp) == "-1") {
return false;
}
if ((hyphencount > 1) || ((field.length==10) && ""+field.charAt(5)!="-")) {
return false;
   }
}
return true;
}
