var ignoreType = false;

function checkType() {
  
   var msg = "\nYou have chosen '" + 
              document.forms[0].type.value + "' " +
              "for the Listing Type. However, be aware " +
              "that listings other than Condo/Townhouse, " + 
              "Manufactured Housing, or Single Family H. " +
              "almost always do not list bath and bed information. " +
              "That could affect your search results. \n\n" +
              "Do you wish for me to ignore your choices for " + 
              "Bedrooms and Bathrooms?\n";
  
   if (document.forms[0].type.value != 'Any' &&
       document.forms[0].type.value != 'Condo/Townhouse' &&
       document.forms[0].type.value != 'Manufactured Housing' &&
       document.forms[0].type.value != 'Single Family H.') {
      
      if (document.forms[0].beds.value != 'Any' || 
          document.forms[0].baths.value != 'Any') {
         
         if (ignoreType == true || confirm(msg)) {
            document.forms[0].baths.value = 'Any';
            document.forms[0].beds.value = 'Any';
            ignoreType = true;
         }
      }
   }
   return null;
}


