//kill html in comments code

$(document).ready(function(){

// hide empty ad box if ad is not served
        if($('#atwAdFrame1').css('display') == 'none')
{
$('.blogArtAd').css('display', 'none')
}

// end hide code


// remove html from comments
	$(".filled").bind('change', function() {						   
		var commentText = $(".filled").val().replace(/ /g,'');
		if(commentText.indexOf("[") !== -1 || commentText.indexOf("<") !== -1) {
			alert("Your comment appears to contain forbidden HTML elements.\n\nWe welcome your thoughts but need to protect our users from objectionable content so your comment has been deleted. If you would like to add your comment to this thread, please re-enter it without HTML.")
			$(".filled").val("");
		}
	});
$('.filled').each(function() {
                	$('.filled').bind('paste', function() {
var startcontents = $('.filled').val();
  						alert("We have disabled pasting in comments to reduce spam. If you'd like to join the conversation please type your comment.");
						setTimeout(function() {$(".filled").val(startcontents);}, 1);
                	});
var startcontents =""
      		});
});

// end html suppression code
