function ToggleSolutionFields(selection) {
	// prep selection
  var selected_section = 's-' + selection + '_options';
	
  // hide all sections
  $('s-other_options').hide();
	$('s-colocation_options').hide();
	$('s-network_options').hide();
	$('s-disaster_recovery_options').hide();
	$('s-managed_services_options').hide();
	
  // show the selected section
  if ($(selected_section)) {
    $(selected_section).show();
  }
}

function ToggleColocationOptionFields(selection) {
	// prep selection
  var selected_section = 'colocation_' + selection + '_fields';
	
	// hide all sections
	$('colocation_shared_space_fields').hide();
	$('colocation_third_cabinet_fields').hide();
	$('colocation_half_cabinet_fields').hide();
	$('colocation_full_cabinet_fields').hide();
	$('colocation_cage_fields').hide();
	
  // show the selected section
  if ($(selected_section)) {
    $(selected_section).show();
  }
}

function ToggleNetworkOptionFields(selection) {
	// prep selection
  var selected_section = 'network_' + selection + '_fields';
	
	// hide all sections
	$('network_t1_fields').hide();
	$('network_eoc_fields').hide();
	$('network_fiber_fields').hide();
	
  // show the selected section
  if ($(selected_section)) {
    $(selected_section).show();
  }
}

function ToggleMSOptionFields(selection) {
	// prep selection
  var selected_section = 'ms_' + selection + '_fields';
	
	// hide all sections
	$('ms_server_fields').hide();
	$('ms_firewall_fields').hide();
	$('ms_router_fields').hide();
	
  // show the selected section
  if ($(selected_section)) {
    $(selected_section).show();
  }
}

function CheckRecoveryType() {
	// hide fields
	$('f-remote_backup_gb').hide();
	$('f-remote_backup_platforms').hide();
	$('f-ha_servers').hide();
	$('f-ha_application').hide();
	
	// show fields
	if ($('disaster_recovery_type_remote_backup').checked == true) {
		$('f-remote_backup_gb').show();
		$('f-remote_backup_platforms').show();
	} else if ($('disaster_recovery_type_ha').checked == true) {
		$('f-ha_servers').show();
		$('f-ha_application').show();
	}
}

Event.observe(window, 'load', function() {
  SetFocus('form', 'firstname');
});