jQuery(document).ready(function()
{
    jQuery('input:text').each(function(i)
    {
	    var $this = jQuery(this);
	    if ($this.attr('defaultval') != null && $this.attr('defaultval') != "")
	    {
		    $this.focus(function(e)
		    {
			    var $this = jQuery(this);
			    if ($this.val() === $this.attr('defaultval'))
			    {
				    $this.val('');
			    }
		    });
    		
		    $this.blur(function(e)
		    {
			    var $this = jQuery(this);
			    if ($this.val() === "")
			    {
				    $this.val($this.attr('defaultval'));
			    }
		    });
	    }
    });
});