var messages = new Object();


// DELETE STUFF

messages['deluser'] = "<h2>Are you sure?</h2><p>Do you really want to delete this user?</p><div class='button_row'><a class='button neg' href='#' onclick='document.getElementById(\"action\").value = \"delete_user\"; document.userform.submit();' ><span>Delete</span></a><a class='button' href='#' onclick='return hide_message()' ><span>Cancel</span></a><div class='break'></div></div>";

messages['delnews'] = "<h2>Are you sure?</h2><p>Do you really want to delete this news entry?</p><div class='button_row'><a class='button neg' href='#' onclick='document.getElementById(\"action\").value = \"delete_news\"; document.newsform.submit();' ><span>Delete</span></a><a class='button' href='#' onclick='return hide_message()' ><span>Cancel</span></a><div class='break'></div></div>";

messages['delfiles'] = "<h2>Are you sure?</h2><p>Do you really want to delete the selected files?</p><div class='button_row'><a class='button neg' href='#' onclick='document.list.submit()' ><span>Delete</span></a><a class='button' href='#' onclick='return hide_message()' ><span>Cancel</span></a><div class='break'></div></div>";

messages['dellinks'] = "<h2>Are you sure?</h2><p>Do you really want to delete the selected links?</p><div class='button_row'><a class='button neg' href='#' onclick='document.list.submit()' ><span>Delete</span></a><a class='button' href='#' onclick='return hide_message()' ><span>Cancel</span></a><div class='break'></div></div>";

messages['delfiles_ingroup'] = "<h2>Are you sure?</h2><p>Do you really want to delete the selected files?</p><div class='button_row'><a class='button neg' href='#' onclick='$(\"#formaction\").val(\"delete_files\");document.list.submit()' ><span>Delete</span></a><a class='button' href='#' onclick='return hide_message()' ><span>Cancel</span></a><div class='break'></div></div>";

messages['remfiles'] = "<h2>Are you sure?</h2><p>Do you really want to remove the selected files from this group?<br/>They will not be deleted.</p><div class='button_row'><a class='button neg' href='#' onclick='$(\"#formaction\").val(\"remove_files\");document.list.submit()' ><span>Remove</span></a><a class='button' href='#' onclick='return hide_message()' ><span>Cancel</span></a><div class='break'></div></div>";

messages['delgroups'] = "<h2>Are you sure?</h2><p>Do you really want to delete the selected groups?</p><div class='button_row'><a class='button neg' href='#' onclick='document.list.submit()' ><span>Delete</span></a><a class='button' href='#' onclick='return hide_message()' ><span>Cancel</span></a><div class='break'></div></div>";

messages['delgroup'] = "<h2>Are you sure?</h2><p>Do you really want to delete this group?<br/>No files will be deleted.</p><div class='button_row'><a class='button neg' href='#' onclick='document.delete_form.submit()' ><span>Delete</span></a><a class='button' href='#' onclick='return hide_message()' ><span>Cancel</span></a><div class='break'></div></div>";

// EMPTY SELECTIONS

messages['nofiles'] = "<h2>No files selected</h2><p>You have to select some files before you can delete them!</p><div class='button_row'><a class='button' href='#' onclick='return hide_message()' ><span>OK</span></a><div class='break'></div></div>";

messages['nogroups'] = "<h2>No groups selected</h2><p>You have to select some groups before you can delete them!</p><div class='button_row'><a class='button' href='#' onclick='return hide_message()' ><span>OK</span></a><div class='break'></div></div>";

messages['nofiles_g'] = "<h2>No files selected</h2><p>You have to select some files from the list before you can assign them to a group!</p><div class='button_row'><a class='button' href='#' onclick='return hide_message()' ><span>OK</span></a><div class='break'></div></div>";

messages['nofiles_r'] = "<h2>No files selected</h2><p>You have to select some files from the list before you can remove them from this group!</p><div class='button_row'><a class='button' href='#' onclick='return hide_message()' ><span>OK</span></a><div class='break'></div></div>";

messages['nolinks'] = "<h2>No links selected</h2><p>You have to select some links before you can delete them!</p><div class='button_row'><a class='button' href='#' onclick='return hide_message()' ><span>OK</span></a><div class='break'></div></div>";

// MISC MESSAGES

messages['passdiff'] = "<h2>Please check your new password</h2><p>The passwords you entered are not the same.</p><div class='button_row'><a class='button' href='#' onclick='return hide_message()' ><span>OK</span></a><div class='break'></div></div>";

messages['allfields'] = "<h2>Please check the form</h2><p>You have to fill out the Name and URL fields!</p><div class='button_row'><a class='button' href='#' onclick='return hide_message()' ><span>OK</span></a><div class='break'></div></div>";

messages['invconfirm'] = "<h2>Are you sure?</h2><p>Do you really want to create the user <strong>%%%</strong>? This can not be undone!</p><div class='button_row'><a class='button pos' href='#' onclick='document.invite_form.submit()' ><span>Create</span></a><a class='button' href='#' onclick='return hide_message()' ><span>Cancel</span></a><div class='break'></div></div>";

messages['invempty'] = "<h2>No username entered</h2><p>You need to enter a username to invite somebody!<div class='button_row'><a class='button' href='#' onclick='return hide_message()' ><span>OK</span></a><div class='break'></div></div>";

messages['bbcode'] = "<h2>BBCode Info</h2><p>You can use the following BBCode tags to format your group description:</p><ul class='bbcode'><li><code><strong>[b]Bold Text[/b]</strong></code></li><li><code><em>[i]Italic Text[/i]</em></code></li><li><code><a>[url=http://dznr.org]Links[/url]</strong></code></li></ul><div class='button_row'><a class='button' href='#' onclick='return hide_message()' ><span>OK</span></a><div class='break'></div></div>";


function get_message(theMessage) {
	return messages[theMessage];
}