$.fn.defaultinput = function(default_value) {
  return this.each(function() {
    $(this).val($(this).val() == ''?default_value:$(this).val())
    .bind('focus blur', function(){
      if ($(this).val() == '')
      {
        value = default_value;
      }
      else if($(this).val() == default_value)
      {
        value = '';
      }
      else
      {
        value = $(this).val();
      }
      $(this).val(value);
    });
  });
};
