/*
This clears out the "hint" in the input fields and clears them out. Replaces with the original hint if no text is entered.
Thanks to Jörn Zaefferer:
http://bassistance.de/2007/01/23/unobtrusive-clear-searchfield-on-focus/
*/
$.fn.clearField = function() {
	return this.addClass('hint-text').focus(function() {
		if( this.value == this.defaultValue ) {
			this.value = "";
      $(this).removeClass('hint-text');
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = this.defaultValue;
      $(this).addClass('hint-text');
		}
	});
};


/*
Initialize
*/
$(function() {	
	$(".clear_field").clearField();
});