﻿function emailThisPage() {
				
	//window.location 
	var url = "mailto:?subject=器官捐贈 "  + "&body=" + " 你收到以下的超連結:" + escape("\n\n")+ "按以下的連結去觀看該網頁:" + escape("\n\n")+ escape(window.location.href);
	document.write(url);
    window.navigate(url);	
	window.navigate(window.location.href);
}

function clf_hd(){
	//document.writeln('<p>');
	document.write('<table width="100%" cellpadding="0" cellspacing="0" border="0" class="content">');
	document.write('<tr>');
	document.write('<td width="450">');
	document.writeln('	[<a href="javascript:chglang(\'tc\')">圖像版本<\/a>] ');
	document.writeln('	[<a href="javascript:chglang(\'entxt\')">English<\/a>]');
	document.writeln('	[<a href="javascript:chglang(\'sctxt\')">簡體版<\/a>]');
	document.writeln('	[<a href="../../codrtc.html">網上登記<\/a>]');
	//document.writeln('	[<a href="search.html">搜尋<\/a>]');
	document.writeln('	[<a href="sitemap.html">網頁指南<\/a>]');
	
	document.writeln('	[<a href="javascript:emailThisPage();">電郵本頁<\/a>]');
	document.writeln('	[<a href="contactus.html">聯絡我們<\/a>]');
	document.write('</td>');
document.write('<td align="left">');
document.write('      <form name="search" action="http://search.gov.hk/search.html" method="get">');
document.write('      <input type="hidden" name="ui_lang" value="zh-hk" />');
document.write('      <input type="hidden" name="ui_charset" value="utf-8" />');
document.write('      <input type="hidden" name="gp0" value="organdonation_home" />');
document.write('      <input type="hidden" name="gp1" value="organdonation_home" />');
document.write('      <input type="hidden" name="tpl_id" value="organdonation" />');
document.write('      <input type="hidden" name="web" value="this" />');
document.write('      <input type="text" name="query" style="width:120px; height:20px; line-height:15px; font-size: 12px;">');
document.write('      <a href="javascript:document.search.submit()">搜尋</a></td>');
document.write('      </form>');
document.write('</td>');

document.write('</tr>');
document.write('</table><br>');
	//document.writeln('<\/p>');

}

function common_header(){
	document.writeln('		  <tr>');
	document.writeln('			<td><img src="images\/inside-family.jpg" width="200" height="137" \/><\/td>');
	document.writeln('			<td><img src="images\/inside-slogan-e.jpg" width="560" height="137" \/><\/td>');
	document.writeln('		  <\/tr>');

}

function genmenu(menu_id) {
	document.writeln('<p>');
	if (menu_id == 1){ 
		document.writeln('[<A HREF="home.html"><B>主頁<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="home.html">主頁<\/A>]&nbsp;');
	}
	
	if (menu_id == 2){
		document.writeln('[<A HREF="introduction.html"><B>認識器官捐贈<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="introduction.html">認識器官捐贈<\/A>]&nbsp;');
	}

	if (menu_id == 3){
		document.writeln('[<A HREF="knowmore.html"><B>認識中央器官捐贈登記名冊<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="knowmore.html">認識中央器官捐贈登記名冊<\/A>]&nbsp;');
	}
	
	if (menu_id == 7){
		document.writeln('[<A HREF="sincere_appeal.html"><B>懇切呼籲<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="sincere_appeal.html">懇切呼籲<\/A>]&nbsp;');
	}

	if (menu_id == 8){
		document.writeln('[<A HREF="appeals.html"><B>名人寄語<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="appeals.html">名人寄語<\/A>]&nbsp;');
	}

	if (menu_id == 5){
		document.writeln('[<A HREF="stories.html"><B>永恆的愛<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="stories.html">永恆的愛<\/A>]&nbsp;');
	}
	
	if (menu_id == 17){
		document.writeln('[<A HREF="stories_letter_01.html"><B>受贈者的感言<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="stories_letter_01.html">受贈者的感言<\/A>]&nbsp;');
	}

	if (menu_id == 6){
		document.writeln('[<A HREF="memorialgarden.html"><B>捐贈者紀念園地<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="memorialgarden.html">捐贈者紀念園地<\/A>]&nbsp;');
	}
		
	if (menu_id == 11){
		document.writeln('[<A HREF="supporters.html"><B>各界支持<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="supporters.html">各界支持<\/A>]&nbsp;');
	}
	
	if (menu_id == 10){
		document.writeln('[<A HREF="resources.html"><B>健康教育資源<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="resources.html">健康教育資源<\/A>]&nbsp;');
	}

	if (menu_id == 9){
		document.writeln('[<A HREF="promotion.html"><B>推廣活動<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="promotion.html">推廣活動<\/A>]&nbsp;');
	}
	
	if (menu_id == 12){
		document.writeln('[<A HREF="statistics.html"><B>統計數字<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="statistics.html">統計數字<\/A>]&nbsp;');
	}
	
	if (menu_id == 4){
		document.writeln('[<A HREF="faq.html"><B>常見問題<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="faq.html">常見問題<\/A>]&nbsp;');
	}

	if (menu_id == 13){
		document.writeln('[<A HREF="links.html"><B>相關聯結<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="links.html">相關聯結<\/A>]&nbsp;');
	}
	
	if (menu_id == 14){
		document.writeln('[<A HREF="sitemap.html"><B>網頁指南<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="sitemap.html">網頁指南<\/A>]&nbsp;');
	}

	if (menu_id == 15){
		document.writeln('[<A HREF="contactus.html"><B>聯絡我們<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="contactus.html">聯絡我們<\/A>]&nbsp;');
	}
	
//	if (menu_id == 16){
//		document.writeln('[<A HREF="functionkey.html"><B>Fuction Keys<\/B><\/A>]&nbsp;');
//	}else{
//		document.writeln('[<A HREF="functionkey.html">Fuction Keys<\/A>]&nbsp;');
//	}

	document.writeln('<\/p>');

}


function clf_printback(){
	document.writeln('              <div class="noprint"><table width="50%" border="0" align="right" cellpadding="0" cellspacing="5" class="content">');
	document.writeln('                <tr>');
	document.writeln('                  <td><A HREF="javascript:window.print();"><span class="style9">列印給朋友<\/span><\/A><\/td>');
	document.writeln('                  <td><A HREF="javascript:history.go(-1);"><span class="style9">前頁<\/span><\/A><\/td>');
	document.writeln('                <\/tr>');
	document.writeln('              <\/div><\/table>');
	

}

function clf_footer(lstUpDate){
	document.writeln('<p>2008 copyright | <a href="notices.html">重要告示<\/a>&nbsp;&nbsp;<A HREF="privacy.html">私隱政策<\/A><\/p>');
	if (lstUpDate!=''){
		document.writeln('<p>修訂日期: '+lstUpDate+'<\/p>');	
	}else{
		document.writeln('<p>修訂日期: 二零一零年七月二日<\/p>');
	}
}


function txt_clf_footer(){
	document.writeln('<p>');
	document.writeln('	[<a href="http:\/\/www.gov.hk\/en\/residents\/" target="_blank">香港政府一站通<\/a>]');
	document.writeln('	[<a href="http:\/\/www.brandhk.gov.hk\/brandhk\/eindex.htm" target="_blank">亞洲國際都會 香港]<\/a>');
	document.writeln('<\/p>');
}