var timenow= new Date();

var monthname = new Array('January','February','March','April','May','June','July','August','September','October','November','December');

var timestr = monthname[timenow.getMonth()]+' '+timenow.getDate()+', '+((is.ie)?(timenow.getYear()):(timenow.getYear()+1900))+' ';

timestr +=  ((timenow.getHours()<10)?'0':'')+timenow.getHours()+':'+((timenow.getMinutes()<10)?'0':'')+timenow.getMinutes();



function printbox()

{

	document.writeln(timestr+'<br><br>');

	document.writeln('No. of visitors: <img src="http://s11.sitemeter.com/meter.asp?site=s11iesoc2002" border=0" align="absbottom"><br><br>');



		var usr;



		if((GetCookie("ielsuid")!=null)&&((usr = GetCookie("ielsusr"))!=null)&&(GetCookie("ielspwd")!=null)&&(GetCookie("ielsgrp")!=null))

		{

			document.writeln( usr +' 已登入。<br>');

			document.writeln('<a href="ielogsys.cgi?action=logout&time='+timenow.getTime()+'">按此登出</a><br><br>');

		} else {

			if((self.location.href.indexOf("http://two.guestbook.de/")!=-1)&&((usr = GetParam("ielsusr"))!=null))

			{

				document.writeln( usr +' 已登入。<br>');

				document.writeln('<a href="ielogsys.cgi?action=logout&time='+timenow.getTime()+'">按此登出</a><br><br>');

			} else {

				document.writeln('<form method=post action="ielogsys.cgi">');

				document.writeln('<input type=hidden name="action" value="login">');

				document.writeln('登入系統<br>');

				document.writeln('<a href="ielogsys/faq.html#id">名稱</a>：<input type=text name="id" size="10"><br>');

				document.writeln('<a href="ielogsys/faq.html#password">密碼</a>：<input type=password name="pwd" size="10"><br>');

				document.writeln('　　　<input type=submit value="登入">');

				document.writeln('</form>');

			}

		}



	//document.writeln('Created: 14/01/2002<br>');

	//document.writeln('Modified: 13/01/2008<br><br>');

	document.writeln('Best viewed with Internet Explorer ver 6.0+ or Netscape ver 7.0+ and resolution 800x600.<br><br>');

	document.writeln('Comments, questions, or confessions about our site? Please write the <a href="mailto:iesoc@ie.cuhk.edu.hk">Webmasters</a>.<br><br>');

//copyright should start from the year created to the present year

	document.writeln('Copyright (C) 2002 - 2009 by <a href="mailto:iesoc@ie.cuhk.edu.hk">Information Engineering Society</a>. All rights reserved.<br><br>');

	document.writeln('<a href="credits.html">Credits</a><br>');

}



