function calculate_office_space() {

  var numOffices    = jQuery('#num_offices').val();
  var numCubicles   = jQuery('#num_cubicles').val();
  var numPeople     = jQuery('#num_people').val();

  var totalOfficeSpace = 0;

  if (numOffices) {
    totalOfficeSpace += numOffices * 210;
  }
  if (numCubicles) {
    totalOfficeSpace += numCubicles * 210;
  }
  if (numPeople) {
    totalOfficeSpace += numPeople * 25;
  }
  if ( jQuery('#reception_area').attr('checked') ) {
    totalOfficeSpace += 125;
  }
  if ( jQuery('#break_area').attr('checked') ) {
    totalOfficeSpace += 50;
  }
  if ( jQuery('#storage_area').attr('checked') ) {
    totalOfficeSpace += 150;
  }

  var link = '';

  if (totalOfficeSpace < 1500) {
    link += '/office-space/rental-space-available/suites-up-to-1500-square-feet/';
  } else if (totalOfficeSpace < 2000) {
    link += '/office-space/rental-space-available/suites-1500-to-2000-square-feet/';
  } else if (totalOfficeSpace < 3000) {
    link += '/office-space/rental-space-available/suites-2000-to-3000-square-feet/';
  } else if (totalOfficeSpace < 5000) {
    link += '/office-space/rental-space-available/suites-3000-to-5000-square-feet/';
  } else {
    link += '/office-space/rental-space-available/suites-over-5000-square-feet/';
  }
  link = '<a href="' + link + '">Click here to see available space that may fit your square footage needs.</a><br /><br /><p>Remember that spaces can be customized to fit your specific square footage needs. Call us at 913.685.4100 to speak to one of our experienced brokers.</p>';

  jQuery("#total_office_space").html("<h2>Your estimated office space: " + totalOfficeSpace + ' square feet.</h2>');
  jQuery("#office_space_link").html(link);
  jQuery('#results').show();
}

function clear_data() {
  jQuery('#results').hide();
}

