function print_Header(intDepth)
{
 var intI, strPathDepth = "";
 
 for (intI = 0; intI < intDepth; intI++)
  strPathDepth += "../";
  
/* document.write("<table width=\"770\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
 document.write("<tr>");
 document.write("<td><img src=\"" + strPathDepth + "images/cover_gbmenu_v2.jpg\" width=\"770\" height=\"24\"></td>");
 document.write("</tr>");
 document.write("</table>");*/
 document.write("<table width=\"770\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
 document.write("<tr>");
 document.write("<td><img src=\"" + strPathDepth + "images/menu01.jpg\" width=\"230\" height=\"24\"></td>");
 document.write("<td><a href=\"../index.htm\"><img src=\"" + strPathDepth + "images/menu02.jpg\" width=\"47\" height=\"24\" border=\"0\" alt=\"Home\"></a></td>");
 document.write("<td><a href=\"javascript:change_Language('chi')\"><img src=\"" + strPathDepth + "images/menu04.jpg\" width=\"53\" height=\"24\" border=\"0\" alt=\"&#x7e41;&#x9ad4;&#x4e2d;&#x6587;\"></a></td>");
 document.write("<td><a href=\"http://www.epd.gov.hk/epd/english/search/search.html \"><img src=\"" + strPathDepth + "images/menu08.jpg\" width=\"52\" height=\"24\" border=\"0\" alt=\"Search\"></td>");
 document.write("<td><a href=\"feedback.htm\"><img src=\"" + strPathDepth + "images/menu09.jpg\" width=\"62\" height=\"24\" border=\"0\" alt=\"Feedback\"></a></td>");
 document.write("<td><a href=\"contact_us.htm\"><img src=\"" + strPathDepth + "images/menu10.jpg\" width=\"72\" height=\"24\" border=\"0\" alt=\"Contact Us\"></a></td>"); 
 document.write("</tr>");
 document.write("</table>");
 document.write("<table width=\"770\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
 document.write("<tr>");
 document.write("<td><img alt=\"Environmental Protection Department\" src=\"" + strPathDepth + "images/inside/header01.jpg\" width=\"365\" height=\"65\"><br>");
 document.write("<img alt=\"Environmental Performance Reporting of the HKSAR Government\" src=\"" + strPathDepth + "images/inside/header02.jpg\" width=\"365\" height=\"52\"></td>");
 document.write("<td><img src=\"" + strPathDepth + "images/inside/header03.jpg\" width=\"405\" height=\"117\"></td>");
 document.write("</tr>");
 document.write("</table>");
}

function print_Shortcut(intDepth)
{
 document.write("<table width=\"750\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">");
 document.write("<tr>");
 document.write("<form name=\"form1\">");
 document.write("<td align=\"right\">");
 document.write("<select name=\"select\" onChange=\"MM_jumpMenu('parent',this,1)\">");
 document.write("<option selected>Please Select ......</option>");
 document.write("<option value=\"intro.htm\">About this Cyber Helpdesk</option>");
 document.write("<option value=\"trail.htm\">The Beginner's Trail</option>");
 document.write("<option value=\"step_guide.htm\">Step-by-Step Guide to Environmental Reporting</option>");
 document.write("<option value=\"faqs.htm\">FAQs</option>");
 document.write("<option value=\"tips.htm\">10 Tips for Successful Environmental Performance Reports</option>");
 document.write("<option value=\"best_practices.htm\">Best Practices to Enhance Environmental Performance</option>");
 document.write("<option value=\"self.htm\">Self-Scoring Template - A Benchmark for Environmental Performance Report</option>");
 document.write("<option value=\"links.htm\">Useful Resource Documents Reference Materials and Links</option>");
 document.write("<option value=\"feedback.htm\">Feedback</option>");
 document.write("<option value=\"contact_us.htm\">Contact Us</option>");
 document.write("</select>");
 document.write("</td>");
 document.write("</form>");
 document.write("</tr>");
 document.write("</table>");
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  if (selObj.options[selObj.selectedIndex].value != "")
   eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function print_Footer(intDepth)
{
 document.write("<table width=\"770\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"text_content\">");
 document.write("<tr>");
 document.write("<td width=\"20\">&nbsp;</td>");
 document.write("<td width=\"750\">");
 document.write("</td>");
 document.write("</tr>");
 document.write("<tr>");
 document.write("</tr>");
 document.write("<tr>");
 document.write("<td width=\"20\">&nbsp;</td>");
 document.write("<td width=\"750\">&nbsp;</td>");
 document.write("</tr>");
 document.write("</table>");
}

function format_LastModified()
{
 var dateLastMod = new Date(document.lastModified);
 var strFormatDate = "";
 
 strFormatDate += (navigator.appName == "Microsoft Internet Explorer" ? dateLastMod.getYear() : dateLastMod.getYear() + 1900) + "/";
 strFormatDate += dateLastMod.getMonth() + 1 + "/";
 strFormatDate += dateLastMod.getDate();
 
 return strFormatDate;
}


function print_BackToTop(intPos)
{
 document.write("<table border=\"0\" width=\"100%\">");
 document.write("<tr>");
 document.write("<td align=\"right\">");
 document.write("<a href=\"#btt\" class=\"btt\">Top</a>");
 document.write("</td>");
 if (intPos == 0)
 {
  document.write("<td width=\"3%\">");
  document.write("&nbsp;");
  document.write("</td>");
 }	
 document.write("</tr>");
 document.write("</table>");
}

function change_Language(strType)
{
 strCurPath = top.location.href;
 
 if (strType == "eng")
 {
  strCurPath = strCurPath.replace("chi", "eng");
  strCurPath = strCurPath.replace("gb", "eng");
 }
 
 if (strType == "chi")
 {
  strCurPath = strCurPath.replace("eng", "chi");
  strCurPath = strCurPath.replace("gb", "chi");
 }
 
 if (strType == "gb")
 {
  strCurPath = strCurPath.replace("chi", "gb");
  strCurPath = strCurPath.replace("eng", "gb");
 }
 
 top.location.href = strCurPath;
}
