//<!-- MouseOver Image Swapping -->//

   function image_off(imgname) {
      if (document.images) {
         document[imgname].src = eval(imgname + '_off.src');
         }
   }

   function image_active(imgname) {
      if (document.images) {
         document[imgname].src = eval(imgname + '_active.src');
         }
   }

   if (document.images) {

      home_active = new Image(194, 60)
      home_active.src = "images/nav_home_on.gif"

      home_off = new Image(194, 60)
      home_off.src = "images/nav_home_off.gif"

      apply_active = new Image(194, 60)
      apply_active.src = "images/nav_apply_on.gif"

      apply_off = new Image(194, 60)
      apply_off.src = "images/nav_apply_off.gif"

      about_active = new Image(194, 60)
      about_active.src = "images/nav_about_on.gif"

      about_off = new Image(194, 60)
      about_off.src = "images/nav_about_off.gif"

      contact_active = new Image(194, 60)
      contact_active.src = "images/nav_contact_on.gif"

      contact_off = new Image(194, 60)
      contact_off.src = "images/nav_contact_off.gif"

      testimonials_active = new Image(194, 60)
      testimonials_active.src = "images/nav_testimonials_on.gif"

      testimonials_off = new Image(194, 60)
      testimonials_off.src = "images/nav_testimonials_off.gif"

      button_apply_active = new Image(100, 40)
      button_apply_active.src = "images/button_apply_on.gif"

      button_apply_off = new Image(100, 40)
      button_apply_off.src = "images/button_apply.gif"

   }

   function checkForm(form)
   {
      if(form.name.value == '') {
         alert("Please Enter Your Name");
         form.name.focus();
         return false;
      }

      if(form.email.value == '') {
         alert("Please Enter Your Email Address");
         form.email.focus();
         return false;
      }

      // regular expression to match only accepted email conventions
      var emailExpApp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;

      // validation fails if the input doesn't match our regular expression
      if(!emailExpApp.test(form.email.value)) {
         alert("Please Enter a Valid Email Format");
         form.email.focus();
         return false;
      }

      if(form.message.value == '') {
         alert("Please Enter Your Message");
         form.message.focus();
         return false;
      }

      form.name.name='required-name';
      form.email.name='required-email';
      form.message.name='required-message';

      // validation was successful
      return true;
   }


