var x$ = jQuery.noConflict();

(function(x$) {
	x$.fn.textboxhelp = function(options) {
		var defaults = { help: 'Help me!', focuscls: 'focus' };
		// merge defaults with coming parameters
		var opts = x$.extend(defaults, options);
		x$(this).val(opts.help);
		x$(this).focus(function() {
			// keep the text for check
			var t = x$(this).val();
			// when user focus to textbox, we should clean inside it
			// but first we should check exist text
			if (t.length > 0 && t == opts.help)
				x$(this).removeClass(opts.focuscls).val('');
		}).blur(function() {
			// keep the text for later check
			var t = x$(this).val();
			// if textbox is empty, we will add help text inside it again
			if ('' == t)
				x$(this).addClass(opts.focuscls).val(opts.help);
		});
	}
})(jQuery); 

