//document.write ("<input name=\"mode\" type=\"hidden\" value=\"1\">");
//document.write ("<input name=\"gr_1\" type=\"hidden\" value=\"cop\">");
//document.write ("<input name=\"ft_1\" type=\"hidden\" value=\"alltype\">");
//document.write ("<input name=\"ma\" type=\"hidden\" value=\"100\">");
//--> Yahoo search 
document.write("<input type=\"hidden\" name=\"ui_lang\" value=\"en\" />");
document.write("<input type=\"hidden\" name=\"ui_charset\" value=\"iso-8859-1\" />");
document.write("<input type=\"hidden\" name=\"gp0\" value=\"cop_home\" />");
document.write("<input type=\"hidden\" name=\"gp1\" value=\"cop_home\" />");
document.write("<input type=\"hidden\" name=\"tpl_id\" value=\"stdsearch\" />");
document.write("<input type=\"hidden\" name=\"web\" value=\"this\" />");

document.write ("<table width=\"769\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.write ("  <tr>");
document.write ("    <td background=\"common/images/bkgdtexture.gif\"><table width=\"769\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.write ("        <tr>");
document.write ("          <td width=\"485\" background=\"common/images/bkgdtexture.gif\"><span class=\"sidebar\"><a href=\"../index.htm\" target=\"_top\"><img src=\"common/images/brande.gif\" alt=\"Commission on Poverty | The Government of the Hong Kong Special Administrative Region\" border=\"0\" width=\"484\" height=\"65\"></a></span></td>");
document.write ("          <td width=\"91\" background=\"common/images/bkgdtexture.gif\">&nbsp;</td>");
document.write ("          <td width=\"65\" background=\"common/images/bkgdtexture.gif\">&nbsp;</td>");
document.write ("          <td width=\"93\" background=\"common/images/bkgdtexture.gif\"><a href=\"http://www.brandhk.gov.hk/\" target=\"_new\"><img name=\"BrandHK\" src=\"common/images/BrandHK.gif\" border=\"0\" alt=\"Brand Hong Kong\" width=\"190\" height=\"60\"></a></td>");
document.write ("          <td width=\"35\" background=\"common/images/bkgdtexture.gif\">&nbsp;</td>");
document.write ("        </tr>");
document.write ("      </table>");
document.write ("        <table width=\"700\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.write ("          <tr>");
document.write ("            <td width=\"236\" valign=\"bottom\" background=\"common/images/bkgdtexture.gif\"><a href=\"http://www.gov.hk/en/residents\" target=\"_blank\"  onMouseOver=\"MM_swapImage('mainbar11','','common/images/mainbar1_f2.gif',1)\" onMouseOut=\"MM_swapImgRestore()\" ><img src=\"common/images/mainbar1.gif\" alt=\"GOV HK\" name=\"mainbar11\" width=\"170\" height=\"20\" border=\"0\" id=\"mainbar11\"></a></td>");
document.write ("            <td width=\"67\" valign=\"bottom\" background=\"common/images/bkgdtexture.gif\"><a href=\"javascript:changelang('textweb');\" onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar21','','common/images/mainbar2_f2.gif',1)\" ><img src=\"common/images/mainbar2.gif\" alt=\"Text Only\" name=\"mainbar21\" width=\"67\" height=\"20\" border=\"0\" id=\"mainbar21\"></a></td>");
document.write ("            <td width=\"51\" valign=\"bottom\" background=\"common/images/bkgdtexture.gif\"><a href=\"javascript:changelang('b5');\" onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar31','','common/images/mainbar3_f2.gif',1)\" ><img src=\"common/images/mainbar3.gif\" alt=\"Traditional Chinese\" name=\"mainbar31\" width=\"51\" height=\"20\" border=\"0\" id=\"mainbar31\"></a></td>");
document.write ("            <td width=\"50\" valign=\"bottom\" background=\"common/images/bkgdtexture.gif\"><a href=\"javascript:changelang('cn');\" onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar41','','common/images/mainbar4_f2.gif',1)\" ><img src=\"common/images/mainbar4.gif\" alt=\"Simplified Chinese\" name=\"mainbar41\" width=\"50\" height=\"20\" border=\"0\" id=\"mainbar41\"></a></td>");
document.write ("            <td width=\"89\" valign=\"bottom\" background=\"common/images/bkgdtexture.gif\"><img name=\"mainbar5\" src=\"common/images/mainbar5.gif\" border=\"0\" width=\"80\" height=\"20\"></td>");

document.write ("            <td width=\"54\" background=\"common/images/bkgdtexture.gif\"><a href=\"javascript:document.search.submit();\" onCLick=\"searchFunction('search',query.value); return false;\" onMouseOver=\"MM_swapImage('mainbar61','','common/images/mainbar6_f2.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"common/images/mainbar6.gif\" alt=\"Search\" name=\"mainbar61\" width=\"54\" height=\"20\" border=\"0\" align=\"top\" id=\"mainbar61\"></a></td>");

document.write ("            <td width=\"86\" background=\"common/images/bkgdtexture.gif\"><input class=\"search\" type=\"text\" name=\"query\" size=\"12\"></td>");

document.write ("            <td width=\"22\" background=\"common/images/bkgdtexture.gif\"><a href=\"javascript:document.search.submit();\" onClick=\"searchFunction('search',query.value); return false;\"  onMouseOver=\"MM_swapImage('mainbar81','','common/images/mainbar8_f2.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"common/images/mainbar8.gif\" alt=\"Search\" name=\"mainbar81\" width=\"22\" height=\"20\" border=\"0\" align=\"top\" id=\"mainbar81\"></a></td>");
document.write ("            <td width=\"65\" background=\"common/images/bkgdtexture.gif\"><a href=\"sitemap.html\" onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar91','','common/images/mainbar9_f2.gif',1)\" ><img src=\"common/images/mainbar9.gif\" alt=\"Site Map\" name=\"mainbar91\" width=\"65\" height=\"20\" border=\"0\" id=\"mainbar91\"></a></td>");
document.write ("            <td width=\"12\" background=\"common/images/bkgdtexture.gif\">&nbsp;</td>");
document.write ("            <td width=\"36\" background=\"common/images/bkgdtexture.gif\"><a href=\"contact_us.htm\" onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar101','','common/images/mainbar10_f2.gif',1)\" ><img src=\"common/images/mainbar10.gif\" alt=\"Contact Us\" name=\"mainbar101\" width=\"36\" height=\"20\" border=\"0\" id=\"mainbar101\"></a></td>");
document.write ("          </tr>");
document.write ("        </table>");
document.write ("        <table width=\"768\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.write ("          <tr>");
document.write ("            <td width=\"768\" height=\"2\" bgcolor=\"#CC3333\"></td>");
document.write ("          </tr>");
document.write ("      </table></td>");
document.write ("  </tr>");
document.write ("</table>");
document.write ("</form>");


function changelang(toLang)
   {
   if (toLang=="b5")
   {
     if (top.location.pathname.indexOf("/eng/") != -1)
     {   top.location.replace(top.location.pathname.replace(/\/eng\//,"/b5/"));
     }
      else if (top.location.pathname.indexOf("\\eng\\") != -1)
     {top.location.replace(top.location.pathname.replace(/\\eng\\/,"\\b5\\"));     
     }
   }
   
   else if (toLang=="cn")
   {
      if (top.location.pathname.indexOf("/eng/") != -1)
     {   top.location.replace(top.location.pathname.replace(/\/eng\//,"/cn/"));
     }
     else if (top.location.pathname.indexOf("\\eng\\") != -1)
     {top.location.replace(top.location.pathname.replace(/\\eng\\/,"\\cn\\"));     
     }
   }

   else if (toLang=="textweb")
   {
      if (top.location.pathname.indexOf("/eng/") != -1)
     {   top.location.replace(top.location.pathname.replace(/\/eng\//,"/textweb/eng/"));
     }
     else if (top.location.pathname.indexOf("\\eng\\") != -1)
     {top.location.replace(top.location.pathname.replace(/\\eng\\/,"\\textweb/eng\\"));     
     }
   }

}
