var field_label   = Array("WARRANTY_REGISTRATION_FNAME","WARRANTY_REGISTRATION_LNAME","WARRANTY_REGISTRATION_ADDR","WARRANTY_REGISTRATION_CITY","WARRANTY_REGISTRATION_ZIP","WARRANTY_REGISTRATION_STATE","WARRANTY_REGISTRATION_COUNTRY","WARRANTY_REGISTRATION_PHNUM","WARRANTY_REGISTRATION_EMAIL","WARRANTY_REGISTRATION_DOB1","WARRANTY_REGISTRATION_DOB2","WARRANTY_REGISTRATION_DOB3","WARRANTY_REGISTRATION_DOP1","WARRANTY_REGISTRATION_DOP2","WARRANTY_REGISTRATION_DOP3","WARRANTY_REGISTRATION_MDLNUM","WARRANTY_REGISTRATION_PUR","WARRANTY_REGISTRATION_PP","WARRANTY_REGISTRATION_MR" );
 var field_msg = Array("First Name","Last Name","Address","City","ZIP Code","State",	"Country","Phone Number","Email Address","Month in Date of Birth","Day in Date of Birth","Year in Date of Birth","Month in Date of Purchase","Day in Date of Purchase","Year in Date of Purchase","Model Number","Name or store or website where purchased","Price Paid","Woodworking magazine most often read");

  function CheckWarrantyRegistration( form )
  {
 
        for(var index in field_label)
        {
          curr_field = form[field_label[index]];

          var not_check = 1;
          
          if(curr_field.type=="text")
          {
            not_check = 0;
            var str_val = curr_field.value;
            if(str_val.length == 0)
            {
              alert('Please enter '+field_msg[index]);
              curr_field.focus();
              return false;
            }
          }
          if( curr_field.type == "select-one" )
            if( !curr_field.selectedIndex )
            {
              alert('Please select one of the options for '+field_msg[index]);
              return false;
            }
            

        }

 
    return form.submit();

  }