function deleteEntry (entry) {
	if (window.confirm('Are you sure you want to delete this entry?')) {
		location.href = '/community/exchange/delete/id/' + entry + '/';
	}
}

function showDisclaimer () {
	window.open('/community/exchange/disclaimer/', 'disclaimer', 'width=400,height=320,resizable=1,scrollbars=1');
}

function saveRating (entry, rating) {
	new Request({url: '/community/exchange/rate/?entry=' + entry + '&rating=' + rating}).send();
}

function enableComment (src) {
	$('submitComment').disabled = (src.value.length == 0) ? true : false;
}

function deleteComment (id) {
	if (window.confirm('Are you sure you want to delete this comment?')) {
		location.href = '/community/exchange/deletecomment/?id=' + id;
	}
}
