
function newitem(str)
{


   endDate = new Date(str);
   if (Date.parse(Date()) < Date.parse(endDate))
   {
       document.write('New!&nbsp;');
   }
}


function tierMenu(objMenu,objImage)
{
   if (objMenu.style.display == "none")
   {
       objMenu.style.display = "";
       objImage.src = "/taiwan/security/images/minus.gif";
   }
   else
   {
       objMenu.style.display = "none";
       objImage.src = "/taiwan/security/images/plus.gif";
   }
}

/////////////////////////////////////////////////////////////////////////////
///
/// <function>
/// <name>fnPrint</name>
/// <summary>
/// Added 9/5/01 to accomodate Print Friendly fix.  Used to expand
/// any collapsed content and then print the page.
/// </summary>
/// </function>
///
/////////////////////////////////////////////////////////////////////////////

function fnPrint()
{

            for(i = 1;i < 20;i++)
            {
               var sSpanID = "menu" + i;
               var sCheck = eval(sSpanID).style.display;

               if(sCheck == 'none')
               {
                  var sImageID = "img" + i;
                  tierMenu(eval(sSpanID),eval(sImageID));
               }
       		
            }
         
} //end fnPrint