function show_menu(elmnt)
{
         var stat;
         stat = document.getElementById(elmnt).style.display;
         if (stat == "none")
           {document.getElementById(elmnt).style.display="block";}
         else
             {document.getElementById(elmnt).style.display="none";}
}
function showmenu(elmnt)
{
         document.getElementById(elmnt).style.visibility="visible"
}
function hidemenu(elmnt)
{
         document.getElementById(elmnt).style.visibility="hidden"
}

function outmsg(msg,ctrlwidth)
{
   msg = " <---> "+msg
   newmsg = msg
   while (newmsg.length < ctrlwidth) {newmsg += msg}
   document.write ('<FORM NAME="Outmsg">')
   document.write ('<CENTER><INPUT NAME="outmsg" VALUE= "'+newmsg+'" style="border: none; background : transparent; width: 100%;"></CENTER>')
   document.write ('</FORM>')
   rollmsg()
}
function rollmsg()
{
   NowMsg=document.Outmsg.outmsg.value
   NowMsg=NowMsg.substring(1,NowMsg.length)+NowMsg.substring(0,1)
   document.Outmsg.outmsg.value = NowMsg
   bannerid=setTimeout("rollmsg()",100)
}
function clearInput(targetId){
   if (document.getElementById) {
    target = document.getElementById( targetId );
          target.value = "";
   }
}
