var BASE = "http://web.pts.org.tw/php/_utility/homepage/";



var BASU = "http://web.pts.org.tw/php/_utility/utl_htm/";







var page_url=self.location.href;



















function Show_utl_htm_css(m)



{



  SH ="";



  SH+= "\n <style type=\"text/css\">";



  SH+= "\n <!-- ";



  SH+= "\n  body,th,td,input,select,textarea,select,checkbox {font:9pt; }         ";



  SH+= "\n  a:link    {font: 9pt ; text-decoration: none;      } ";//color: #0037aa; } ";



  SH+= "\n  a:visited {font: 9pt ; text-decoration: none;      } ";//color: #6C0000; } ";



  SH+= "\n  a:active  {font: 9pt ; text-decoration: none;      } ";//color: #000000; } ";



  SH+= "\n  a:hover   {font: 9pt ; text-decoration: underline; } ";//color: #000000; } ";



  SH+= "\n  .text9    {  font: 9pt; line-height: 18pt; }  ";



  SH+= "\n  .text8    {  font: 8pt;                    }  ";



  SH+= "\n  .text10   {  font: 10pt;                   }  ";



  SH+= "\n  .text9_15 {  font: 9pt;  line-height: 15pt; } ";



  SH+= "\n  .left_12     {  font: 12px; line-height: 18px; color: #FFFFFF; } ";



  SH+= "\n  .leftb_12    {  font: 12px; line-height: 18px; color: #000000; } ";



  SH+= "\n  .text     {  font: 12px; line-height: 18px; } ";



  SH+= "\n -->      ";



  SH+= "\n </style> ";



  document.write(SH);



}












function Show_utl_htm_top(TOP_PIC, KIND) {



  SH="";







  //document.write('<body leftmargin=0 rightmargin=0 topmargin=0 bottommargin=0>');



  //document.write('<center>');



  //Show_title_bar(1);



  if (TOP_PIC.search('http://web.pts.org.tw/~web01/PTS/images/p3.gif')>=0) {



     TOP_PIC= 'http://web.pts.org.tw/php/_utility/utl_htm/images2005/box_about.gif';



     }















  if (KIND=='') KIND='BOX';







  if (KIND=='BOX') {



     SH+= "\n <table width=778  border=0 cellpadding=0 cellspacing=0 align=center>";



     SH+= "\n   <tr>";



     SH+= "\n   <td width=1   rowspan=3 bgcolor=#000000><img src=\""+BASE+"images2005/null.gif\" width=1 height=1></td>";



     SH+= "\n   <td width=175 rowspan=3 valign=top><img src=\""+BASU+"images2005/p_1.jpg\" width=175 height=104></td>";



     SH+= "\n   <td width=352 rowspan=3 valign=top><img src=\""+BASU+"images2005/p_2.gif\" width=352 height=37><img src=\""+TOP_PIC+"\" ></td>";


	 SH+= "\n   <form action='http://web.pts.org.tw/php/google_search2.php' id='cse-search-box'>";
     SH+= "\n   <td colspan=2 align='right' height='37' background=\""+BASU+"images2005/p_support.gif\">";
     SH+= "\n   <input type=hidden name=cx value=partner-pub-6295508476489669:e9vm1u282m1>";
     SH+= "\n   <input type=hidden name=cof value=FORID:9>";
     SH+= "\n   <input type=hidden name=ie value=big5>";
     SH+= "\n   <input type=text name=q size=20>";
     SH+= "\n   <input type=submit name=sa value=搜尋>";
     SH+= "\n   <script type='text/javascript' src='http://www.google.com/coop/cse/brand?form=cse-search-box&lang=zh-Hant'></script>";
     SH+= "\n   </td>";



     SH+= "\n   <td width=1   rowspan=51 bgcolor=#000000><img src=\""+BASE+"images2005/null.gif\" width=1 height=1></td>";



     SH+= "\n   </tr>";
     SH+= "\n   </form>";







     SH+= "\n   <tr><td width=77 valign=top><img src=\""+BASU+"images2005/p_search1.gif\" width=77 height=34></td>";



     SH+= "\n   <td width=174 height=34 align=center background=\""+BASU+"images2005/p_search2.gif\">";



     SH+= "\n   <table width=\"174\"  border=0 cellpadding=0 cellspacing=0> ";



     //SH+= "\n     <form action=\"http://web.pts.org.tw/php/_utility/search/search.php?FIRST=2&HTM=HTM&TAG=HTM&ROW_SIZE=20\" method=\"post\"  name=\"find1\" >";



     SH+= "\n     <tr> ";



     SH+= "\n       <td width=20></td> ";



     SH+= "\n       <td width=123 background="+BASE+"images2005/top_search3.gif\" valign=middle><div align=\"left\">";



     //SH+= "<font color=black><input type=\"text\" class=\"left_12\" size=13 style=\"border-style: solid; border-width: 0\"  name=\"SEARCH\" value=\"請輸入關鍵字→\" onFocus=\"document.find1.SEARCH.value='';return false;\" style=\"color: #000000\"> ";



     SH+= "\n       </td> ";



   //  SH+= "\n       <td width=42  bgcolor=#FF0000><input type=image name=imageField  src=\""+BASU+"images2005/p_search3.gif\" width=56 height=34></td> ";
     SH+= "\n       <td width=42  bgcolor=#FF0000><img src=\""+BASU+"images2005/p_search3.gif\" width=56 height=34></td> ";



     SH+= "\n     </tr> ";



     //SH+= "\n     </form>";



     SH+= "\n   </table> ";



     SH+= "\n   </td>";



     SH+= "\n   <td></td>";



     SH+= "\n   </tr>";







     SH+= "\n   <tr>";



     SH+= "\n   <td colspan=3 valign=top><a href=\"http://web.pts.org.tw/php/member/main2.php\" target=_blank><img src=\""+BASU+"images2005/p_5.gif\" width=251 height=33 border=0></a></td>";



     SH+= "\n   </tr>";



     SH+= "\n </table>";



     }











  if (KIND=='TOP') {



     SH+= "\n <table width=778  border=0 cellpadding=0 cellspacing=0 align=center>";



     SH+= "\n <tr>";



     SH+= "\n   <td width=1   rowspan=3 bgcolor=#000000><img src=\""+BASE+"images2005/null.gif\" width=1 height=1></td>";



     SH+= "\n   <td width=527><img src="+BASU+"images2005/p2_2.gif width=527 height=37></td>";



     SH+= "\n   <td colspan=2 width=251><img src="+BASU+"images2005/p_support.gif width=251 height=37 border=0></td>";



     SH+= "\n   <td width=1   rowspan=3 bgcolor=#000000><img src=\""+BASE+"images2005/null.gif\" width=1 height=1></td>";



     SH+= "\n </tr>";







     SH+= "\n <tr>";



     SH+= "\n   <td width=527 rowspan=2><img src="+BASU+"images2005/p2_3.jpg width=149 height=76><img src=\""+TOP_PIC+"\" width=378></td>";



     SH+= "\n   <td width=77 valign=top><img src=\""+BASU+"images2005/p_search1.gif\" width=77 height=34></td>";



     SH+= "\n   <td width=174 height=34 align=right background=\""+BASU+"images2005/p_search2.gif\">";



     SH+= "\n   <table width=\"173\"  border=0 cellpadding=\"0\" cellspacing=\"0\" align=right> ";



     SH+= "\n     <form action=\"http://web.pts.org.tw/php/_utility/search/search.php?FIRST=2&HTM=HTM&TAG=HTM&ROW_SIZE=20\" method=\"post\"  name=\"find1\" >";



     SH+= "\n     <tr> ";



     SH+= "\n       <td width=\"33\"></td> ";



     SH+= "\n       <td width=\"109\" background="+BASE+"images2005/top_search3.gif\"><div align=\"left\"> ";



     //SH+= "\n       <font color=black><input type=\"text\" class=\"left_12\" size=13 style=\"border-style: solid; border-width: 0\"  name=\"SEARCH\" value=\"請輸入關鍵字→ \" onFocus=\"document.find1.SEARCH.value='';return false;\"  style=\"color: #000000\"> ";



     SH+= "\n       </div></td> ";



     //SH+= "\n       <td width=31 bgcolor=#FF0000><input type=image name=imageField  src=\""+BASU+"images2005/p_search3.gif\" width=57 height=34></td> ";
     SH+= "\n       <td width=42  bgcolor=#FF0000><img src=\""+BASU+"images2005/p_search3.gif\" width=56 height=34></td> ";



     SH+= "\n     </tr> ";



     SH+= "\n     </form>";



     SH+= "\n   </table> ";



     SH+= "\n   </td>";



     SH+= "\n   </tr>";







     SH+= "\n </tr>";



     SH+= "\n <tr>";



     SH+= "\n   <td colspan=2 width=251><img src="+BASU+"images2005/p2_5.gif width=251 height=42></td>";



     SH+= "\n </tr>";



     SH+= "\n </table>";



     }







  document.write(SH);



  }











































function Show_utl_htm_top_left() {



  var LEFT_CONTENT = "";



  CHECK_LEFT = "Check_MealC_relative_x()";







  SH="";



  SH+= LEFT_CONTENT;















   var i, a= Show_utl_htm_top_left.arguments;



   for(i=0; i<a.length; i++) {



       //SH+= "\n  <BR>---"+a[i];







       if (a[i]=='MEALC') {



          CHECK_LEFT = "Check_MealC_relative_x()";



          }







       if (a[i]=='relative') {



          SH+= "<a href=\"#\" onMouseOver=\"MM_showMenu(window.mm_menu_001, "+CHECK_LEFT+" ,160 ,null,'image1')\" onMouseOut=\"MM_startTimeout();\">";



          SH+= "<img src=\""+BASU+"images2005/p_relative.gif\" width=175 border=0>";



          SH+= "</A>";



          }







       if (a[i]=='flower') {



          SH+= "<img src=\""+BASU+"images2005/p_4.jpg\" width=175 border=0>";



          }










      if (a[i].slice(0,8)=='content:') {



         SH+= a[i].slice(8,100000);



         }











       if (a[i]=='shop') {



          SH+= "\n <table width=100%  border=0 cellpadding=0 cellspacing=0>";



          SH+= "\n    <tr>";



          SH+= "\n    <td><a href=\"http://shopping.pts.org.tw/\" target=_blank><img src=\""+BASU+"images2005/m_top.jpg\" width=175 height=49 border=0</a></td>";



          SH+= "\n    </tr>";



          SH+= "\n    <tr>";



          SH+= "\n    <td valign=\"top\" background=\""+BASU+"images2005/m_bg.jpg\">";



          SH+= "\n    <table width=175  border=0 cellpadding=0 cellspacing=0 >";



          SH+= "\n      <tr><td colspan=4 height=5></td></tr>";







          for(var x=0; x<SHOP_TOTAL; x++) {



             SH+= "<tr>";



             SH+= "  <td width=8>&nbsp;</td>";



             SH+= "  <td width=13 valign=top><img src=\""+BASU+"images2005/dot_1.gif\" width=12></td>";



             SH+= "  <td width=141 valign=top ><div align=left><A href=\""+SHOP_REF[x]+"\" target=_blank ><span class=leftb_12 > "+SHOP_NAM[x]+" </A></div></td>";



             SH+= "  <td width=11>&nbsp;</td>";



             SH+= "</tr>";



             SH+= "<tr><td colspan=4 height=5></td></tr>";



             }







          SH+= "\n     </table></td>";



          SH+= "\n     </tr>";



          SH+= "\n     <tr>";



          SH+= "\n     <td><img src=\""+BASU+"images2005/m_btm.gif\" width=175 height=16></td>";



          SH+= "\n     </tr>";



          SH+= "\n </table>";



          }







       if (a[i]=='member') {



          SH+= "\n <table width=100%  border=0 cellpadding=0 cellspacing=0>";



          SH+= "\n   <tr>";



          SH+= "\n     <td><a href=\"http://web.pts.org.tw/php/member/main2.php\" target=_blank><img src=\""+BASU+"images2005/m_2.gif\" width=175 height=49 border=0</a></td>";



          SH+= "\n   </tr>";



          SH+= "\n   <tr>";



          SH+= "\n     <td valign=top background=\""+BASU+"images2005/m_bg.jpg\">";



          SH+= "\n     <table width=175  border=0 cellpadding=0 cellspacing=0 class=leftb_12>";



          SH+= "\n      <tr><td colspan=4 height=5></td></tr>";







          for(var x=0; x<MEMBER_TOTAL; x++) {



             SH+= "<tr>";



             SH+= "  <td width=8>&nbsp;</td>";



             SH+= "  <td width=13 valign=top><img src=\""+BASU+"images2005/dot_1.gif\" width=12></td>";



             SH+= "  <td width=141 valign=top><div align=left><A href=\""+MEMBER_REF[x]+"\" target=_blank ><span  class=leftb_12 > "+MEMBER_NAM[x]+" </A></div></td>";



             SH+= "  <td width=11>&nbsp;</td>";



             SH+= "</tr>";



             SH+= "<tr><td colspan=4 height=5></td></tr>";



             }







          SH+= "\n     </table></td>";



          SH+= "\n   </tr>";



          SH+= "\n   <tr>";



          SH+= "\n     <td><img src=\""+BASU+"images2005/m_btm.gif\" width=175 height=16></td>";



          SH+= "\n   </tr>";



          SH+= "\n </table>";



          }







       if (a[i]=='active') {



          SH+= "\n <table width=100%  border=0 cellpadding=0 cellspacing=0>";



          SH+= "\n   <tr>";



          SH+= "\n     <td><a href=\"http://web.pts.org.tw/php/member/action_list.php\" target=_blank><img src=\""+BASU+"images2005/m_3.gif\" width=175 height=49 border=0</a></td>";



          SH+= "\n   </tr>";



          SH+= "\n   <tr>";



          SH+= "\n     <td valign=top background=\""+BASU+"images2005/m_bg.jpg\">";



          SH+= "\n     <table width=175  border=0 cellpadding=0 cellspacing=0 class=leftb_12>";



          SH+= "\n      <tr><td colspan=4 height=5></td></tr>";











          for(var x=0; x<ACTIVITY_TOTAL; x++) {



             SH+= "<tr>";



             SH+= "  <td width=8>&nbsp;</td>";



             SH+= "  <td width=13 valign=top><img src=\""+BASU+"images2005/dot_1.gif\" width=12></td>";



             SH+= "  <td width=141 valign=top><div align=left><A href=\""+ACTIVITY_REF[x]+"\" target=_blank ><span  class=leftb_12 > "+ACTIVITY_NAM[x]+" </A></div></td>";



             SH+= "  <td width=11>&nbsp;</td>";



             SH+= "</tr>";



             SH+= "<tr><td colspan=4 height=5></td></tr>";



             }







          SH+= "\n     </table></td>";



          SH+= "\n   </tr>";



          SH+= "\n   <tr>";



          SH+= "\n     <td><img src=\""+BASU+"images2005/m_btm.gif\" width=175 height=16></td>";



          SH+= "\n   </tr>";



          SH+= "\n </table>";



          }















       }















  document.write(SH);



  }































































































































































































function Show_utl_htm_top_bottom(BTM) {



  SH="";







  SH+= "\n   <table width=780 border=0 cellpadding=0 cellspacing=0 >";



  SH+= "\n     <tr>";



  SH+= "\n       <td width=\"1\" bgcolor=\"#000000\"><img src=\""+BASU+"images2005/null.gif\" width=1></td>";







 if(BTM==1) {



     SH+= "\n       <td width=175 valigntop bgcolor=#FFFFFF>&nbsp;";



     SH+= "\n       <td width=603 height=16 colspan=1 valign=bottom background=\""+BASU+"images2005/p_bg.gif\">";



     SH+= "<img src=\""+BASU+"images2005/p_btm.gif\" width=603 height=16>";



     }







  if(BTM==2) {



     SH+= "\n       <td width=773 height=\"16\" colspan=1 valign=\"bottom\" background=\""+BASU+"images2005/p_bg.gif\">";



     SH+= "<img src=\""+BASU+"images2005/p2_btm.gif\" width=\"778\" height=\"16\">";



     }







  SH+= "</td>";



  SH+= "\n       <td width=\"1\" bgcolor=\"#000000\"><img src=\""+BASU+"images2005/null.gif\" width=1></td>";



  SH+= "\n     </tr>";



  SH+= "\n   </table>";







  document.write(SH);



}



























































































































































































































































































function Show_utl_htm_end(m) {



  SH = "";
  SH+= "\n   <table width=\"780\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
  SH+= "\n     <tr>";
  SH+= "\n       <td rowspan=\"4\" bgcolor=\"#000000\"><img src=\""+BASE+"images2005/null.gif\" width=\"1\" height=\"1\"></td>";
  SH+= "\n       <td  bordercolor=#FFFFFF bgcolor=#FFFFFF><p align=\"center\">";
 /*
  SH+= "\n         <object width=\"776\" height=\"70\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"550\" height=\"30\">";
  SH+= "\n           <param name=\"movie\" value=\""+BASE+"flash2006/down_navi.swf\">";
  SH+= "\n           <param name=\"quality\" value=\"high\">";
  //SH+= "\n           <embed src=\""+BASE+"flash2005/down_menu.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"780\" height=\"30\"></embed>";
  SH+= "\n           <embed src=\""+BASE+"flash2006/down_navi.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"776\" height=\"70\"></embed>";
  SH+= "\n         </object>";
 */


  SH+= "\n         <br>";
  SH+= "\n         <img src=\""+BASE+"images2005/btm_top.jpg\" width=\"778\" height=\"10\"></p>";
  SH+= "\n       </td>";
  SH+= "\n       <td rowspan=\"4\" bgcolor=\"#000000\"><img src=\""+BASE+"images2005/null.gif\" width=\"1\" height=\"1\"></td>";
  SH+= "\n     </tr>";



  SH+= "\n     <tr><td><img src=\""+BASE+"images2005/btm_L.jpg\" width=\"159\" height=\"60\">";
  SH+= "<script>CreateBanner(\"arrimages\",468,60);</script><img src=\""+BASE+"images2005/btm_R.jpg\" width=\"151\" height=\"60\"></td>";
  SH+= "\n     </tr>";



  SH+= "\n     <tr><td>";
  SH+= "<script>ShowDownNavi();</script></td></tr>";
  SH+= "\n     <tr><td height=1 bgcolor=black></td></tr>";
  SH+= "\n   </table>";



  document.write(SH);



  }











































function Check_MealC_relative_x() {



  REL_WIDTH = document.body.clientWidth-780;



  if (REL_WIDTH <= 0) REL_WIDTH = 0;



  REL_LEFT = ((REL_WIDTH / 2) + 165);







  return REL_LEFT;



  }


























function show_view_sendfriend(href_link) {



  var gt = unescape('%3e');



  var popup = null;



  var x = ((screen.width  -500) / 2);



  var y = ((screen.height -380) / 2);



  var over = "Launch Pop-up Navigator";

                        





  popup = window.open('', 'popupnav','width=500,height=380,resizable=1,scrollbars=1,left='+x+',top='+y );



  if (popup != null) {



    if (popup.opener == null) {



    popup.opener = self;



    }

   

  popup.location.href = href_link+"?URL="+page_url;



  }



}




