//<!--
browserName = navigator.appName;

// Show date on top-right side
function LZ(x) {return(x<0||x>9?"":"0")+x}

today = new Date();
year  = today.getYear();
month = today.getMonth() + 1;
day   = today.getDate();
hour  = today.getHours();
min   = today.getMinutes();
sec   = today.getSeconds();

if ( browserName == "Netscape" )
{
  year += 1900;
}
DateStr = year + "-" + LZ(month) + "-" + LZ(day) + " " ;
DateStr += ( hour > 12 ) ? "PM " : "AM ";
DateStr += LZ(hour)+ ":" + LZ(min)  ;

// Counter
CountPath = location.pathname;
QString   = location.search ;
PathChunck = CountPath.split('/');
CounterLink = "";

//if ( CountPath == '/' || CountPath == '/index.html' || CountPath == '/index_c.html' )
//{
//  CounterLink = '<img src="/cgi-bin/Count.cgi?df=index_c.html&sh=F" alt="" width=1 height=1>' ;
//}
//else if ( PathChunck[1].indexOf("index_") != -1 )
//{
//  CounterLink = '<img src="/cgi-bin/Count.cgi?df='+PathChunck[1]+'&sh=F" alt="" width=1 height=1>' ;
//}
//if ( PathChunck[2] == "layer2.html" )
//{
//  CounterLink = '<img src="/cgi-bin/Count.cgi?df='+PathChunck[1]+'&sh=F" alt="" width=1 height=1>' ;
//}
//else if ( CountPath == '/2_link/home.html')
//{
//  CounterLink = '<img src="/cgi-bin/Count.cgi?df=2_link&sh=F" alt="" width=1 height=1>' ;
//}
if ( CountPath == '/cgi-bin/news/view-schedule.pl' &&  QString == '?lang=tw&start=1')
{
  CounterLink = '<img src="/cgi-bin/Count.cgi?df=1_schedule&sh=F" alt="" width=1 height=1>' ;
}
else if ( CountPath == '/php-bin/dore2+/list.php4' &&  QString == "?_section=3&_path=../prez")
{
  CounterLink = '<img src="/cgi-bin/Count.cgi?df=1_news&sh=F" alt="" width=1 height=1>' ;
}
else if ( CountPath == '/php-bin/dore2+/listC.php4' &&  QString == "?_section=2&_path=../bulletin")
{
  CounterLink = '<img src="/cgi-bin/Count.cgi?df=2_board&sh=F" alt="" width=1 height=1>' ;
}
else if ( CountPath.indexOf('/php-bin/ooplaw/show/showsub.php') != -1 &&  QString == "?parentuid=17")
{
  CounterLink = '<img src="/cgi-bin/Count.cgi?df=1_law&sh=F" alt="" width=1 height=1>' ;
}
//-->
