function cancelComment() {
	$('comment_title').value='';
	$('comment').value='';
	Effect.BlindUp('form_comments');
}
function formPostComment() {
	if ( $('form_comments') == null) {
		if (typeof doLogin != 'undefined') {
			doLogin(); 
		} else {
			alert('Para dejar un comentario debe estar logueado al sitio');
		}
			return;
	}
	if (! $('form_comments').visible()) {
		Effect.BlindDown('form_comments');
		$('div_CommentAdded').hide();
	} else {
		cancelComment();
	}
}
function levaeComment() {
	if ( ! Validation.validate('comment_title')) return;
	if ( ! Validation.validate('comment')) return;
	AppObj.Ajax.sendForm($('form_leave_comment'),'');
	cancelComment();
	$('div_CommentAdded').show();
}

function showAll() {
	AppObj.Ajax.updaterAjax($('hidden_show_all').value + '&page=showall','div_comments_list');
}
function goToCommentPage(intPage) {
	AppObj.Ajax.updaterAjax($('hidden_show_all').value + '&page=' + intPage,'div_comments_list');
	Effect.ScrollTo($('div_comments'));
}
function goComments() {
	Effect.ScrollTo($('div_comments'));
}

function formResponse(intRowId) {
	Effect.BlindDown('div_response_' + intRowId);
}

function cancelResponse(intRowId) {
	Effect.BlindUp('div_response_' + intRowId);
}
function postResponse(intRowId) {
	AppObj.Ajax.sendForm($('form_response_' + intRowId),'');
	cancelResponse(intRowId);
}
