﻿function emailThisPage() {
				
	window.location = "mailto:?subject=Organ Donation " + "&body=You have received the following link:" + escape("\n\n")+  escape("\n\n") + escape(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="650">');
	document.writeln('	[<a href="javascript:chglang(\'en\')">GRAPHICAL VERSION<\/a>] ');
	document.writeln('	[<a href="javascript:chglang(\'tctxt\')">繁體版<\/a>]');
	document.writeln('	[<a href="javascript:chglang(\'sctxt\')">簡體版<\/a>]');
	document.writeln('	[<a href="../../codreng.html">REGISTER ONLINE<\/a>]');
	//document.writeln('	[<a href="search.html">SEARCH<\/a>]');
	document.writeln('	[<a href="sitemap.html">SITE MAP<\/a>]');
	document.writeln('	[<a href="javascript:emailThisPage();">E-mail This<\/a>]');
	document.writeln('	[<a href="contactus.html">CONTACT US<\/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="en" />');
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()">Search</a></td>');
document.write('      </form>');
document.write('</td>');

document.write('</tr>');
document.write('</table>');
	//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>Home Page<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="home.html">Home Page<\/A>]&nbsp;');
	}
	
	if (menu_id == 2){
		document.writeln('[<A HREF="introduction.html"><B>Know More about Organ Donation<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="introduction.html">Know More about Organ Donation<\/A>]&nbsp;');
	}
	
	if (menu_id == 3){
		document.writeln('[<A HREF="knowmore.html"><B>Know More about Centralised Organ Donation Register<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="knowmore.html">Know More about Centralised Organ Donation Register<\/A>]&nbsp;');
	}
	if (menu_id == 7){
		document.writeln('[<A HREF="sincere_appeal.html"><B>Most Sincere Appeal<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="sincere_appeal.html">Most Sincere Appeal<\/A>]&nbsp;');
	}
	
	if (menu_id == 8){
		document.writeln('[<A HREF="appeals.html"><B>Words from Celebrities<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="appeals.html">Words from Celebrities<\/A>]&nbsp;');
	}	
	
	
	if (menu_id == 5){
		document.writeln('[<A HREF="stories.html"><B>Stories of Everlasting Love<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="stories.html">Stories of Everlasting Love<\/A>]&nbsp;');
	}

	if (menu_id == 17){
		document.writeln('[<A HREF="stories_letter_01.html"><B>Words of Gratitude<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="stories_letter_01.html">Words of Gratitude<\/A>]&nbsp;');
	}

	if (menu_id == 6){
		document.writeln('[<A HREF="memorialgarden.html"><B>Donor Memorial Garden<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="memorialgarden.html">Donor Memorial Garden<\/A>]&nbsp;');
	}

	if (menu_id == 11){
		document.writeln('[<A HREF="supporters.html"><B>Support from the Community<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="supporters.html">Support from the Community<\/A>]&nbsp;');
	}
	
	if (menu_id == 10){
		document.writeln('[<A HREF="resources.html"><B>Health Educational Resources<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="resources.html">Health Educational Resources<\/A>]&nbsp;');
	}

	if (menu_id == 9){
		document.writeln('[<A HREF="promotion.html"><B>Promotional Activities<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="promotion.html">Promotional Activities<\/A>]&nbsp;');
	}
	
	if (menu_id == 12){
		document.writeln('[<A HREF="statistics.html"><B>Statistics<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="statistics.html">Statistics<\/A>]&nbsp;');
	}

	if (menu_id == 4){
		document.writeln('[<A HREF="faq.html"><B>Frequently Asked Questions<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="faq.html">Frequently Asked Questions<\/A>]&nbsp;');
	}

	if (menu_id == 13){
		document.writeln('[<A HREF="links.html"><B>Related Links<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="links.html">Related Links<\/A>]&nbsp;');
	}
	
	if (menu_id == 14){
		document.writeln('[<A HREF="sitemap.html"><B>Site Map<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="sitemap.html">Site Map<\/A>]&nbsp;');
	}
	
	if (menu_id == 15){
		document.writeln('[<A HREF="contactus.html"><B>Contact Us<\/B><\/A>]&nbsp;');
	}else{
		document.writeln('[<A HREF="contactus.html">Contact Us<\/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">printer friendly<\/span><\/A><\/td>');
	document.writeln('                  <td><A HREF="javascript:history.go(-1);"><span class="style9">back<\/span><\/A><\/td>');
	document.writeln('                <\/tr>');
	document.writeln('              <\/div><\/table>');
	

}

function clf_footer(lstUpDate){
	document.writeln('<p>2008 copyright | <a href="notices.html">Important notice<\/a>&nbsp;&nbsp;<A HREF="privacy.html">Privacy Policy<\/A><\/p>');
	if (lstUpDate!=''){
		document.writeln('<p>Last revision date:<font face="Arial, Helvetica, sans-serif" size="2">'+lstUpDate+'<\/font><\/p>');	
	}else{
		document.writeln('<p>Last revision date:<font face="Arial, Helvetica, sans-serif" size="2"> 2 July 2010<\/font><\/p>');
	}
}


function txt_clf_footer(){
	document.writeln('<p>');
	document.writeln('	[<a href="http:\/\/www.gov.hk\/en\/residents\/" target="_blank">GovHK<\/a>]');
	document.writeln('	[<a href="http:\/\/www.brandhk.gov.hk\/brandhk\/eindex.htm" target="_blank">Asia\'s world city Hong Kong]<\/a>');
	document.writeln('<\/p>');
}