function TryAgain() {
	Form.enable('comments-open-footer');
	hide("comment_posted");
	new Effect.SlideDown('comment_form_block', { duration: 0.5, queue:'end' });
	new Effect.Fade('progress');
}
function item_added() {
			for (i=0;i<document.forms[0].elements.length;i++) {
				document.forms[0].elements[i].disabled = false;
			}
			document.forms[0].text.value = '';
			new Effect.Fade('progress');
			new Effect.SlideDown('newComment');
		}
function item_loading() {
			for (i=0;i<document.forms[0].elements.length;i++) {
				document.forms[0].elements[i].disabled = true;
			}
			new Effect.Appear('progress');
			if (document.forms[0].bakecookie[0].checked) rememberMe(document.forms[0]);
		}
Ajax.Responders.register({
			onCreate: function() {
				if($('busy') && Ajax.activeRequestCount>0)
				Effect.Appear('busy',{duration:0.5,queue:'end'});
			},
			onComplete: function() {
				if($('busy') && Ajax.activeRequestCount==0)
				Effect.Fade('busy',{duration:0.25,queue:'end'});
			}
		});

function ajax_post()
		{
			if (document.getElementById(commentTextDivID).value=="") {
				alert("There is no comment to post.");
				return false;
			}
			if (document.getElementById('comment_preview').style.display!="none") PutAwayPreview();
			Form.disable('comments-open-footer');
			new Effect.Appear('progress', {duration: 0.0});
			var url = '/cgi-bin/mt-shoutout.cgi';
			var pars = Form.serialize('comments_form')+'&post=Post';
			var myAjax = new Ajax.Updater( 'comment_posted', url, { 
																		method: 'post', 
																		parameters: pars,
																		onComplete: highlight_comment
																		});	
			
			return false;
		}
function highlight_comment()
		{
			Form.disable('comments-open-footer');
			new Effect.SlideUp('comment_form_block', { duration: 0.5, queue:'end' });
			new Effect.SlideDown('comment_posted', { duration: 0.5, queue:'end' } );
			new Effect.Highlight('comment_posted',{ startcolor: '#AAAA77', endcolor:'#EEEECC', duration: 5 });
		}