function writeHKIEd4u(lang) {
	
	var str;
	
	if (document.all) {
		str = '<select name="select" onChange="hkied4u_jumpMenu(\'parent\',this,1)" class="combo">';
	}
  else if (document.getElementById)
		str = '<select name="select" onChange="hkied4u_jumpMenu(\'parent\',this,1)" class="comboNS6">';
	else {
		str = '<select name="select" onChange="hkied4u_jumpMenu(\'parent\',this,1)">';
	}
	
	// Add Combo Menu Item
	if (lang == "eng") {
		/// English version
		str += '<option value="#" selected>HKIEd for you</option>';
		str += '<option value="/pro_student/index.html">Prospective Students</option>';
		str += '<option value="http://www.alumni.ied.edu.hk/eng/index.htm,_blank">Alumni</option>';
		str += '<option value="http://www.ied.edu.hk/ciao/donation/index.html,_blank">Donors</option>';
		str += '<option value="http://www.ied.edu.hk/ciao/media/index.html,_blank">Media</option>';
		str += '<option value="http://www.ied.edu.hk/ciao/cr/index.html,_blank">Visitors</option>';
	}
	else {
		/// Chinese version
		str += '<Font size="2">';
		str += '<option value="#" selected>教院與你</option>';
		str += '<option value="/pro_student/index_c.html">有意報讀教院學生</option>';
		str += '<option value="http://www.alumni.ied.edu.hk/chi/index.htm,_blank">校友</option>';
		str += '<option value="http://www.ied.edu.hk/ciao/donation/index_c.html,_blank">認捐者</option>';
		str += '<option value="http://www.ied.edu.hk/ciao/media/index_c.html,_blank">傳媒</option>';
		str += '<option value="http://www.ied.edu.hk/ciao/cr/index_c.html,_blank">訪客</option>';
		str += '</Font>';
	}
	str += '</select>';
	
	//document.write(str);
	return str;
}

function writeHeader_Cover(lang) {
	
	var str;
	
	if (lang == "eng") {
		str = '<table width="100%" border="0" cellpadding="0" cellspacing="0" background="/common/imgtemplate/header_bg.gif"><tr><td><table width="760" height="43" border="0" cellpadding="0" cellspacing="0" background="/common/imgtemplate/header.gif"><form action=http://search.ied.edu.hk/search/search.cgi method=get name=searchform id=searchform><input name=mode type=hidden value=150><input name=lmode type=hidden value=150><input name=pq type=hidden value=""><input name=pg type=hidden value=""><input name=pn type=hidden value=0><input name=qm type=hidden value=0><input name=ft_1 type=hidden value=alltype><input name=de type=hidden value=0><input name=so type=hidden value=0><input name=ma type=hidden value=100><input name=nu type=hidden value=10><input name=ca type=hidden value=0><input name=ta type=hidden value=all><input name=fu type=hidden value=""><input name=fd type=hidden value=""><input name=fde type=hidden value=""><input name=la type=hidden value=1><INPUT name=gr_1 type=hidden value="hkied"><INPUT name=gr_2 type=hidden value="projects"><INPUT name=gr_3 type=hidden value="personal"><tr><td width="500" align="right"> <table width="120" border="0" cellspacing="0" cellpadding="0" background="/common/imgtemplate/spacer.gif"><tr><td width="316">';
		str += writeHKIEd4u(lang);
		str += '</td></tr></table></td><td align="right" background="/common/imgtemplate/spacer.gif"><table width="235" border="0" cellspacing="0" cellpadding="0"><tr><td width="54"><img src="/common/imgtemplate/search.gif" alt="Search"></td><td width="89"><input maxlength=1024 name=qu value="" class="txtBoxSearch" size="7"></td><td width="52"><input name="submit" type="image" src="/common/imgtemplate/search_button.gif" width="20" height="20" border="0" alt="Search"></td><td width="40"><a href="index_c.html"><img src="/common/imgtemplate/chi_button.gif" alt="Chinese" width="23" height="11" border="0"></a></td></tr></table></td></tr></form></table></td></tr></table>';
	}
	else {
		str = '<table width="100%" border="0" cellpadding="0" cellspacing="0" background="/common/imgtemplate/header_bg.gif"><tr><td><table width="760" height="43" border="0" cellpadding="0" cellspacing="0" background="/common/imgtemplate/header.gif"><form action=http://search.ied.edu.hk/search/search.cgi method=get name=searchform id=searchform><input name=mode type=hidden value=150><input name=lmode type=hidden value=150><input name=pq type=hidden value=""><input name=pg type=hidden value=""><input name=pn type=hidden value=0><input name=qm type=hidden value=0><input name=ft_1 type=hidden value=alltype><input name=de type=hidden value=0><input name=so type=hidden value=0><input name=ma type=hidden value=100><input name=nu type=hidden value=10><input name=ca type=hidden value=0><input name=ta type=hidden value=all><input name=fu type=hidden value=""><input name=fd type=hidden value=""><input name=fde type=hidden value=""><input name=la type=hidden value=1><INPUT name=gr_1 type=hidden value="hkied"><INPUT name=gr_2 type=hidden value="projects"><INPUT name=gr_3 type=hidden value="personal"><tr><td width="500" align="right"><table width="80" border="0" cellpadding="0" cellspacing="0" background="/common/imgtemplate/spacer.gif"><tr><td width="316">';
		str += writeHKIEd4u(lang);
		str += '</td></tr></table></td><td align="right" background="/common/imgtemplate/spacer.gif"><table width="235" border="0" cellspacing="0" cellpadding="0"><tr><td width="52"><img src="/common/imgtemplate/search_c.gif" alt="搜尋"></td><td width="88"><input maxlength=1024 name=qu value="" class="txtBoxSearch" size="7"></td><td width="41"><input name="submit" type="image" src="/common/imgtemplate/search_button.gif" width="20" height="20" border="0" alt="搜尋"></td><td width="54"><a href="index.html"><img src="/common/imgtemplate/eng_button.gif" alt="English" width="43" height="7" border="0"></a></td></tr></table></td></tr></form></table></td></tr></table>';
	}
	
	document.write(str);
}

function writeHeader(lang) {
	var str;
	
	if (lang == "eng") {
    str = '<table width="100%" border="0" cellpadding="0" cellspacing="0" background="/common/imgtemplate/header_bg.gif"><tr><td><table width="760" height="43" border="0" cellpadding="0" cellspacing="0" background="/common/imgTemplate/header.gif"><form action=http://search.ied.edu.hk/search/search.cgi method=get name=searchform id=searchform><input name=mode type=hidden value=150><input name=lmode type=hidden value=150><input name=pq type=hidden value=""><input name=pg type=hidden value=""><input name=pn type=hidden value=0><input name=qm type=hidden value=0><input name=ft_1 type=hidden value=alltype><input name=de type=hidden value=0><input name=so type=hidden value=0><input name=ma type=hidden value=100><input name=nu type=hidden value=10><input name=ca type=hidden value=0><input name=ta type=hidden value=all><input name=fu type=hidden value=""><input name=fd type=hidden value=""><input name=fde type=hidden value=""><input name=la type=hidden value=1><INPUT name=gr_1 type=hidden value="hkied"><INPUT name=gr_2 type=hidden value="projects"><INPUT name=gr_3 type=hidden value="personal"><tr><td width="239" valign="top"><a href="http://www.ied.edu.hk"><img src="/common/imgtemplate/sublogo.gif" width="118" height="43" border="0" alt="HKIEd"></a></td><td width="240" align="right"><table width="120" border="0" cellpadding="0" cellspacing="0" background="/common/imgTemplate/spacer.gif"><tr><td width="316">';
		str += writeHKIEd4u(lang);
		//str += '</td></tr></table></td><td width="281" align="right" background="imgTemplate/spacer.gif"><table width="270" border="0" cellspacing="0" cellpadding="0"><tr><td width="53"><font size="2" face="Arial, Helvetica, sans-serif">Search</font></td><td width="88"><input maxlength=1024 name=qu value="" class="txtBoxSearch" size="7"></td><td width="34"><input name="submit" type="image" src="/common/imgtemplate/search_button.gif" width="20" height="20" border="0" alt="Search"></td><td width="54"><a href="/index.html"><img src="/common/imgtemplate/home.gif" width="32" height="9" border="0" alt="Home"></a></td><td width="41"><a href="javascript:verPathConvert();"><img src="/common/imgtemplate/chi_button.gif" alt="Chinese" width="23" height="11" border="0"></a></td></tr></table></td></tr></form></table></td></tr></table>'
		str += '</td></tr></table></td><td width="281" align="right" background="imgTemplate/spacer.gif"><table width="270" border="0" cellspacing="0" cellpadding="0"><tr><td width="53"><img src="/common/imgtemplate/search.gif" alt="Search"></td><td width="88"><input maxlength=1024 name=qu value="" class="txtBoxSearch" size="7"></td><td width="34"><input name="submit" type="image" src="/common/imgtemplate/search_button.gif" width="20" height="20" border="0" alt="Search"></td><td width="54"><a href="/index.html"><img src="/common/imgtemplate/home.gif" width="32" height="9" border="0" alt="Home"></a></td><td width="41"><a href="javascript:verPathConvert();"><img src="/common/imgtemplate/chi_button.gif" alt="Chinese" width="23" height="11" border="0"></a></td></tr></table></td></tr></form></table></td></tr></table>'
		str += '<table width="100%" border="0" cellpadding="0" cellspacing="0" background="/common/imgtemplate/3color_bg.gif"><tr><td><table width="760" border="0" cellpadding="0" cellspacing="0" background="/common/imgtemplate/3color_bg.gif"><tr><td width="333"><img src="/common/imgtemplate/left_3color.gif" width="172" height="23"></td><td width="427" align="right"><img src="/common/imgtemplate/3color.gif" alt="STUDY" width="399" height="23" border="0" usemap="#Map3color"></td></tr></table></td></tr></table><map name="Map3color"><area shape="rect" coords="2,2,76,21" href="/study/index.html" alt="STUDY"><area shape="rect" coords="91,2,253,21" href="/research/index.html" alt="RESEARCH AND SCHOLARSHIP"><area shape="rect" coords="275,2,396,21" href="/community/index.html" alt="COMMUNITY SERVICE"></map>';
		
	}
	else {
		str = '<table width="100%" border="0" cellpadding="0" cellspacing="0" background="/common/imgtemplate/header_bg.gif"><tr><td><table width="760" height="43" border="0" cellpadding="0" cellspacing="0" background="/common/imgTemplate/header.gif"><form action=http://search.ied.edu.hk/search/search.cgi method=get name=searchform id=searchform><input name=mode type=hidden value=150><input name=lmode type=hidden value=150><input name=pq type=hidden value=""><input name=pg type=hidden value=""><input name=pn type=hidden value=0><input name=qm type=hidden value=0><input name=ft_1 type=hidden value=alltype><input name=de type=hidden value=0><input name=so type=hidden value=0><input name=ma type=hidden value=100><input name=nu type=hidden value=10><input name=ca type=hidden value=0><input name=ta type=hidden value=all><input name=fu type=hidden value=""><input name=fd type=hidden value=""><input name=fde type=hidden value=""><input name=la type=hidden value=1><INPUT name=gr_1 type=hidden value="hkied"><INPUT name=gr_2 type=hidden value="projects"><INPUT name=gr_3 type=hidden value="personal"><tr><td width="239" valign="top"><a href="http://www.ied.edu.hk"><img src="/common/imgtemplate/sublogo.gif" width="118" height="43" border="0" alt="香港教育學院"></a></td><td width="240" align="right"><table width="120" border="0" cellpadding="0" cellspacing="0" background="/common/imgTemplate/spacer.gif"><tr><td width="316">';
		str += writeHKIEd4u(lang);
		//str += '</td></tr></table></td><td width="281" align="right" background="imgTemplate/spacer.gif"><table width="270" border="0" cellspacing="0" cellpadding="0"><tr><td width="52"><font size="2">搜尋</font></td><td width="87"><input maxlength=1024 name=qu value="" class="txtBoxSearch" size="7"></td><td width="33"><input name="submit" type="image" src="/common/imgtemplate/search_button.gif" width="20" height="20" border="0" alt="搜尋"></td><td width="45"><a href="/index_c.html"><img src="/common/imgtemplate/home_c.gif" width="24" height="11" border="0" alt="主頁"></a></td><td width="53"><a href="javascript:verPathConvert();"><img src="/common/imgtemplate/eng_button.gif" alt="English" width="43" height="7" border="0"></a></td></tr></table></td></tr></table></td></tr></table>';
		str += '</td></tr></table></td><td width="281" align="right" background="imgTemplate/spacer.gif"><table width="270" border="0" cellspacing="0" cellpadding="0"><tr><td width="52"><img src="/common/imgtemplate/search_c.gif" alt="搜尋"></td><td width="87"><input maxlength=1024 name=qu value="" class="txtBoxSearch" size="7"></td><td width="33"><input name="submit" type="image" src="/common/imgtemplate/search_button.gif" width="20" height="20" border="0" alt="搜尋"></td><td width="45"><a href="/index_c.html"><img src="/common/imgtemplate/home_c.gif" width="24" height="11" border="0" alt="主頁"></a></td><td width="53"><a href="javascript:verPathConvert();"><img src="/common/imgtemplate/eng_button.gif" alt="English" width="43" height="7" border="0"></a></td></tr></table></td></tr></table></td></tr></table>';
		str += '<table width="100%" border="0" cellpadding="0" cellspacing="0" background="/common/imgtemplate/3color_bg.gif"><tr><td><table width="760" border="0" cellpadding="0" cellspacing="0" background="/common/imgtemplate/3color_bg.gif"><tr><td width="376"><img src="/common/imgtemplate/left_3color.gif" width="172" height="23"></td><td width="384" align="right"><img src="/common/imgtemplate/3color_c.gif" width="299" height="23" border="0" usemap="#MapMap"></td></tr></table></td></tr></table><map name="MapMap"><area shape="rect" coords="2,2,80,20" href="/study/index_c.html" alt="課程概覽"><area shape="rect" coords="106,2,191,21" href="/research/index_c.html" alt="學術研究"><area shape="rect" coords="219,2,296,21" href="/community/index_c.html" alt="社群服務"></map>';
	}

	document.write(str);
}

function writeHeaderNoLang() {
	var str;
  
  //str = '<table width="100%" border="0" cellpadding="0" cellspacing="0" background="/common/imgtemplate/header_bg.gif"><tr><td><table width="760" height="43" border="0" cellpadding="0" cellspacing="0" background="/common/imgtemplate/header.gif"><form action="http://search.ied.edu.hk/ixsearch.cgi" method=get name=search><INPUT name=mode type=hidden value=100><INPUT name=lmode type=hidden value=100><INPUT name=pq type=hidden value=""><INPUT name=pg type=hidden value=""><INPUT name=pn type=hidden value=0><INPUT name=qm type=hidden value=0><INPUT name=ft_1 type=hidden value=alltype><INPUT name=de type=hidden value=0><INPUT name=so type=hidden value=0><INPUT name=ma type=hidden value=100><INPUT name=nu type=hidden value=10><INPUT name=ca type=hidden value=0><INPUT name=ta type=hidden value=all><INPUT name=fu type=hidden value=""><INPUT name=fd type=hidden value=""><INPUT name=fde type=hidden value=""><INPUT name=la type=hidden value=1><INPUT name=gr_1 type=hidden value="hkied"><INPUT name=gr_2 type=hidden value="projects"><tr><td width="479" align="right"><table width="120" border="0" cellpadding="0" cellspacing="0" background="/common/imgtemplate/spacer.gif"><tr><td width="316">';
	//str += writeHKIEd4u("eng");
  //str += '</td></tr></table></td><td width="281" align="right" background="/common/imgtemplate/spacer.gif"> <table width="270" border="0" cellspacing="0" cellpadding="0"><tr><td width="53"><font size="2" face="Arial, Helvetica, sans-serif">Search</font></td><td width="88"><input maxlength=1024 name=qu value="" class="txtBoxSearch" size="7"></td><td width="34"><input name="submit" type="image" src="/common/imgtemplate/search_button.gif" width="20" height="20" border="0" alt="Search"></td><td width="54"><a href="../index.html"><img src="/common/imgtemplate/home.gif" width="32" height="9" border="0" alt="Home"></a></td><td width="41"><img src="/common/imgtemplate/spacer.gif" width="23" height="11" border="0"></td></tr></table></td></tr></form></table></td></tr></table>';
  str = '<table width="100%" border="0" cellpadding="0" cellspacing="0" background="/common/imgtemplate/header_bg.gif"><tr><td><table width="760" height="43" border="0" cellpadding="0" cellspacing="0" background="/common/imgTemplate/header.gif"><form action=http://search.ied.edu.hk/search/search.cgi method=get name=searchform id=searchform><input name=mode type=hidden value=150><input name=lmode type=hidden value=150><input name=pq type=hidden value=""><input name=pg type=hidden value=""><input name=pn type=hidden value=0><input name=qm type=hidden value=0><input name=ft_1 type=hidden value=alltype><input name=de type=hidden value=0><input name=so type=hidden value=0><input name=ma type=hidden value=100><input name=nu type=hidden value=10><input name=ca type=hidden value=0><input name=ta type=hidden value=all><input name=fu type=hidden value=""><input name=fd type=hidden value=""><input name=fde type=hidden value=""><input name=la type=hidden value=1><INPUT name=gr_1 type=hidden value="hkied"><INPUT name=gr_2 type=hidden value="projects"><INPUT name=gr_3 type=hidden value="personal"><tr><td width="239" valign="top"><a href="http://www.ied.edu.hk"><img src="/common/imgtemplate/sublogo.gif" width="118" height="43" border="0" alt="HKIEd"></a></td><td width="240" align="right"><table width="120" border="0" cellpadding="0" cellspacing="0" background="/common/imgTemplate/spacer.gif"><tr><td width="316">';
	str += writeHKIEd4u("eng");
	str += '</td></tr></table></td><td width="281" align="right" background="imgTemplate/spacer.gif"><table width="270" border="0" cellspacing="0" cellpadding="0"><tr><td width="53"><font size="2" face="Arial, Helvetica, sans-serif">Search</font></td><td width="88"><input maxlength=1024 name=qu value="" class="txtBoxSearch" size="7"></td><td width="34"><input name="submit" type="image" src="/common/imgtemplate/search_button.gif" width="20" height="20" border="0" alt="Search"></td><td width="54"><a href="http://www.ied.edu.hk/index.html"><img src="/common/imgtemplate/home.gif" width="32" height="9" border="0"></a></td><td width="41"><a href="javascript:verPathConvert();"><img src="/common/imgtemplate/spacer.gif" width="23" height="11" border="0"></a></td></tr></table></td></tr></form></table></td></tr></table>'  
	str += '<table width="100%" border="0" cellpadding="0" cellspacing="0" background="/common/imgtemplate/3color_bg.gif"><tr><td><table width="760" border="0" cellpadding="0" cellspacing="0" background="/common/imgtemplate/3color_bg.gif"><tr><td width="333"><img src="/common/imgtemplate/left_3color_noline.gif" width="172" height="23"></td><td width="427" align="right"><img src="/common/imgtemplate/3color.gif" alt="STUDY" width="399" height="23" border="0" usemap="#Map3color"></td></tr></table></td></tr></table><map name="Map3color"><area shape="rect" coords="2,2,76,21" href="http://www.ied.edu.hk/study/index.html" alt="STUDY"><area shape="rect" coords="91,2,253,21" href="http://www.ied.edu.hk/research/index.html" alt="RESEARCH AND SCHOLARSHIP"><area shape="rect" coords="275,2,396,21" href="http://www.ied.edu.hk/community/index.html" alt="COMMUNITY SERVICE"></map>';
	
	document.write(str);
}

function writeFooter(lang) {
	
	if (lang == "eng") 
		//document.write('<TABLE WIDTH=760 BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><IMG SRC="/common/imgtemplate/footer_white.gif" WIDTH=18 HEIGHT=16></TD><TD><a href="http://www.cpe.ied.edu.hk/" target="_blank"><IMG SRC="/common/imgtemplate/footer_02.gif" alt="Division of Continuing Professional Education" WIDTH=219 HEIGHT=16 border="0"></a></TD><TD><IMG SRC="/common/imgtemplate/footer_white.gif" WIDTH=34 HEIGHT=16></TD><TD><a href="http://www.iedjcps.edu.hk/" target="_blank"><IMG SRC="/common/imgtemplate/footer_04.gif" alt="The HKIEd Jockey Club Primary School " WIDTH=189 HEIGHT=16 border="0"></a></TD><TD><IMG SRC="/common/imgtemplate/footer_white.gif" WIDTH=34 HEIGHT=16></TD><TD><a href="http://www.ied.edu.hk/sece/eclc/e/eindex.htm" target="_blank"><IMG SRC="/common/imgtemplate/footer_06.gif" alt="The HKIEd HSBC Early Childhood Learning Centre" WIDTH=238 HEIGHT=16 border="0"></a></TD><TD><IMG SRC="/common/imgtemplate/footer_white.gif" WIDTH=28 HEIGHT=16></TD></TR></TABLE><table width="760" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="/common/imgtemplate/footer_white.gif" width="18" height="10"></td></tr></table><table width="100%" border="0" cellpadding="0" cellspacing="0" background="/common/imgtemplate/footer_bg.gif"><tr><td><img src="/common/imgtemplate/footer.gif" width="760" height="32" border="0" usemap="#MapFooter"></td></tr></table><map name="MapFooter"><area shape="rect" coords="18,2,70,11" href="/directories/index.html" alt="Directories"><area shape="rect" coords="86,2,169,11" href="/jobsopp/index.html" alt="Job Opportunities "><area shape="rect" coords="183,2,250,11" href="/p_policy/index.html" alt="Privacy Policy"><area shape="rect" coords="262,2,317,11" href="/useful_links/index.html" alt="Useful Links"><area shape="rect" coords="576,2,613,11" href="/sitemap/index.html" alt="Site Map"><area shape="rect" coords="629,2,682,11" href="/contact/index.html" alt="Contact Us"><area shape="rect" coords="697,2,732,11" href="https://intranet.ied.edu.hk/index.htm" target="_blank" alt="Intranet"></map>');
    document.write('<TABLE WIDTH=760 BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><IMG SRC="/common/imgtemplate/footer_white.gif" WIDTH=18 HEIGHT=16></TD><TD><a href="http://www.cpe.ied.edu.hk/" target="_blank"><IMG SRC="/common/imgtemplate/footer_02.gif" alt="Division of Continuing Professional Education" WIDTH=219 HEIGHT=16 border="0"></a></TD><TD><IMG SRC="/common/imgtemplate/footer_white.gif" WIDTH=16 HEIGHT=16></TD><TD><a href="http://www.iedjcps.edu.hk/" target="_blank"><IMG SRC="/common/imgtemplate/footer_04.gif" alt="The HKIEd Jockey Club Primary School " WIDTH=139 HEIGHT=17 border="0"></a></TD><TD><IMG SRC="/common/imgtemplate/footer_white.gif" WIDTH=16 HEIGHT=16></TD><TD><a href="http://www.ied.edu.hk/sece/eclc/e/eindex.htm" target="_blank"><IMG SRC="/common/imgtemplate/footer_06.gif" alt="The HKIEd HSBC Early Childhood Learning Centre" WIDTH=189 HEIGHT=17 border="0"></a></TD><TD><IMG SRC="/common/imgtemplate/footer_white.gif" WIDTH=16 HEIGHT=16></TD><TD align="left"><a href="http://www.ied.edu.hk/aspire" target="_blank"><IMG SRC="/common/imgtemplate/footer_08.gif" alt="Project Aspire " WIDTH=72 HEIGHT=17 border="0"></a></TD><TD><IMG SRC="/common/imgtemplate/footer_white.gif" WIDTH=16 HEIGHT=16></TD><TD><a href="http://www.lib.ied.edu.hk" target="_blank"><IMG SRC="/common/imgtemplate/footer_10.gif" alt="Library " WIDTH=41 HEIGHT=16 border="0"></a></TD></TR></TABLE><table width="760" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="/common/imgtemplate/footer_white.gif" width="18" height="10"></td></tr></table><table width="100%" border="0" cellpadding="0" cellspacing="0" background="/common/imgtemplate/footer_bg.gif"><tr><td><table width="100" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="/common/imgtemplate/footer_menu.gif" width="760" height="13" border="0" usemap="#MapFooter"><map name="MapFooter"><area shape="rect" coords="18,2,66,11" href="http://www.ied.edu.hk/comdir/publiccomdir.jsp" alt="Directory"><area shape="rect" coords="77,2,160,11" href="/jobsopp/index.html" alt="Job Opportunities "><area shape="rect" coords="175,2,242,11" href="/p_policy/index.html" alt="Privacy Policy"><area shape="rect" coords="259,2,324,11" href="/projects/index.html" target="" alt="Project Links"><area shape="rect" coords="316,2,389,11" href="/useful_links/index.html" alt="Useful Links"><area shape="rect" coords="402,2,452,11" href="http://www.ied.edu.hk/electronicpayment/" target="_blank" alt="E-Payment"><area shape="rect" coords="576,2,613,11" href="/sitemap/index.html" alt="Sitemap"><area shape="rect" coords="629,2,682,11" href="/contact/index.html" alt="Contact Us"><area shape="rect" coords="697,2,732,11" href="https://intranet.ied.edu.hk/index.htm" target="_blank" alt="Intranet"></map></td></tr><tr><td><img src="/common/imgtemplate/footer_add.gif" alt="10 Lo Ping Road, Tai Po, New Territories, Hong Kong   Tel:29488888  Fax: 29466000" width="760" height="19"></td></tr></table></td></tr></table>');
	else
		//document.write('<TABLE WIDTH=760 BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><IMG SRC="/common/imgtemplate/footer_white.gif" WIDTH=18 HEIGHT=16></TD><TD><a href="http://www.cpe.ied.edu.hk/" target="_blank"><IMG SRC="/common/imgtemplate/footer_02c.gif" alt="持續專業教育學部" WIDTH=219 HEIGHT=16 border="0"></a></TD><TD><IMG SRC="/common/imgtemplate/footer_white.gif" WIDTH=34 HEIGHT=16></TD><TD><a href="http://www.iedjcps.edu.hk/" target="_blank"><IMG SRC="/common/imgtemplate/footer_04c.gif" alt="香港教育學院賽馬會小學" WIDTH=189 HEIGHT=16 border="0"></a></TD><TD><IMG SRC="/common/imgtemplate/footer_white.gif" WIDTH=34 HEIGHT=16></TD><TD><a href="http://www.ied.edu.hk/sece/eclc/e/menu_chi.htm" target="_blank"><IMG SRC="/common/imgtemplate/footer_06c.gif" alt="香港教育學院匯豐幼兒發展中心" WIDTH=238 HEIGHT=16 border="0"></a></TD><TD><IMG SRC="/common/imgtemplate/footer_white.gif" WIDTH=28 HEIGHT=16></TD></TR></TABLE><table width="760" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="/common/imgtemplate/footer_white.gif" width="18" height="10"></td></tr></table><table width="100%" border="0" cellpadding="0" cellspacing="0" background="/common/imgtemplate/footer_bg.gif"><tr><td><img src="/common/imgtemplate/footerc.gif" width="760" height="32" border="0" usemap="#Map"></td></tr></table><map name="Map"><area shape="rect" coords="18,2,78,11" href="/directories/index.html" alt="教職員名冊"><area shape="rect" coords="94,2,148,11" href="/jobsopp/index_c.html" alt="職位空缺"><area shape="rect" coords="161,2,232,11" href="/p_policy/index_c.html" alt="私隱政策聲明"><area shape="rect" coords="250,2,305,11" href="/useful_links/index_c.html" alt="其他連結"><area shape="rect" coords="567,2,614,11" href="/sitemap/index_c.html" alt="網頁指南"><area shape="rect" coords="629,2,682,11" href="/contact/index_c.html" alt="聯絡我們"><area shape="rect" coords="697,2,732,11" href="https://intranet.ied.edu.hk/index.htm" target="_blank" alt="內聯網"></map>');
		document.write('<TABLE WIDTH=760 BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><IMG SRC="/common/imgtemplate/footer_white.gif" WIDTH=18 HEIGHT=16></TD><TD><a href="http://www.cpe.ied.edu.hk/" target="_blank"><IMG SRC="/common/imgtemplate/footer_02c.gif" alt="持續專業教育學部" WIDTH=132 HEIGHT=16 border="0"></a></TD><TD><IMG SRC="/common/imgtemplate/footer_white.gif" WIDTH=18 HEIGHT=16></TD><TD><a href="http://www.iedjcps.edu.hk/" target="_blank"><IMG SRC="/common/imgtemplate/footer_04c.gif" alt="香港教育學院賽馬會小學" WIDTH=179 HEIGHT=16 border="0"></a></TD><TD><IMG SRC="/common/imgtemplate/footer_white.gif" WIDTH=18 HEIGHT=16></TD><TD><a href="http://www.ied.edu.hk/sece/eclc/e/menu_chi.htm" target="_blank"><IMG SRC="/common/imgtemplate/footer_06c.gif" alt="香港教育學院匯豐幼兒發展中心" WIDTH=227 HEIGHT=16 border="0"></a></TD><TD><IMG SRC="/common/imgtemplate/footer_white.gif" WIDTH=18 HEIGHT=16></TD><TD align="left"><a href="http://www.ied.edu.hk/aspire" target="_blank"><IMG SRC="/common/imgtemplate/footer_08c.gif" alt="蕊展計劃" WIDTH=69 HEIGHT=16 border="0"></a></TD><TD><IMG SRC="/common/imgtemplate/footer_white.gif" WIDTH=18 HEIGHT=16></TD><TD><a href="http://www.lib.ied.edu.hk/indexc.htm" target="_blank"><IMG SRC="/common/imgtemplate/footer_10c.gif" alt="圖書館" WIDTH=57 HEIGHT=16 border="0"></a></TD></TR></TABLE><table width="760" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="/common/imgtemplate/footer_white.gif" width="18" height="10"></td></tr></table><table width="100%" border="0" cellpadding="0" cellspacing="0" background="/common/imgtemplate/footer_bg.gif"><tr><td><table width="100" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="/common/imgtemplate/footerc_menu.gif" width="760" height="13" border="0" usemap="#MapFooter"><map name="MapFooter"><area shape="rect" coords="18,2,78,11" href="http://www.ied.edu.hk/comdir/publiccomdir.jsp" alt="教職員名冊"><area shape="rect" coords="94,2,148,11" href="/jobsopp/index_c.html" alt="職位空缺"><area shape="rect" coords="161,2,232,11" href="/p_policy/index_c.html" alt="私隱政策聲明"><area shape="rect" coords="250,2,310,11" href="/projects/index_c.html" alt="項目及計劃"><area shape="rect" coords="329,2,378,11" href="/useful_links/index_c.html" alt="其他連結"><area shape="rect" coords="397,2,447,11" href="/electronicpayment/" target="_blank" alt="網上繳費"><area shape="rect" coords="567,2,614,11" href="/sitemap/index_c.html" alt="網頁指南"><area shape="rect" coords="629,2,682,11" href="/contact/index_c.html" alt="聯絡我們"><area shape="rect" coords="697,2,732,11" href="https://intranet.ied.edu.hk/index.htm" target="_blank" alt="內聯網"></map></td></tr><tr><td><img src="/common/imgtemplate/footerc_add.gif" alt="香港新界大埔露屏路 10 號     電話:29488888   傳真:29486000" width="760" height="19"></td></tr></table>');
}

function writeCopyright(lang) {
	
	var str;
	if (navigator.appName == "Netscape" && navigator.appVersion < "5" &&
  	      navigator.appVersion.lastIndexOf('Win16') > -1) {
        	d = new Date();
	} else {
        	d = new Date(document.lastModified);
        	var yy = d.getYear();
        	if (yy < 80) d = new Date();
	};
	var yy = d.getYear();
	if (yy < 1000) yy+=1900;
	mm = d.getMonth() + 1;
	
	if (lang == "eng") {
		if (mm == 1) { mon = "January"; }
		if (mm == 2) { mon = "February"; }
		if (mm == 3) { mon = "March"; }
		if (mm == 4) { mon = "April"; }
		if (mm == 5) { mon = "May"; }
		if (mm == 6) { mon = "June"; }
		if (mm == 7) { mon = "July"; }
		if (mm == 8) { mon = "August"; }
		if (mm == 9) { mon = "September"; }
		if (mm == 10) { mon = "October"; }
		if (mm == 11) { mon = "November"; }
		if (mm == 12) { mon = "December"; }
		dd = d.getDate();
		date = dd + " " + mon + " " + yy;
		
		str = '<font size="1" face="Arial, Helvetica, sans-serif" color="#7F7F7F">';
		str += 'Last Revised: ';
		str += date;
		str += '</font>';
	
		document.write('<table width="530" border="0" cellspacing="0" cellpadding="0"><tr><td width="143">' + str + '</script></td><td width="387"><font face="Arial, Helvetica, sans-serif" size="1" color="#333333">Copyright The Hong Kong Institute of Education, 2005. All Rights Reserved.</font></td></tr></table>');
	}
	else {
		if (mm == 1) { mon = "1月"; }
		if (mm == 2) { mon = "2月"; }
		if (mm == 3) { mon = "3月"; }
		if (mm == 4) { mon = "4月"; }
		if (mm == 5) { mon = "5月"; }
		if (mm == 6) { mon = "6月"; }
		if (mm == 7) { mon = "7月"; }
		if (mm == 8) { mon = "8月"; }
		if (mm == 9) { mon = "9月"; }
		if (mm == 10) { mon = "10月"; }
		if (mm == 11) { mon = "11月"; }
		if (mm == 12) { mon = "12月"; }
		dd = d.getDate();
		date = yy + "年 " + mon + " " + dd + "日";
		
		str = '<font class="modiftyDateC" color="#7F7F7F">';
		str += '更新日期 : ';
		str += date;
		str += '</font>';
	
		document.write('<table width="530" border="0" cellspacing="0" cellpadding="0"><tr><td width="150">' + str + '</script></td><td width="380"><font class="modiftyDateC">香港教育學院，版權所有。</font></td></tr></table>');		
	}
}

function writeMenuCover(lang) {
	if (lang == "eng")
		document.write('<a href="#"><img src="imgmenu/green_menu/v_m.gif" width="149" height="18" border="0"></a><a href="#"><img src="imgmenu/green_menu/aboutHKIEd.gif" width="149" height="18" border="0"></a><a href="#"><img src="imgmenu/green_menu/campus.gif" width="149" height="18" border="0"></a><a href="#"><img src="imgmenu/green_menu/aca.gif" width="149" height="18" border="0"></a><a href="#"><img src="imgmenu/green_menu/adm.gif" width="149" height="18" border="0"></a><a href="#"><img src="imgmenu/green_menu/learn.gif" width="149" height="18" border="0"></a><a href="#"><img src="imgmenu/green_menu/colla_partner.gif" width="149" height="18" border="0"></a><a href="#"><img src="imgmenu/green_menu/alumni.gif" width="149" height="18" border="0"></a>');
	else
		document.write('<a href="#"><img src="imgmenu/green_menu/v_m_c.gif" width="149" height="18" border="0"></a><a href="#"><img src="imgmenu/green_menu/aboutHKIEd_c.gif" width="149" height="18" border="0"></a><a href="#"><img src="imgmenu/green_menu/campus_c.gif" width="149" height="18" border="0"></a><a href="#"><img src="imgmenu/green_menu/aca_c.gif" width="149" height="18" border="0"></a><a href="#"><img src="imgmenu/green_menu/adm_c.gif" width="149" height="18" border="0"></a><a href="#"><img src="imgmenu/green_menu/learn_c.gif" width="149" height="18" border="0"></a><a href="#"><img src="imgmenu/green_menu/colla_partner_c.gif" width="149" height="18" border="0"></a><a href="#"><img src="imgmenu/green_menu/alumni_c.gif" width="149" height="18" border="0"></a>');
}

function writeMenu(lang) {
	var MenuText;
	if (lang == "eng") {
		MenuText = '<a href="/about_hkied/index.html"><img src="/imgmenu/green_menu/aboutHKIEd.gif" alt="About HKIEd" name="imgGM02" width="149" height="18" border="0" id="imgGM02"></a><span id="GM01Sub"></span>';
		MenuText += '<a href="/aca_units/index.html"><img src="/imgmenu/green_menu/aca.gif" alt="Academic Units" name="imgGM04" width="149" height="18" border="0" id="imgGM04"></a><span id="GM02Sub"></span>';
	    MenuText += '<a href="/adm_units/index.html"><img src="/imgmenu/green_menu/adm.gif" alt="Administrative Offices" name="imgGM05" width="149" height="18" border="0" id="imgGM05"></a><span id="GM03Sub"></span>';
	    MenuText += '<a href="/learn_res/index.html"><img src="/imgmenu/green_menu/learn.gif" alt="Learning Resources" name="imgGM06" width="149" height="18" border="0" id="imgGM06"></a><span id="GM04Sub"></span>';
		MenuText += '<a href="/colla_partner/index.html"><img src="/imgmenu/green_menu/colla_partner.gif" alt="Collaboration and Partnership" name="imgGM07" width="149" height="18" border="0" id="imgGM07"></a><span id="GM05Sub"></span>';
		MenuText += '<a href="/research/index.html"><img src="/imgmenu/green_menu/research_e.gif" alt="Research and Scholarship" name="imgGM09" width="149" height="18" border="0" id="imgGM09"></a><span id="GM06Sub"></span>';
		MenuText += '<a href="/community/index.html"><img src="/imgmenu/green_menu/community_e.gif" alt="Community Services" name="imgGM10" width="149" height="18" border="0" id="imgGM10"></a><span id="GM07Sub"></span>';
		MenuText += '<a href="/alumni/index.html"><img src="/imgmenu/green_menu/alumni.gif" alt="Alumni" name="imgGM11" width="149" height="18" border="0" id="imgGM08"></a><span id="GM08Sub"></span>';
		MenuText += '<a href="/donation/index.html"><img src="/imgmenu/green_menu/donation_e.gif" alt="Donation" name="imgGM12" width="149" height="18" border="0" id="imgGM12"></a><span id="GM09Sub"></span>';
	} else {
		MenuText = '<a href="/about_hkied/index_c.html"><img src="/imgmenu/green_menu/aboutHKIEd_c.gif" alt="香港教育學院簡介" name="imgGM02" width="149" height="18" border="0" id="imgGM02"></a><span id="GM01Sub"></span>';
		MenuText += '<a href="/aca_units/index_c.html"><img src="/imgmenu/green_menu/aca_c.gif" alt="學術部門" name="imgGM04" width="149" height="18" border="0" id="imgGM04"></a><span id="GM02Sub"></span>';
		MenuText += '<a href="/adm_units/index_c.html"><img src="/imgmenu/green_menu/adm_c.gif" alt="行政部門" name="imgGM05" width="149" height="18" border="0" id="imgGM05"></a><span id="GM03Sub"></span>';
		MenuText += '<a href="/learn_res/index_c.html"><img src="/imgmenu/green_menu/learn_c.gif" alt="學習資源" name="imgGM06" width="149" height="18" border="0" id="imgGM06"></a><span id="GM04Sub"></span>';
		MenuText += '<a href="/colla_partner/index_c.html"><img src="/imgmenu/green_menu/colla_partner_c.gif" alt="國際與學校協作" name="imgGM07" width="149" height="18" border="0" id="imgGM07"></a><span id="GM05Sub"></span>';
		MenuText += '<a href="/research/index_c.html"><img src="/imgmenu/green_menu/research_c.gif" alt="學術研究" name="imgGM09" width="149" height="18" border="0" id="imgGM09"></a><span id="GM06Sub"></span>';
		MenuText += '<a href="/community/index_c.html"><img src="/imgmenu/green_menu/community_c.gif" alt="社群服務" name="imgGM10" width="149" height="18" border="0" id="imgGM10"></a><span id="GM07Sub"></span>';
		MenuText += '<a href="/alumni/index_c.html"><img src="/imgmenu/green_menu/alumni_c.gif" alt="校友" name="imgGM11" width="149" height="18" border="0" id="imgGM08"></a><span id="GM08Sub"></span>';
		MenuText += '<a href="/donation/index_c.html"><img src="/imgmenu/green_menu/donation_c.gif" alt="捐贈" name="imgGM12" width="149" height="18" border="0" id="imgGM12"></a><span id="GM09Sub"></span>';
	}
	document.write(MenuText);
}

function verPathConvert() {

	var url_full = new String(window.location);
	var url_length = url_full.length;
	var tmp_url;
	var new_url;

	var arc_url;
	var arcSyb = 0;
	var i=0;

	
	for (i=url_length; i> 0; i--)
	{
		if (url_full.substring(i, i-1) == '#' ) {
			arcSyb = 1;
			break;
		}
	}
	
	if (!arcSyb) {
		tmp_url= url_full.substring(0, url_length-5);
		ver_url= url_full.substring(url_length-7, url_length);

			if (ver_url == "_c.html")
				tmp_url= url_full.substring(0, url_length-7) + ".html";
			else
				tmp_url = tmp_url + "_c.html";
	}
	else {
		
		if (url_full.substring(url_length-1, url_length) == "#") {
			tmp_url= url_full.substring(0, url_length-5);
			ver_url= url_full.substring(url_length-7, url_length);
			
			if (ver_url == "c.html#") {
				tmp_url= url_full.substring(0, url_length-8) + ".html";
			}
			else {
				tmp_url = url_full.substring(0, url_length-6) + "_c.html";
			}
		}
		else {
			arc_url = url_full.substring(i-1, url_length);
			tmp_url = url_full.substring(0, i-1);
			ver_url = tmp_url.substring(tmp_url.length -7, tmp_url.length);
			
			//alert(arc_url);
			//alert(tmp_url);
			//alert(ver_url);
			//alert(tmp_url.substring(0, tmp_url.length- 7));
			
			if (ver_url == "_c.html") {
				tmp_url = tmp_url.substring(0, tmp_url.length- 7) + ".html" + arc_url;
			}
			else {
				tmp_url = tmp_url.substring(0, tmp_url.length- 5) + "_c.html" + arc_url;
			}
			

		}
	}
	
	window.location = tmp_url;
}

/*
function verPathConvert() {

	var url_full = new String(window.location);
	var url_length = url_full.length;
	var tmp_url;
	var new_url;
	var topSymbol = 0;
	//tmp_url = url_full.split(".html");
	
	//alert(url_full.substring(url_length- 16, url_length));
	//if (url_full.substring(url_length- 16, url_length) == '.html#ArcMission') {	}
	
	tmp_url= url_full.substring(0, url_length-5);
	ver_url= url_full.substring(url_length-7, url_length);

	if (url_full.substring(url_length-1, url_length) != "#")
	{
		if (ver_url == "_c.html")
			tmp_url= url_full.substring(0, url_length-7) + ".html";
		else
			tmp_url = tmp_url + "_c.html";
	}
	else
	{
		if (ver_url == "c.html#") {
			tmp_url= url_full.substring(0, url_length-8) + ".html";
		}
		else {
			tmp_url = url_full.substring(0, url_length-6) + "_c.html";
		}
	}
	window.location = tmp_url;
	
}
*/

function hkied4u_jumpMenu(targ,selObj,restore){ //v3.0
  //eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  var strLocation = new String(selObj.options[selObj.selectedIndex].value);
  
  //alert(strLocation.substring(strLocation.length-6, strLocation.length));
  if (strLocation.substring(strLocation.length-6, strLocation.length) == "_blank" )
  	window.open(strLocation.substring(0,strLocation.length-7),'','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
  else
  	window.location = strLocation;

  if (restore) selObj.selectedIndex=0;
}

var isMinNS4 = (navigator.appName.indexOf("Netscape") >= 0 && parseFloat(navigator.appVersion) >= 4) ? 1 : 0;
