


function legacy_RemoveAllDefaultData( pForm ) {
   if( pForm ) {
      for( var i=0; i < pForm.elements.length; i++ ) {
         // if( pForm.elements[i].type == 'text'  || pForm.elements[i].type == 'hidden' ) {
         if( pForm.elements[i].type == 'text' ) {
            if( pForm.elements[i].strDefaultValue ) {
               // if( pForm.elements[i].value == pForm.elements[i].strDefaultValue ) {
               if( pForm.elements[i].value == pForm.elements[i].defaultValue ) {
                  pForm.elements[i].value = '';
               }
            }  
         }
      }
   }
}

function legacy_DoQsPropertySearch(pForm) {
   EmptyIfEnter(pForm.mls);
   EmptyIfEnter(pForm.where);
   var strWhere = pForm.where.value;
   var strMls = pForm.mls.value;
   if( strWhere == null || strWhere == '' ) {
      if( strMls == null || strMls == '' ) {
         // If the visitor did not enter any data, send them to the advanced search
         // setTimeout(function(){document.location.href = '/erabin/refine';}, 10);
         alert("Favor de meter un código expreso, el numero de identificación del listado del MLS (servicio del listado múltiple), la ciudad, el condado, o un código postal para buscar por");
         return false;
      }
   }
   return true;
}

