function navMessage () {
	
	var self = this;
	
	this.rootws = null;
	
	this.saveMessage = function (formElement) {
		//e.stopPropagation();
		$.ajax({
			type: 'POST',
			url: formElement.action,
			data: $(formElement).serialize(),
			success: function(data) {
				$(formElement).replaceWith(data);
			}
		});
		
	}
	
	this.blindcopy = function (element) {
		$(element).next('.blindcopy').html($(element).val().replace(/\n/g, '<br/>')+'&nbsp');
	}
	
}

var navMsgObj = new navMessage();

$(document).ready(function() {
	$(".preventBubbles").each(function() {
		$(this).click(function(e) {
			e.stopPropagation();
			console.log(this);
		});
	});
});
