function visitor() {props=window.open('/visitors.php', 'visitor', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=0, width=420, height=210');}
function privacy() {props=window.open('/admin/privacy.html', 'privacy', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=0, width=600, height=560');}
function policy() {props=window.open('/admin/use_policy.html', 'policy', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=0, width=600, height=560');}
function hkfont() {props=window.open('/admin/hkfont.html', 'hkfont', 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=0, width=760, height=560');}
function readchinese() {props=window.open('/admin/readchinese.html', 'readchinese', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=0, width=600, height=600');}

var monthNames = new Array( "January","February","March","April","May","June","July","August","September","October","November","December");
var now = new Date();
thisYear = now.getYear();
if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem

document.write('<table width="780" border="0" cellspacing="0" cellpadding="0" class="normal">');
document.write('<tr>');
document.write('<td height="11" width="630" colspan="2" class="wellcome"><a name="top">3TECH</a> Engineering Consultancy');

// document.write('<img src="/src/menuitem/spacer.gif" height="2" width="300" border="0"><a href="/big5/" class="time">繁體</a> | <a href="/eng/" class="update">ENG</a></td>');
document.write('<img src="/src/menuitem/spacer.gif" height="2" width="300" border="0"><a href="/big5/" class="time">繁體</a></td>');

document.write('<td height="11" width="150" align="right" class="wellcome">&nbsp;&nbsp;');
document.write(monthNames[now.getMonth()] + " " + now.getDate() + ", " + thisYear);
document.write('&nbsp;&nbsp;');
document.write('</td>');
document.write('</tr>');

document.write('<tr>');
// original
document.write('<td class="logo" width="150" valign="top"><a style="cursor: pointer; cursor: hand" onclick="collapseAll(treeMenu)"><img src="/src/menuitem/spacer.gif" height="10" width="100" border="0"></a><br><a style="cursor: pointer; cursor: hand" onclick="expandAll(treeMenu)"><img src="/src/img/3tech.gif" border="0"></a><br><a style="cursor: pointer; cursor: hand" onclick="collapseAll(treeMenu)"><img src="/src/menuitem/spacer.gif" height="10" width="100" border="0"></a></td>');
//document.write('<td class="banner" width="480">');

// xmas 1
//document.write('<td class="logo" width="150" valign="top"><a style="cursor: pointer; cursor: hand" onclick="collapseAll(treeMenu)"><img src="/src/menuitem/spacer.gif" height="10" width="100" border="0"></a><br><a style="cursor: pointer; cursor: hand" onclick="expandAll(treeMenu)"><img src="/src/banner/xmas/logo_xmas.gif" height="40" border="0"><img src="/src/banner/xmas/xmas_tree.gif" height="30" border="0"></a><br><a style="cursor: pointer; cursor: hand" onclick="collapseAll(treeMenu)"><img src="/src/menuitem/spacer.gif" height="10" width="100" border="0"></a></td>');
document.write('<td class="banner" width="480">');

// xmas 2
//document.write('<td class="logo" width="150" valign="top"><a style="cursor: pointer; cursor: hand" onclick="collapseAll(treeMenu)"><img src="/src/menuitem/spacer.gif" height="10" width="100" border="0"></a><br><a style="cursor: pointer; cursor: hand" onclick="expandAll(treeMenu)"><img src="/src/img/xmas/xmas_3tech_logo.gif" border="0"></a><br><a style="cursor: pointer; cursor: hand" onclick="collapseAll(treeMenu)"><img src="/src/menuitem/spacer.gif" height="10" width="100" border="0"></a></td>');
//document.write('<td class="banner" width="480">');
//document.write('<img src="/src/img/xmas/xmas_title.gif" border="0"><img src="/src/img/xmas/xmas_title2.gif" border="0"><br>');

document.write('最新消息<br>');
tips = new Array(1);
tips[0] = '3TECH 與 <a href="http://www.hku.hk" target="_blank"><img src="/src/img/logo_hku.gif" height=40 alt=香港大學 border=0> 香港大學</a> 及 <a href="http://www.cltr.org" target="_blank"><img src="/src/img/logo_cltr.gif" height=40 alt=中國肝移植注冊 border=0> 中國肝移植注冊</a> 建立網上登記系統<br>';
tips[1] = '<a href="http://www.ootr.org" target="_blank"><img src="/src/img/logo_ootr.gif" height=40 alt="OOTR" border="0"></a>Organisation for Oncology and Translational Research<br>';
//tips[1] = '3TECH 與 <img src="http://www.i-logistics.com.hk/images/ilogo.gif"> 合作發展 WMS 及 BAR CODE SYSTEM<br>';
//tips[2] = '<img src="/big5/src/banner/list01.gif" border="0"><img src="/big5/src/banner/list02.gif" border="0"><br>';
//tips[3] = '<img src="/big5/src/banner/list03.gif" border="0"><img src="/big5/src/banner/list04.gif" border="0"><br>';
banner = Math.floor(Math.random() * tips.length);
document.write(tips[banner]);
//document.write('網上<a href="/e-store/">商店</a>現已開幕');
document.write('</td>');
document.write('<td class="ad" width="150">');
document.write('<table border="0" cellpadding="0" cellspacing="0">');
document.write('<form name="webmail" method="post" action="https://3tech.com.hk/src/redirect.php">');
document.write('<tr>');
document.write('<td width=150 align="left" class="left">');
document.write('<font color="#8320A4" style=font-size:8pt>&nbsp;名稱：</font>');
document.write('<input maxlength=64 name=login_username onBlur=this.style.backgroundColor="#ffffff" onFocus=this.style.backgroundColor="#E0C5DC" onMouseOver=this.focus() size=8 style="BORDER-BOTTOM: #000066 0px solid; BORDER-LEFT: #000066 0px solid; BORDER-RIGHT: #000066 0px solid; BORDER-TOP: #000066 0px solid; COLOR: #000066; FONT-SIZE: 8pt">');
document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width=150 align="left" class="left">');
document.write('<font color="#8320A4" style=font-size:8pt>&nbsp;密碼：</font>');
document.write('<input type="password" maxlength=8 name="secretkey" onBlur=this.style.backgroundColor="#ffffff" onFocus=this.style.backgroundColor="#E0C5DC" onMouseOver=this.focus() size=7 style="BORDER-BOTTOM: #000066 0px solid; BORDER-LEFT: #000066 0px solid; BORDER-RIGHT: #000066 0px solid; BORDER-TOP: #000066 0px solid; COLOR: #000066; FONT-SIZE: 8pt">');
document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width=150 align="left" class="left">');
document.write('&nbsp;<input type="image" src="/src/img/weblogin.gif" value="Login">');
document.write('<img src="/src/img/mail.gif"></td>');
document.write('</tr>');
document.write('</form>');
document.write('</table>');
document.write('</td>');
document.write('</tr>');

//document.write('<tr><td colspan="3" height="5" class="wellcome"><img src="/src/menuitem/spacer.gif" height="2" border="0"></td></tr>');
document.write('</table>');
