﻿(function($) {
$.fn.mmcFormDefaults = function() {
	this.each(function() {
	
		if ($(this).val()=='') {
			$(this).val($(this).attr('title'));
		}
		
		$(this).bind('focus', function() {
			if ($(this).val() == $(this).attr('title')) {
				$(this).val('');
			}	
		});
		
		$(this).bind('blur', function() {
			if ($(this).val() == '') {
				$(this).val($(this).attr('title'));
			}
		});
	});
	
	return this;
};
})(jQuery);