$.fn.extend({
	showPassword: function (selector){
		$(this).change(function () {
			var type = $(this).closest('form').find(selector).prop('type');
			if (type == 'text' || type == '') {
				$(this).closest('form').find(selector).prop('type', 'password');
			}
			else {
				$(this).closest('form').find(selector).prop('type', 'text');
			}
		});
	}
});
