//selects all text and refocuses text box after submit
//chosen over clearing the message as some messages dont go through
//due to flood controls, character limits, etc
//this gives the user an option of changing the text, or simply overwriting it
function clear_message()
{
document.tagform.message.focus();
document.tagform.message.select();
}
//empties all text from the message box and re-focuses on the message
//box. This is not the default action.
function clear_message2()
{
document.tagform.message.value="";
document.tagform.message.focus();
}
//handles the popup window for smilies
//attempts to write all the contents directly, without file accesses
//this is faster and requires less effort on the browser
function pop_up_smilies()
{
var smilie=window.open('','smilies','resizable=yes,scrollbars=yes,width=300,height=500');
smilie.opener=window;
smilie.document.open("text/html");
smilie.document.write('\\
\');
smilie.document.write('\');
//close our open 'file' in javascript and return false so that the backup
//popup doesn't display
smilie.document.close();
return false;
}
//used to remember user names and 'urls' across all tag boards
//based solely on cookies. Used as a simple convenience feature
function rememberme()
{
var tempdate=new Date()
//code to write the user's clock as variable data for setting timestamps
//to local values. This local timestamp feature is not yet implemented
document.write ('\');
document.write ('\');
//used to start up the netscape code if this is netscape
start_net();
}
//select the message after it is submitted. pause 0.2 seconds to be sure
//that the message has been submitted first
//function is named poorly, but the default has been changed and I didn't want
//to break the code for various folks, so I didn't rename
function Clear_Last_Message_on_Submit()
{
document.tagform.submit();
setTimeout("clear_message()",200);
return false;
}
function Clear_Last_Message_on_Submit2()
{
document.tagform.submit();
setTimeout("clear_message2()",200);
return false;
}
//empty functions, only needed under netscape 4.x
function start_net()
{
}
function netscape_support()
{
}