/*
 * jQuery.inputClear
 * Copyright (c) 2009 Michal Simonfy | http://virae.org
 */

(function($){
	$.fn.inputClear = function(){
 	this.each(function(){

		var btnVal = $(this).val();

		$(this).focus(function(){

			if ($(this).val()==btnVal) {
				$(this).val('');
			}
		});

		$(this).blur(function(){
			if ($(this).val()=='') {
				$(this).val(btnVal);
			}
		});
		
	});
	return this;
 	}
})(jQuery);

(function($){
	$.fn.inputAutocompleteOff = function(){
 	this.each(function(){

		$(this).attr('autocomplete','off');
		
	});
	return this;
 	}
})(jQuery);
