$(document).ready(function(){
						   
			var commentorName = ''; 
			var postDate = '';
			
			var currentDate = new Date();
			var day = currentDate.getDate();
  			var month = currentDate.getMonth();
  			var year = currentDate.getFullYear();
			var hours = currentDate.getHours();
  			var minutes = currentDate.getMinutes();
			var seconds = currentDate.getSeconds();
  
  			if (minutes < 10)
  				minutes = "0" + minutes;
			
			if(seconds < 10)
				seconds = "0" + seconds;
			
			postDate = month+'-'+day+'-'+year+'  '+hours+':'+minutes+':'+seconds;
            
			$('#commentor-name').blur(function() {
  	        	commentorName = $(this).val();
            	$('#name-preview').html( commentorName );
				$('#comment-post-date').html( postDate );
  			});
			/*var url = ''; // two single quotes
			$('#url').one('blur',function() {
 				$('#name-preview').replaceWith('<a id="live-url-preview" href=""></a>');
 				url = $(this).val();
				$('#live-url-preview').attr({href : url});
 				$('#live-url-preview').html( commentorName );
			});*/
			$('#comment').one('focus',function() {
				$('#liveCommentPreview').replaceWith('<p id="live-comment-preview"></p>');
  			});
			var comment = ''; // two single quotes
			$('#comment').keyup(function() {
				comment = $(this).val();
				comment = comment.replace(/\n/g, "<br />").replace(/\n\n+/g, '<br /><br />').replace(/(<\/?)script/g,"$1noscript");
				comment = comment.replace("<i>", "").replace("</i>","").replace("<b>", "").replace("</b>","").replace("<u>", "").replace("</u>","").replace("<img", "img");
				$('#live-comment-preview').html( comment );
			});
			
});