

function SubmitGBComment() {
			
	var res;	
	
	res = confirm('Are you sure you want to leave this message in the guestbook?');
	
	if( !res ) {
		return false;
	}

	jQuery.ajax({
		url: './ajax/pfilter.php?t='+$('guestbookCommentContent').value,
		type: 'GET',
		dataType: 'JSON',
		timeout: 8000,
		error: function(){
				//alert('Error loading XML document');

		},
		success: function(data){
			data = JSON.parse(data);

			if( data.p == 1 ) {
				msg = 'Certain words in your message will be masked and the creator of this memorial will be required to approve your message.  After approval, your message will appear as follows:\n\n'+data.masked+'\n\nDo you still wish to submit this message?'
				res = confirm(msg);
	
				if( !res ) {
					return false;
				}
			}
			document.formGuestbookComment.submit();
			
		}
	});
	
}

