jQuery.fn.cleanfield = function(){
    return this.each(function() {
    	jQuery(this)
            .focusin(function(){
    		    if (this.value == this.defaultValue){ 
    		    	this.value = '';
    			}
    			if(this.value != this.defaultValue){
    				this.select();
    			}
    	    });
    	jQuery(this)
    		.focusout(function(){
    		    if ($.trim(this.value) == ''){
    		    	this.value = (this.defaultValue ? this.defaultValue : '');
    			}
    	    });
    });
};
