var swap_text_boxes_name = [];
$(document).ready(function init_swap_text_boxes_name(){
  //Store the default value for each box
  $('input[type=text][value]#nlname').each(function() {
    swap_text_boxes_name[$(this).attr('id')] = $(this).attr('value');
  });
  //Add focus and blur events to set or clear the value
  $('input[type=text][value]#nlname').bind('focus', function() {
    if($(this).val() == swap_text_boxes_name[$(this).attr('id')]) {
      $(this).val('');
    }
  });
  $('input[type=text][value]#nlname').bind('blur', function() {
    if($(this).val() == '') {
      $(this).val(swap_text_boxes_name[$(this).attr('id')]);
    }
  });
});
var swap_text_boxes_email = [];
$(document).ready(function init_swap_text_boxes_email(){
  //Store the default value for each box
  $('input[type=text][value]#nlemail').each(function() {
    swap_text_boxes_email[$(this).attr('id')] = $(this).attr('value');
  });
  //Add focus and blur events to set or clear the value
  $('input[type=text][value]#nlemail').bind('focus', function() {
    if($(this).val() == swap_text_boxes_email[$(this).attr('id')]) {
      $(this).val('');
    }
  });
  $('input[type=text][value]#nlemail').bind('blur', function() {
    if($(this).val() == '') {
      $(this).val(swap_text_boxes_email[$(this).attr('id')]);
    }
  });
});