var colTitles = new Array('(S)', 'Subject', 'Date', 'From', 'To'); var msgNotFound = "Message body could not be found."; var replyText = "Reply"; function makeMessagesTooltips() { msgtt = new Array(); if (ttDelay == 0) { var i; for (i=0;i<86;i++) msgtt[i] = ""; return; } msgtt[0] = tt_Dynamic("Click here to write a new message"); msgtt[1] = tt_Dynamic("Click here to go to the folder management page"); msgtt[2] = tt_Dynamic("Click here to view the contents of this folder"); msgtt[3] = tt_Dynamic("Click here to go to the forums' page"); msgtt[10] = tt_Dynamic("Select the type of recipient for this message"); msgtt[11] = tt_Dynamic("Specify here the name of the recipient of this message"); msgtt[12] = tt_Dynamic("Specify here the subject of this message"); msgtt[13] = tt_Dynamic("Specify here the body of this message"); msgtt[14] = tt_Dynamic("Click here to send this message"); msgtt[20] = tt_Dynamic("Select the number of messages to display on each page"); msgtt[21] = tt_Dynamic("Use this check box to switch between threaded / linear view"); msgtt[30] = tt_Dynamic("Select the page of messages to display"); msgtt[40] = tt_Dynamic("Click here to delete the selected message(s)"); msgtt[41] = tt_Dynamic("Click here to move the selected message(s) to the chosen folder"); msgtt[42] = tt_Dynamic("Select the folder to which you want to move the selected message(s)"); msgtt[50] = tt_Dynamic("Use this check box to select / unselect this folder"); msgtt[51] = tt_Dynamic("Click here to rename the selected folder"); msgtt[60] = tt_Dynamic("Click here to create a new folder"); msgtt[70] = tt_Dynamic("Click here to flush the contents of the selected folder(s)"); msgtt[71] = tt_Dynamic("Click here to delete the selected folder(s)"); msgtt[80] = tt_Dynamic("Use this check box to select / unselect all messages in this folder"); msgtt[81] = tt_Dynamic("Click here to sort the messages according to this field"); msgtt[82] = tt_Dynamic("Use this check box to select / unselect this message"); msgtt[83] = tt_Dynamic("Click here to display / hide the body of this message"); msgtt[84] = tt_Dynamic("Click here to send a message to this recipient"); msgtt[85] = tt_Dynamic("Click here to reply to this message"); } function drawMainMenu() { var str = ''; str += ''; str += ''; str += ''; str += ''; str += ''; var i, ic; for (i=0;i '; str += ''; } str += ''; str += ''; str += '
 
Messages
 
'; if (page == "Compose") str += 'Compose a message'; else str += 'Compose a message'; str += '
'; if (page == "Folders") str += 'Folders'; else str += 'Folders'; str += '
'; str += ic ? '' : (''); if (folders[i].nCount > 0) str += "" if (folders[i].type == 'CUS') str += folders[i].name; else if (folders[i].type == 'IN') str += 'Inbox'; else if (folders[i].type == 'INT') str += 'Internal transmissions'; else str += 'Sent messages'; if (folders[i].nCount > 0) str += " (" + folders[i].nCount + ")"; str += ic ? '' : ''; str += '
 
Forums
'; document.getElementById('mmenu').innerHTML = str; } function drawComposePage() { var i, a = new Array('player', 'planet', 'alliance'); var str = '

Compose a message

'; str += ''; if (pCompose.sent) str += ''; else if (pCompose.errors[0] != 0) { str += ''; } str += ''; if (pCompose.errors[1] != 0) { str += ''; } str += ''; if (pCompose.errors[2] != 0) { str += ''; } str += ''; str += ''; str += '

Your message has been sent

 '; switch (pCompose.errors[0]) { case 1: str += 'Please specify message recipient.'; break; case 2: str += 'Recipient not found.'; break; } str += '
Message to:
 '; switch (pCompose.errors[1]) { case 1: str += 'Please specify message subject.'; break; case 2: str += 'Subject is too long (max. 64 characters).'; break; } str += '
Subject:
 '; switch (pCompose.errors[2]) { case 1: str += 'You are not allowed to send empty messages.'; break; } str += '
Message:
 
'; if (pCompose.rId != -1) str += '

Replying to...

' + pCompose.rText + '

'; str += '
'; document.getElementById('mbody').innerHTML = str; } function drawPageNotFound() { document.getElementById('mbody').innerHTML = '

Folder not found

The folder you are trying to browse cannot be found.

'; } function drawFolderLayout() { var str = '

"'; switch (folders[vFolder].type) { case "IN": str += "Inbox"; break; case "INT": str += "Internal Transmissions"; break; case "OUT": str += "Sent Messages"; break; case "CUS": str += folders[vFolder].name; break; } str += '" Folder

Loading browser...

'; document.getElementById('mbody').innerHTML = str; } function drawFolderControls(s) { var i, str = '
'; str += ''; str += '
'; str += 'Messages per page: