jQuery(document).ready(function() {
	jQuery('input[type="text"]').focus(function() {
		jQuery(this).addClass("focus-field");
	    if (this.value == this.defaultValue){ 
	    	this.value = '';
		}
		if(this.value != this.defaultValue){
			this.select();
		}
	});
	jQuery('input[type="text"]').blur(function() {
		jQuery(this).removeClass("focus-field");
	    if (jQuery.trim(this.value) == ''){
	    	this.value = (this.defaultValue ? this.defaultValue : '');
		}
	});
});
