// JavaScript Document





function writeHead(title, cssPath)
{	

	var headerHTML = '';
	if (title == null) title = globalTitle;
	if (cssPath == null) cssPath = mainHome.path;

	headerHTML = '<title>';
	headerHTML += title + '</title>\n';
	headerHTML += '<meta http-equiv="Content-Type" content="text/html; charset='+charset+'">\n';

	headerHTML += '<link rel="stylesheet" rev="stylesheet" href="'+cssPath+'css/mm_import.css" type="text/css">\n';

	document.write(headerHTML);
	
// for debug
//alert(headerHTML);

}	// writeHead




//generate the page footer to show the notices and revision date
function writeFooter(imgPath) {
	if (imgPath == null) imgPath = mainHome.path;
	var copyYear='2007';
	//revisionDate = 'MM/DD/YYYY';
	//if (revisionDate==''||revisionDate=='MM/DD/YYYY') revisionDate='01/01/2004';
	var monthArray=new Array();
	monthArray[0]='January';
	monthArray[1]='February';
	monthArray[2]='March';
	monthArray[3]='April';
	monthArray[4]='May';
	monthArray[5]='June';
	monthArray[6]='July';
	monthArray[7]='August';
	monthArray[8]='September';
	monthArray[9]='October';
	monthArray[10]='November';
	monthArray[11]='December';
	//var reDate=new Date(Date.parse(revisionDate))
	//var showDate=reDate.getDate()+' '+monthArray[reDate.getMonth()]+' '+reDate.getFullYear();
	//var showDate=getLastRevisionDate(revisionDate);

	//generate the topic image to the buffer variable
	var scriptBuffer='';
	//scriptBuffer =	'<table cellpadding=4 cellspacing=1 border=0 width=100% align=center bgcolor=#897837>\n';
	//scriptBuffer += '<tr valign=top bgcolor=#333333>\n';
	//scriptBuffer += '<td><font class=f9p color=white>Copyright(C) 2006 the 25th Hong Kong Film Awards. All Rights Reserved.</font><!-- img src="'+imgPath+'images/bottom_list_01.gif" width=758 height=23 border=0 --></td>';
	//scriptBuffer += '</tr></table>';
	scriptBuffer = '<img src="'+imgPath+'images/bottom_list_01.gif" width=758 height=23 border=0>';
		
// for debug
//alert(scriptBuffer);	

	document.write(scriptBuffer);

}
