// Clear text input values
var swap_text_boxes = []; 
function init_swap_text_boxes(){
  //Store the default value for each box
  $('#header fieldset input[type=text][value]').each(function() {
    swap_text_boxes[$(this).attr('id')] = $(this).attr('value');
  });
  //Add focus and blur events to set or clear the value
  $('#header fieldset input[type=text][value]').bind('focus', function() {
    if($(this).val() == swap_text_boxes[$(this).attr('id')]) {
      $(this).val('');
    }
  });
  $('#header fieldset input[type=text][value]').bind('blur', function() {
    if($(this).val() == '') {
      $(this).val(swap_text_boxes[$(this).attr('id')]);
    }
  });
} 
$(document).ready(function(){ init_swap_text_boxes(); });