            function validateContact( theForm )
            {
               var theInputs = theForm.elements;
               var count, blankInputs, anyBlankFields;
               
               anyBlankFields = false;
               blankInputs = 'The following fields are required.\n\n';
               
               for( count=0; count<theInputs.length; count++ )
               {
                  if( ( ( theInputs[count].name == "first_name" ) ||
                        ( theInputs[count].name == "last_name" ) ||
                        ( theInputs[count].name == "phone" ) ||
                        ( theInputs[count].name == "email" ) ) &&
                      ( theInputs[count].value == "" ) )
                  {
                     anyBlankFields = true;
                     
                     if( theInputs[count].name == "first_name" ) { blankInputs += "First Name"; }
                     else if( theInputs[count].name == "last_name" ) { blankInputs += "Last Name"; }
                     else if( theInputs[count].name == "phone" ) { blankInputs += "Phone Number"; }
                     else if( theInputs[count].name == "email" ) { blankInputs += "Email Address"; }
                     
                     blankInputs += '\n';
                  }
               }
               
               blankInputs += '\nPlease enter information into these fields.';
               
               if( anyBlankFields )
               {
                  alert( blankInputs );
                  return false;
               }
               else
               {
                  return true;
               }
            }
            
            function validateRealtor( theForm )
            {
               var theInputs = theForm.elements;
               var count, blankInputs, anyBlankFields;
               
               anyBlankFields = false;
               blankInputs = 'The following fields are required.\n\n';
               
               for( count=0; count<theInputs.length; count++ )
               {
                  if( ( ( theInputs[count].name == "first_name" ) ||
                        ( theInputs[count].name == "last_name" ) ||
                        ( theInputs[count].name == "company" ) ||
                        ( theInputs[count].name == "email" ) ||
                        ( theInputs[count].name == "street" ) ||
                        ( theInputs[count].name == "city" ) ||
                        ( theInputs[count].name == "state" ) ||
                        ( theInputs[count].name == "zip" ) ||
                        ( theInputs[count].name == "phone" ) ) &&
                      ( theInputs[count].value == "" ) )
                  {
                     anyBlankFields = true;
                     
                     if( theInputs[count].name == "first_name" ) { blankInputs += "First Name"; }
                     else if( theInputs[count].name == "last_name" ) { blankInputs += "Last Name"; }
                     else if( theInputs[count].name == "company" ) { blankInputs += "Company"; }
                     else if( theInputs[count].name == "email" ) { blankInputs += "Email"; }
                     else if( theInputs[count].name == "street" ) { blankInputs += "Mailing Address"; }
                     else if( theInputs[count].name == "city" ) { blankInputs += "City"; }                     
                     else if( theInputs[count].name == "state" ) { blankInputs += "State"; }
                     else if( theInputs[count].name == "zip" ) { blankInputs += "Zip"; }
                     else if( theInputs[count].name == "phone" ) { blankInputs += "Preferred Phone"; }
                     
                     blankInputs += '\n';
                  }
               }
               
               blankInputs += '\nPlease enter information into these fields.';
               
               if( anyBlankFields )
               {
                  alert( blankInputs );
                  return false;
               }
               else
               {
                  return true;
               }
            }

            function addToFavorites()
            {
               if( window.sidebar )
               {
                  alert( "Sorry! Your browser doesn't support this function. To add us to your bookmarks manually hold down the Control button and type the letter D." );
               }
               else if( window.external )
               {
                  // IE Favorite
                  window.external.AddFavorite( "http://www.miravista-properties.com/", "Mira Vista Properties Realty Group" );
               }
               else
               {
                  alert( "Sorry! Your browser doesn't support this function." );
               }
            }

            /*** Button Functions ***/
            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;
            }
            /* Functions that swaps images. */
            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_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;
            }
            
            /* Functions that handle preload. */
            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];}}
            }
            
            /*** Drop Down Functions ***/
            function mmLoadMenus() {
               if (window.mm_menu_0116164527_0) return;
               window.mm_menu_0116164527_0 = new Menu("root",132,22,"Arial, Helvetica, sans-serif",12,"#ffffff","#ffffff","#fcb514","#00335b","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
               mm_menu_0116164527_0.addMenuItem("Featured&nbsp;Properties","location='hbass.php'");
               mm_menu_0116164527_0.addMenuItem("Search&nbsp;for&nbsp;Homes","location='searchmls.php'");
               // mm_menu_0116164527_0.addMenuItem("Home&nbsp;Search&nbsp;Tutorial","location='tutorial.php'");
               mm_menu_0116164527_0.fontWeight="bold";
               mm_menu_0116164527_0.hideOnMouseOut=true;
               mm_menu_0116164527_0.menuBorder=1;
               mm_menu_0116164527_0.menuItemBorder=1;
               mm_menu_0116164527_0.menuLiteBgColor='#fcb514';
               mm_menu_0116164527_0.menuBorderBgColor='#ffffff';
               mm_menu_0116164527_0.bgColor='#fcb514';
               window.mm_menu_0116171709_1 = new Menu("root",147,22,"Arial, Helvetica, sans-serif",12,"#ffffff","#ffffff","#fcb514","#00335b","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
               mm_menu_0116171709_1.addMenuItem("Seller&nbsp;Resources","location='sell.php'");
               mm_menu_0116171709_1.addMenuItem("Learn&nbsp;About&nbsp;Short&nbsp;Sales","location='learnaboutss.php'");
               // mm_menu_0116171709_1.addMenuItem("450&nbsp;Seller&nbsp;Tips","location='450ideas.php'");
               // mm_menu_0116171709_1.addMenuItem("Client&nbsp;Login","location='clientlogin.php'");
               mm_menu_0116171709_1.fontWeight="bold";
               mm_menu_0116171709_1.hideOnMouseOut=true;
               mm_menu_0116171709_1.menuBorder=1;
               mm_menu_0116171709_1.menuItemBorder=1;
               mm_menu_0116171709_1.menuLiteBgColor='#fcb514';
               mm_menu_0116171709_1.menuBorderBgColor='#ffffff';
               mm_menu_0116171709_1.bgColor='#fcb514';
               window.mm_menu_0116172138_2 = new Menu("root",171,22,"Arial, Helvetica, sans-serif",12,"#ffffff","#ffffff","#fcb514","#00335b","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
               mm_menu_0116172138_2.addMenuItem("Search&nbsp;MLS","location='searchmls.php'");
               mm_menu_0116172138_2.addMenuItem("Featured&nbsp;Properties","location='hbass.php'");
               mm_menu_0116172138_2.addMenuItem("Buyer&nbsp;Resources","location='buy.php'");
               mm_menu_0116172138_2.addMenuItem("First&nbsp;Time&nbsp;Buyers","location='firsttimebuyers.php'");
               mm_menu_0116172138_2.addMenuItem("Relocation&nbsp;Services","location='relocation.php'");
               mm_menu_0116172138_2.addMenuItem("Financing","location='financing.php'");
               mm_menu_0116172138_2.addMenuItem("Age&nbsp;Restricted&nbsp;Communities","location='relocation.php'");
               mm_menu_0116172138_2.fontWeight="bold";
               mm_menu_0116172138_2.hideOnMouseOut=true;
               mm_menu_0116172138_2.menuBorder=1;
               mm_menu_0116172138_2.menuItemBorder=1;
               mm_menu_0116172138_2.menuLiteBgColor='#fcb514';
               mm_menu_0116172138_2.menuBorderBgColor='#ffffff';
               mm_menu_0116172138_2.bgColor='#fcb514';
               window.mm_menu_0116172935_3 = new Menu("root",132,22,"Arial, Helvetica, sans-serif",12,"#ffffff","#ffffff","#fcb514","#00335b","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
               mm_menu_0116172935_3.addMenuItem("Local&nbsp;Resource&nbsp;Links","location='resources.php'");
               mm_menu_0116172935_3.addMenuItem("Financing","location='financing.php'");
               mm_menu_0116172935_3.fontWeight="bold";
               mm_menu_0116172935_3.hideOnMouseOut=true;
               mm_menu_0116172935_3.menuBorder=1;
               mm_menu_0116172935_3.menuItemBorder=1;
               mm_menu_0116172935_3.menuLiteBgColor='#fcb514';
               mm_menu_0116172935_3.menuBorderBgColor='#ffffff';
               mm_menu_0116172935_3.bgColor='#fcb514';
               window.mm_menu_0116173148_4 = new Menu("root",147,22,"Arial, Helvetica, sans-serif",12,"#ffffff","#ffffff","#fcb514","#00335b","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
               mm_menu_0116173148_4.addMenuItem("Employment","location='employment.php'");
               mm_menu_0116173148_4.addMenuItem("REALTORS&reg;","location='realtors.php'");
               mm_menu_0116173148_4.addMenuItem("Training&nbsp;&amp;&nbsp;Education","location='trainingandeducation.php'");
               // mm_menu_0116173148_4.addMenuItem("Agent&nbsp;Testimonials","location='agenttestimonials.php'");
               mm_menu_0116173148_4.fontWeight="bold";
               mm_menu_0116173148_4.hideOnMouseOut=true;
               mm_menu_0116173148_4.menuBorder=1;
               mm_menu_0116173148_4.menuItemBorder=1;
               mm_menu_0116173148_4.menuLiteBgColor='#fcb514';
               mm_menu_0116173148_4.menuBorderBgColor='#ffffff';
               mm_menu_0116173148_4.bgColor='#fcb514';
               window.mm_menu_0116173539_5 = new Menu("root",96,22,"Arial, Helvetica, sans-serif",12,"#ffffff","#ffffff","#fcb514","#00335b","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
               mm_menu_0116173539_5.addMenuItem("Meet&nbsp;Our&nbsp;Team","location='about.php'");
               mm_menu_0116173539_5.fontWeight="bold";
               mm_menu_0116173539_5.hideOnMouseOut=true;
               mm_menu_0116173539_5.menuBorder=1;
               mm_menu_0116173539_5.menuItemBorder=1;
               mm_menu_0116173539_5.menuLiteBgColor='#fcb514';
               mm_menu_0116173539_5.menuBorderBgColor='#ffffff';
               mm_menu_0116173539_5.bgColor='#fcb514';
               window.mm_menu_0116173701_6 = new Menu("root",114,22,"Arial, Helvetica, sans-serif",12,"#ffffff","#ffffff","#fcb514","#00335b","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
               mm_menu_0116173701_6.addMenuItem("Contact&nbsp;Our&nbsp;Office","location='contactus.php'");
               mm_menu_0116173701_6.addMenuItem("REALTORS&reg;","location='realtors.php'");
               // mm_menu_0116173701_6.addMenuItem("Client&nbsp;Login","location='clientlogin.php'");
               mm_menu_0116173701_6.fontWeight="bold";
               mm_menu_0116173701_6.hideOnMouseOut=true;
               mm_menu_0116173701_6.menuBorder=1;
               mm_menu_0116173701_6.menuItemBorder=1;
               mm_menu_0116173701_6.menuLiteBgColor='#fcb514';
               mm_menu_0116173701_6.menuBorderBgColor='#ffffff';
               mm_menu_0116173701_6.bgColor='#fcb514';
               
               mm_menu_0116173701_6.writeMenus();
            } // mmLoadMenus()
