/*

	Custom random tools and functions for the application using Jquery.
	
*/

jQuery.extend(jQuery.fn, {

	stripHTML: function( options ){
		
		// option defaults (maybe more can be added later
		defaults = {
			matchTag : /<(?:.|\s)*?>/g
		};
		
		// extend options if any
		jQuery.extend( defaults, options );
							
		// perform text replacement				
		this.val( this.val().replace(defaults.matchTag, ''));		
	}
	
	
});

jQuery.fn.fadeToggle = function(speed, easing, callback) {
    return this.animate({opacity: 'toggle'}, speed, easing, callback);
};