<!--
date = new Date();
function LZ(x) {return(x<0||x>9?"":"0")+x}

// ------------------------------------------------------------------
// formatDate (date_object, format)
// Returns a date in the output format specified.
// The format string uses the same abbreviations as in getDateFromFormat()
// ------------------------------------------------------------------
function formatDate(date,format) {
	format=format+"";
	var result="";
	var i_format=0;
	var c="";
	var token="";
	var y=date.getYear()+"";
	var M=date.getMonth()+1;
	var d=date.getDate();
	// Convert real date parts into formatted versions
	var value=new Object();
	if (y.length < 4) {y=""+(y-0+1900);}
	value["y"]=""+y;
	value["yy"]=y.substring(2,4);
	value["M"]=M;
	value["MM"]=LZ(M);
	value["d"]=d;
	value["dd"]=LZ(d);
	while (i_format < format.length) {
		c=format.charAt(i_format);
		token="";
		while ((format.charAt(i_format)==c) && (i_format < format.length)) {
			token += format.charAt(i_format++);
			}
		if (value[token] != null) { result=result + value[token]; }
		else { result=result + token; }
		}
	return '<div id="date">' + result + '</div>';
}

function MyEmail(user, domain, suffix) {
	document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '">' + user + '@' + domain + '.' + suffix + '</a>');
}

function openBrWindow(theURL,theFolder) {
	window.open('/popup/' + theFolder + '/' + theURL + '.htm','studio','scrollbars=yes,width=800,height=500');
}

function openAwardBrWindow(theURL,theFolder) {
	window.open('/popup/' + theFolder + '/' + theURL + '1.htm','studio','scrollbars=yes,width=800,height=500');
	window.open('/popup/' + theFolder + '/' + theURL + '2.htm','studio2','scrollbars=yes,width=800,height=500');
	window.open('/popup/' + theFolder + '/' + theURL + '3.htm','studio3','scrollbars=yes,width=800,height=500');
}

function openHKUBrWindow(theURL,theFolder) {
	window.open('/popup/' + theFolder + '/' + theURL + '.htm','studio','scrollbars=yes,width=800,height=500');
	window.open('/popup/' + theFolder + '/award.htm','studio2','scrollbars=yes,width=800,height=500');
}

//-->
