﻿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(\'sc\')">图像版本<\/a>] ');
	document.writeln('	[<a href="javascript:chglang(\'entxt\')">English<\/a>]');
	document.writeln('	[<a href="javascript:chglang(\'tctxt\')">繁体版<\/a>]');
	document.writeln('	[<a href="../../codrsc.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" id="search" action="http://sc.info.gov.hk/TuniS/search.gov.hk/search.html" method="get">');
document.write('      <input type="hidden" name="ui_lang" value="zh-cn" />');
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="odgarden.html"><B>「生命‧爱」花园<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="odgarden.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>');
}
