// JavaScript Documentfunction MM_swapImgRestore() { //v3.0  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}function MM_preloadImages() { //v3.0  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}function MM_findObj(n, d) { //v4.01  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && d.getElementById) x=d.getElementById(n); return x;}function MM_swapImage() { //v3.0  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}function MM_openBrWindow(theURL,winName,features) { //v2.0  window.open(theURL,winName,features);}  			function openCalendar(FormElement){			var calendarwindow;			url = "calendar.html?formname=resform&formelement=" + FormElement;			calendarwindow = window.open(url,"thewindow","toolbar=no,LEFT=300,TOP=250,WIDTH=182,HEIGHT=160,status=no,scrollbars=no,resize=no,menubar=no");			calendarwindow.focus();			}			function Form_Validator(theForm)			{										if (theForm.firstname.value.replace(/^\s+|\s+$/g,"") == "")						{							alert("Please enter First Name.");							theForm.firstname.focus();							return (false);						}											var fieldvalue105 = theForm.firstname.value;						if(fieldvalue105.length > 100)						{							alert("Too many characters entered in First Name.  Please limit to 100 characters.");							theForm.firstname.focus();							return false;						}											if (theForm.lastname.value.replace(/^\s+|\s+$/g,"") == "")						{							alert("Please enter Last Name.");							theForm.lastname.focus();							return (false);						}											var fieldvalue106 = theForm.lastname.value;						if(fieldvalue106.length > 100)						{							alert("Too many characters entered in Last Name.  Please limit to 100 characters.");							theForm.lastname.focus();							return false;						}											if (theForm.address.value.replace(/^\s+|\s+$/g,"") == "")						{							alert("Please enter Street Address.");							theForm.address.focus();							return (false);						}											var fieldvalue107 = theForm.address.value;						if(fieldvalue107.length > 255)						{							alert("Too many characters entered in Street Address.  Please limit to 255 characters.");							theForm.address.focus();							return false;						}											if (theForm.city.value.replace(/^\s+|\s+$/g,"") == "")						{							alert("Please enter City.");							theForm.city.focus();							return (false);						}											var fieldvalue109 = theForm.city.value;						if(fieldvalue109.length > 100)						{							alert("Too many characters entered in City.  Please limit to 100 characters.");							theForm.city.focus();							return false;						}											if (theForm.zip.value.replace(/^\s+|\s+$/g,"") == "")						{							alert("Please enter Postal/Zip Code.");							theForm.zip.focus();							return (false);						}											var fieldvalue111 = theForm.zip.value;						if(fieldvalue111.length > 20)						{							alert("Too many characters entered in Postal/Zip Code.  Please limit to 20 characters.");							theForm.zip.focus();							return false;						}											if (theForm.email.value.replace(/^\s+|\s+$/g,"") == "")						{							alert("Please enter E-mail.");							theForm.email.focus();							return (false);						}											validationPattern = /^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9])+(\.[a-zA-Z0-9_-]+)+$/;						if( theForm.email.value != "" &&						   !validationPattern.test(theForm.email.value)) {							alert("E-mail entry is invalid.");							theForm.email.focus();							return false;						}											var fieldvalue115 = theForm.email.value;						if(fieldvalue115.length > 100)						{							alert("Too many characters entered in E-mail.  Please limit to 100 characters.");							theForm.email.focus();							return false;						}											/*						var fieldvalue117 = theForm.Field117.value;						if(fieldvalue117.length > 1000)						{							alert("Too many characters entered in My Request, Comments or Questions:.  Please limit to 1000 characters.");							theForm.Field117.focus();							return false;						}						*/				return true;			}
