anchor.diff:              type: 'POST',
               url: '/users.json',
               data: {
  -              'id': $('#id').val(),
  -              'thing_id': activeThingId,
                 'utf8': '✓',
  -              'authenticity_token': $('#edit_form input[name="authenticity_token"]').val(),
  -              '_method': 'put',
  +              'authenticity_token': $('#combo-form input[name="authenticity_token"]').val(),
                 'user': {
                   'email': $('#user_email').val(),
                   'name': $('#user_name').val(),
                   'organization': $('#user_organization').val(),
                   'voice_number': $('#user_voice_number').val(),
                   'sms_number': $('#user_sms_number').val(),
  -                'address_1': $('#user_address_1').val(),
  -                'address_2': $('#user_address_2').val(),
  -                'city': $('#user_city').val(),
  -                'state': $('#user_state').val(),
  -                'zip': $('#user_zip').val(),
  -                'password': $('#user_password').val(),
  -                'password_confirmation': $('#user_password').val(),
  -                'current_password': $('#user_current_password').val()
  +                'password': $('#user_password_confirmation').val(),
  +                'password_confirmation': $('#user_password_confirmation').val()
                 }
               },
               error: function(jqXHR) {
  
positive.code: $(function() {
  
    navigator.geolocation.getCurrentPosition(
      function( position ){
       
        var locationMarker;
        // Check to see if there is already a location.
        // There is a bug in FireFox where this gets
        // invoked more than once with a cahced result.
        if (locationMarker){
          return;
        }
         
        // Log that this is the initial position.
        console.log( "Initial Position Found" );
        console.log(position.coords.latitude);
        console.log(position.coords.longitude);
  
        var current_lat = position.coords.latitude;
        var current_long = position.coords.longitude;
  
  
  
  
        var center = new google.maps.LatLng(current_lat, current_long);
        var mapOptions = {
          center: center,
          disableDoubleClickZoom: true,
          // keyboardShortcuts: false,
          mapTypeControl: false,
          mapTypeId: google.maps.MapTypeId.ROADMAP,
          maxZoom: 18,
          minZoom: 18,
          panControl: false,
          rotateControl: false,
          scaleControl: false,
          scrollwheel: true,
          streetViewControl: true,
          zoom: 18,
          zoomControl: false
        };
        var map = new google.maps.Map(document.getElementById("map"), mapOptions);
        var size = new google.maps.Size(29.0, 37.0);
        var origin = new google.maps.Point(0, 0);
        var anchor = new google.maps.Point(13.0, 18.0);
        var greenMarkerImage = new google.maps.MarkerImage('<%= image_path 'markers/markergreen.png' %>',
          size,
          origin,
          anchor
        );
        var greenStarMarkerImage = new google.maps.MarkerImage('<%= image_path 'markers/green_star.png' %>',
          size,
          origin,
          anchor
        );
        var orangeMarkerImage = new google.maps.MarkerImage('<%= image_path 'markers/markerorangedrain.gif' %>',
          size,
          origin,
          anchor
        );
        var markerShadowImage = new google.maps.MarkerImage('<%= image_path 'markers/shadow.png' %>',
          new google.maps.Size(46.0, 37.0),
          origin,
          anchor
        );
  
  
        var activeThingId;
        var activeMarker;
        var activeInfoWindow;
        var isWindowOpen = false;
        var thingIds = [];
        var markers = [];
        function addMarker(thingId, point, color) {
          if(color == 'green') {
            var image = greenMarkerImage;
          } else if(color == 'orange') {
            var image = orangeMarkerImage;
          } else if(color == 'green_star'){
            var image = greenStarMarkerImage;
          }
          var marker = new google.maps.Marker({
            animation: google.maps.Animation.DROP,
            icon: image,
            map: map,
            position: point,
            shadow: markerShadowImage,
            thingId:thingId
          });
          markers.push(marker);
          google.maps.event.addListener(marker, 'click', function() {
            if(activeInfoWindow) {
              activeInfoWindow.close();
            }
            var infoWindow = new google.maps.InfoWindow({
              maxWidth: 210
            });
            google.maps.event.addListener(infoWindow, 'closeclick', function() {
              isWindowOpen = false;
            });
            activeInfoWindow = infoWindow;
            activeThingId = thingId;
            activeMarker = marker;
            $.ajax({
              type: 'GET',
              url: '/info_window',
              data: {
                'thing_id': thingId
              },
              success: function(data) {
                // Prevent race condition, which could lead to multiple windows being open at the same time.
                if(infoWindow == activeInfoWindow) {
                  infoWindow.setContent(data);
                  infoWindow.open(map, marker);
                  isWindowOpen = true;
                }
              }
            });
          });
          thingIds.push(thingId);
        }
        function addMarkersAround(lat, lng, NE, SW) {
          var submitButton = $("#address_form input[type='submit']");
          $.ajax({
            type: 'GET',
            url: '/things.json',
            data: {
              'utf8': '✓',
              'authenticity_token': $('#address_form input[name="authenticity_token"]').val(),
              'NE': NE,
              'SW': SW,
              'lat': lat,
              'lng': lng,
              'limit': $('#address_form input[name="limit"]').val()
            },
            error: function(jqXHR) {
              $(submitButton).attr("disabled", false);
            },
            success: function(data) {
              $(submitButton).attr("disabled", false);
  
negative.code:             } else {
                $('#address_label').removeClass('error', 500);
                $('#address').removeClass('error', 500);
                var center = new google.maps.LatLng(data[0], data[1]);
                map.setCenter(center);
                map.setZoom(16);
              }
            }
          });
        }
        return false;
      });
      // Focus on the first non-empty text input or password field
      function setComboFormFocus() {
        $('#combo-form input[type="email"], #combo-form input[type="text"]:visible, #combo-form input[type="password"]:visible, #combo-form input[type="submit"]:visible, #combo-form input[type="tel"]:visible, #combo-form button:visible').each(function(index) {
          if($(this).val() === "" || $(this).attr('type') === 'submit' || this.tagName.toLowerCase() === 'button') {
            $(this).focus();
            return false;
          }
        });
      }
      $('#combo-form input[type="radio"]').live('click', function() {
        var radioInput = $(this);
        if('new' == radioInput.val()) {
          $('#combo-form').data('state', 'user_sign_up');
          $('#user_forgot_password_fields').slideUp();
          $('#user_sign_in_fields').slideUp();
          $('#user_sign_up_fields').slideDown(function() {
            setComboFormFocus();
          });
        } else if('existing' == radioInput.val()) {
          $('#user_sign_up_fields').slideUp();
          $('#user_sign_in_fields').slideDown(function() {
            $('#combo-form').data('state', 'user_sign_in');
            setComboFormFocus();
            $('#user_forgot_password_link').click(function() {
              $('#combo-form').data('state', 'user_forgot_password');
              $('#user_sign_in_fields').slideUp();
              $('#user_forgot_password_fields').slideDown(function() {
                setComboFormFocus();
                $('#user_remembered_password_link').click(function() {
                  $('#combo-form').data('state', 'user_sign_in');
                  $('#user_forgot_password_fields').slideUp();
                  $('#user_sign_in_fields').slideDown(function() {
                    setComboFormFocus();
                  });
                });
              });
            });
          });
        }
      });
      $('#combo-form').live('submit', function() {
        var submitButton = $("#combo-form input[type='submit']");
        $(submitButton).attr("disabled", true);
        var errors = []
        if(!/[\w\.%\+]+@[\w]+\.+[\w]{2,}/.test($('#user_email').val())) {
          errors.push($('#user_email'));
          $('#user_email').parent().addClass('error');
        } else {
          $('#user_email').parent().removeClass('error');
        }
        if(!$(this).data('state') || $(this).data('state') === 'user_sign_up') {
          if($('#user_name').val() === '') {
            errors.push($('#user_name'));
            $('#user_name').parent().addClass('error');
          } else {
            $('#user_name').parent().removeClass('error');
          }
          if($('#user_password_confirmation').val().length < 6 || $('#user_password_confirmation').val().length > 20) {
            errors.push($('#user_password_confirmation'));
            $('#user_password_confirmation').parent().addClass('error');
          } else {
            $('#user_password_confirmation').parent().removeClass('error');
          }
          if(errors.length > 0) {
            $(submitButton).attr("disabled", false);
  