(function ($)
{
  $(document).ready(function(evt)
  {
    // Loop through all tet inputs that have the class default-text and extend their functionality
    $(':text.default-text').each(function(idx)
    {
		this.defaultValue = this.value;
		$(this)
			.focus(function() { if (this.value === this.defaultValue) { this.value = ''; $(this).removeClass('default-text'); } })
			.blur(function() { if (this.value === '') { this.value = this.defaultValue; $(this).addClass('default-text'); } });
    });
  });
})(jQuery);