$.fn.extend({ 
	reset: function() {
	    this.each(function() {
	        return ($(this).is('form') && this.reset());
	    });
	},
	clear: function() {
		this.each(function() {
			if ($(this).is('form')) {
	        	$(this).find('input, select').each(function(){
	        		var type= $(this).attr("type");
	                if(type != 'submit' && type != 'reset' && type != 'button' && type != 'hidden') {
	                     $(this).val('');
	                }
	        	});
			}
		});
	}
});
