// JavaScript Document

/**
 * Function that toggles an element given the id using the BlindDown/BlindUp
 * effects from the scriptaculous library.
 *
 * @param	integer		id		The id of the element to toggle.
 */
function rantToggle (theId) {
	if( document.getElementById(theId).style.display == 'none' ) {
		Effect.BlindDown( theId );	
	} else {
		Effect.BlindUp( theId );
	}
}




/**
 * Function that confirms the deletion of an entry or comment.
 *
 * @return	bool		Return true if yes to delete.
 */
function confirmDel() {
	var message;
	
	message = "Are you sure that you want to delete this?";
	
	if(confirm(message)) {
		return true;
	} else {
		return false;
	}
}