/* ==========================================================================
   Filename    : Common.js
   Author      : Elvis Choi
   Create Date : 28th Feb., 1998.
========================================================================== */

/* ==========================================================================
   To use this library, Add the following line in HTML file
   <SCRIPT LANGUAGE="JavaScript1.2" SRC="common.js"></SCRIPT>
========================================================================== */

/* ==========================================================================
   OpenNewBrowser(<URL>,<Name>,<Parameter>) 
   Open a new Browser with address <URL> with name <Name> and <Parameter>
========================================================================== */
function opennewbrowser(url, name, parameter) 
{ NewWin = window.open(url,name,parameter);}    

/* ==========================================================================
   OpenDefBrowser01(<URL>, <Name>) 
   Open a Default Browser 01 with address <URL> and name <Name>
   -----------------------------------------------------------------------
   Property:
   Yes - Status, Scrollbars, Maximum
   No  - Toolbar, Location, Directories, Menubar, Resizable, Copyhistory
   -----------------------------------------------------------------------
   	main\index.html
========================================================================== */
function opendefbrowser01(url,name) 
{ parameter = 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,maximum=yes'; 
  opennewbrowser(url, name, parameter);} 

/* ==========================================================================
   OpenDefBrowser02(<URL>, <Name>)
   Open a Default Browser 02 with address <URL> and name <Name>
   -----------------------------------------------------------------------
   Property: width=340,height=440
   Yes - Scrollbars,
   No  - Toolbar, Location, Directories, Status, Menubar, Resizable, 
  	 Copyhistory
========================================================================== */
function opendefbrowser02(url,name)
{ parameter = "width=340,height=440,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no"; 
  opennewbrowser(url, name, parameter);} 

/* ==========================================================================
   OpenDefBrowser03(<URL>, <Name>)
   Open a Default Browser 03 with address <URL> and name <Name>
   -----------------------------------------------------------------------
   Property: width=470,height=320
   Yes - Scrollbars,
   No  - Toolbar, Location, Directories, Status, Menubar, Resizable, 
  	 Copyhistory
========================================================================== */
function opendefbrowser03(url,name)
{ parameter = "width=470,height=320,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no"; 
  opennewbrowser(url, name, parameter);} 

/* ==========================================================================
   OpenPhoto(<Photo>, <Size>)
   Open a Photo in a New Browser
   -----------------------------------------------------------------------
   <Photo> : Picture Filename without Extension
   <Size>  : V / H   
   -----------------------------------------------------------------------
        main\gloria\profile.htm
   	photo\_h\_h0001.htm	photo\_h\_h0002.htm	photo\_h\_h0003.htm
	photo\_h\_h004006.htm
	photo\cy\cy0001.htm	photo\cy\cy0002.htm	photo\cy\cy0003.htm
	photo\cy\cy0004.htm	
========================================================================== */
function openphoto(photo,size) 
{ if (size=="V") {opendefbrowser02(photo+".jpg",photo);};
  if (size=="H") {opendefbrowser03(photo+".jpg",photo);};} 

/* ==========================================================================
   MovingStatus(<Seed>,<MessageCode>)
   Moving String in Windows Status Bar
   -----------------------------------------------------------------------
   <MessageCode>:	<HTML Filename>
   1			main\select.htm	
   2			main\artiste\main.htm
   3			main\gloria\main.htm 
   4			main\shirley\main.htm
   -----------------------------------------------------------------------
	main\select.htm
	main\artiste\main.htm
	main\gloria\main.htm
	main\shirley\main.htm
========================================================================== */
function movingstatus(seed, msgcode)
{ var m01 ="Welcome...      This is Chinese Big-5 Page      Recommend Setting: Netscape Communicator, 640 x 480 x 16 Million Color, TwinBridge MultiLingual Series - Chinese Partner      ";
  var m02 ="請選擇藝人";
  var m03 ="歡迎光臨葉蘊儀專頁";
  var m04 ="歡迎光臨張玉珊專頁";

  var msg = " ";
  var out = " ";
  var c   = 1;
    
  if      (msgcode == 1) {msg = m01;}
  else if (msgcode == 2) {msg = m02;}
  else if (msgcode == 3) {msg = m03;}
  else if (msgcode == 4) {msg = m04;}
 
  if (seed > 100)
    {seed--;
     var cmd="movingstatus(" + seed + "," + msgcode + ")";
     timerTwo=window.setTimeout(cmd,100);
    }
  else if (seed <= 100 && seed > 0) 
    {for (c=0; c < seed; c++) {out+=" ";}
     out+=msg;
     seed--;
     var cmd="movingstatus(" + seed + "," + msgcode + ")";
     window.status=out;
     timerTwo=window.setTimeout(cmd,100);
    }
  else if (seed <= 0)
    {if (-seed < msg.length)
       {out+=msg.substring(-seed,msg.length);
        seed--;
        var cmd="movingstatus(" + seed + "," + msgcode + ")";
        window.status=out;
        timerTwo=window.setTimeout(cmd,100);
       }
     else 
       {var cmd="movingstatus(100," + msgcode + ")";
        window.status=" ";
        timerTwo=window.setTimeout(cmd,75);
       }
    }
}

/* ==========================================================================
   GetPath(<Type>,<Code>) 
   Get Path
   -----------------------------------------------------------------------
   <Type>: 	<Code>:
   IDOL 	_h
		cy
   TV		icac
		tough
   -----------------------------------------------------------------------
   Set Variable 'remote' to 'Y' manually if use in Internet
   Set Variable 'remote' to 'N' manually when without Internet
========================================================================== */
function getpath(type, code)
{ var remote = 'Y';
  var nullvalue = "";
  if (remote == 'Y')
    {var url_h="http://www.geocities.com/Hollywood/Hills/9082/";
     var urlcy="http://www.geocities.com/Hollywood/Hills/9082/";
     var urlicac="http://www.tvb.com.hk/program/icac/cast2.htm";
     var urltough="http://www.tvb.com.hk/program/tough/cast2.htm";}
  else
    {var url_h="file:///E|/homepage/submain/_hphoto/";
     var urlcy="file:///E|/homepage/submain/cyphoto/";
     var urlicac="file:///E|/homepage/submain/tvicac/";
     var urltough="file:///E|/homepage/submain/tvtough/";}

  if (type == 'IDOL')
    {if (code=="_h") {return url_h;}
     else if (code=="cy") {return urlcy;}
     else {return nullvalue}}
  else if (type == "TV")
    {if (code=="icac") {return urlicac;}
     else if (code=="tough") {return urltough;}
     else {return nullvalue}}
  else {return nullvalue;}
}

/* ==========================================================================
   ShiftFrame(<Type>, <Code>)
   Change the HTML in the frame
   -----------------------------------------------------------------------
   <Type>:	<Code>:
   IDOL		main		                   (Default Page)
		_h, cy
   TV		main		                   (Default Page)
		icac, tough
   PHOTO	<PhotoPageName without Extension>  (e.g. _h0001, cy0001)
   -----------------------------------------------------------------------
   	main\artiste\select.htm	
   	main\shirley\tvselect.htm	
        submain\_hphoto\_hselect.htm
        submain\cyphoto\cyselect.htm
========================================================================== */
function shiftframe(type, code) 
{ var selection=code;
  var url=getpath(type, code);

  if (type == 'IDOL')
    {if (selection=="main")
       {gotohtml('Artiste-Main');
        gotohtml('Artiste-Blank');}
     else
       {if (code == "_h") {gotohtml('HMT-Main'); gotohtml('HMT-PhotoSelect');};
        if (code == "cy") {gotohtml('YL-Main'); gotohtml('YL-PhotoSelect');};};};

  if (type == 'GLORIA-CD')
    {if (selection=="main") {gotohtml('GY-CDMain'); gotohtml('GY-Blank');};
     if (selection=="PCDA-00056") {gotohtml('GY-CDJS1'); gotohtml('GY-Blank');};
     if (selection=="PCDA-00121") {gotohtml('GY-CDJS2'); gotohtml('GY-Blank');};
     if (selection=="PCDA-00213") {gotohtml('GY-CDJS3'); gotohtml('GY-Blank');};
     if (selection=="PCDA-00270") {gotohtml('GY-CDJS4'); gotohtml('GY-Blank');};
     if (selection=="PCCA-00213") {gotohtml('GY-CDJA1'); gotohtml('GY-Blank');};
     if (selection=="PCCA-00317") {gotohtml('GY-CDJA2'); gotohtml('GY-Blank');};
     if (selection=="PCCA-00489") {gotohtml('GY-CDJA3'); gotohtml('GY-Blank');};
     if (selection=="UFO-92222") {gotohtml('GY-CDTA1'); gotohtml('GY-Blank');};
     if (selection=="UFO-92259") {gotohtml('GY-CDTA2'); gotohtml('GY-Blank');};
     if (selection=="UFO-92536") {gotohtml('GY-CDTA3'); gotohtml('GY-Blank');};
     if (selection=="UFO-94931") {gotohtml('GY-CDTA4'); gotohtml('GY-Blank');};
     if (selection=="UFO-96727") {gotohtml('GY-CDTA5'); gotohtml('GY-Blank');};
     if (selection=="UFO-98723") {gotohtml('GY-CDTA6'); gotohtml('GY-Blank');};
     if (selection=="UFO-99292") {gotohtml('GY-CDTA7'); gotohtml('GY-Blank');};
     if (selection=="4509-93869") {gotohtml('GY-CDHA1'); gotohtml('GY-Blank');};
    };

  if (type == 'SHIRLEY-CD')
    {if (selection=="main") {gotohtml('SC-CDMain'); gotohtml('SC-Blank');};
     if (selection=="74321-22929") {gotohtml('SC-CDHA1'); gotohtml('SC-Blank');};
     if (selection=="74321-26450") {gotohtml('SC-CDHA2'); gotohtml('SC-Blank');};
    };

  if (type == 'SHIRLEY-TV')
    {if (selection=="MAIN") {gotohtml('SC-Blank');gotohtml('SC-TVMain');};
     if (selection=="ICAC") {gotohtml('TV-ICAC-Select');gotohtml('TV-ICAC-CAST');};
     if (selection=="TOUGH") {gotohtml('TV-TOUGH-Select');gotohtml('TV-TOUGH-CAST');};
    };

//       {window.open("blank.htm", TARGET="selectdtl");
//        window.open("tvlist.htm", TARGET="subl2");}
//     else
//       {window.open(url+"cast2.htm", TARGET="subl2");
//        window.open(url+selection+"-sl.htm", TARGET="selectdtl");}}
 
  if (type == 'TVSELECT')
    {if (selection=="icac-cs") {gotohtml('TV-ICAC-CAST');};
     if (selection=="icac-01") {gotohtml('TV-ICAC-0001');};
     if (selection=="icac-02") {gotohtml('TV-ICAC-0002');};
     if (selection=="icac-03") {gotohtml('TV-ICAC-0003');};
     if (selection=="icac-04") {gotohtml('TV-ICAC-0004');};
     if (selection=="icac-05") {gotohtml('TV-ICAC-0005');};
     if (selection=="icac-06") {gotohtml('TV-ICAC-0006');};
     if (selection=="icac-07") {gotohtml('TV-ICAC-0007');};
     if (selection=="icac-08") {gotohtml('TV-ICAC-0008');};
     if (selection=="icac-09") {gotohtml('TV-ICAC-0009');};
     if (selection=="icac-10") {gotohtml('TV-ICAC-0010');};
     if (selection=="icac-11") {gotohtml('TV-ICAC-0011');};
     if (selection=="icac-12") {gotohtml('TV-ICAC-0012');};
     if (selection=="icac-13") {gotohtml('TV-ICAC-0013');};
     if (selection=="icac-14") {gotohtml('TV-ICAC-0014');};
     if (selection=="icac-15") {gotohtml('TV-ICAC-0015');};
     if (selection=="icac-16") {gotohtml('TV-ICAC-0016');};
     if (selection=="icac-17") {gotohtml('TV-ICAC-0017');};
     if (selection=="icac-18") {gotohtml('TV-ICAC-0018');};
     if (selection=="icac-19") {gotohtml('TV-ICAC-0019');};
     if (selection=="icac-20") {gotohtml('TV-ICAC-0020');};
     if (selection=="tough-cs") {gotohtml('TV-TOUGH-CAST');};
     if (selection=="tough-01") {gotohtml('TV-TOUGH-0001');};
     if (selection=="tough-02") {gotohtml('TV-TOUGH-0002');};
     if (selection=="tough-03") {gotohtml('TV-TOUGH-0003');};
     if (selection=="tough-04") {gotohtml('TV-TOUGH-0004');};
     if (selection=="tough-05") {gotohtml('TV-TOUGH-0005');};
     if (selection=="tough-06") {gotohtml('TV-TOUGH-0006');};
     if (selection=="tough-07") {gotohtml('TV-TOUGH-0007');};
     if (selection=="tough-08") {gotohtml('TV-TOUGH-0008');};
     if (selection=="tough-09") {gotohtml('TV-TOUGH-0009');};
     if (selection=="tough-10") {gotohtml('TV-TOUGH-0010');};
     if (selection=="tough-11") {gotohtml('TV-TOUGH-0011');};
     if (selection=="tough-12") {gotohtml('TV-TOUGH-0012');};
     if (selection=="tough-13") {gotohtml('TV-TOUGH-0013');};
     if (selection=="tough-14") {gotohtml('TV-TOUGH-0014');};
     if (selection=="tough-15") {gotohtml('TV-TOUGH-0015');};
     if (selection=="tough-16") {gotohtml('TV-TOUGH-0016');};
     if (selection=="tough-17") {gotohtml('TV-TOUGH-0017');};
     if (selection=="tough-18") {gotohtml('TV-TOUGH-0018');};
     if (selection=="tough-19") {gotohtml('TV-TOUGH-0019');};
     if (selection=="tough-20") {gotohtml('TV-TOUGH-0020');};
    };
/*    {window.open(code+".htm", TARGET="subl2");} */

 if (type == 'PHOTO')
    {window.open(url+selection+".htm", TARGET="subl1");}
} 

/* **************************************** */ 
/* href="javascript:gotohtml('SC-Profile')" */
/* **************************************** */ 
function gotohtml(htmlname)
{ var remote = 'Y';
  var nullvalue = "";

  /* External WebSite URL */
  var tvb_url = "http://www.tvb.com.hk";
  var vincentfok_url = "http://cs.art.rmit.edu.au/students/media/vincent_fok/index.html";
  var candylau_url = "http://www.cs.ust.hk/~candy/";
  var garfield_url = "http://www.garfield.com/";
  var blueribbon_url = "http://www.eff.org/blueribbon.html";
  var netscape_url = "http://home.netscape.com/comprod/mirror/index.html";

  /* Remote URL */
  var riurl_1 = "http://home.netvigator.com/~elviscty/";
  var riurl_2 = "http://www.geocities.com/Hollywood/Hills/9082/";
  var riurl_3 = "http://home.netvigator.com/~elviscty/tvselect/";
  var reurl_1 = "http://www.tvb.com.hk/program/";
  /* Local URL */
  var liurl_1 = "file:///E|/homepage/main/";
  var liurl_2 = "file:///E|/homepage/submain/";
  var liurl_3 = "file:///E|/homepage/submain/tvselect/";
  var leurl_1 = "file:///E|/homepage/submain/tv";
  /* Current URL */
  var ciurl_1 = "";
  var ciurl_2 = "";
  var ciurl_3 = "";
  var ceurl_1 = "";
  if (remote == 'Y')
    {ciurl_1 = riurl_1;
     ciurl_2 = riurl_2;
     ciurl_3 = riurl_3;
     ceurl_1 = reurl_1;}
  else
    {ciurl_1 = liurl_1;
     ciurl_2 = liurl_2;
     ciurl_3 = liurl_3;
     ceurl_1 = leurl_1;};

  /* Directory Assign */
  var shirley_dir = ciurl_1+"shirley/";
  var gloria_dir = ciurl_1+"gloria/";
  var artiste_dir = ciurl_1+"artiste/";
  var hmt_dir = ciurl_2+"hmt/";
  var yl_dir = ciurl_2+"yl/";
  var main_dir = ciurl_1;
  var tv_select_dir = ciurl_3;
  var tv_icac_dir = ceurl_1 + "icac/";
  var tv_tough_dir = ceurl_1 + "tough/";

  var chtml = "";
  var ctarget = "";

  if (htmlname == 'Ecty-Index')
    {chtml = main_dir+"index.html";
     ctarget = "_top";};

  if (htmlname == 'GY-Index')
    {chtml = gloria_dir + "index.html"
     ctarget = "main";};
  if (htmlname == 'GY-Profile')
    {chtml = gloria_dir+"profile.htm";
     ctarget = "subl1";};
  if (htmlname == 'GY-CD')
    {chtml = gloria_dir+"cd.htm";
     ctarget = "subl1";};
  if (htmlname == 'GY-Film')
    {chtml = gloria_dir+"film.htm";
     ctarget = "subl1";};
  if (htmlname == 'GY-Product')
    {chtml = gloria_dir+"product.htm";
     ctarget = "subl1";};
  if (htmlname == 'GY-CDMain')
    {chtml = gloria_dir+"cdmain.htm";
     ctarget = "subl2";};
  if (htmlname == 'GY-Blank')
    {chtml = gloria_dir+"blank.htm";
     ctarget = "select2";};
  if (htmlname == 'GY-CDJS1')
    {chtml = gloria_dir+"pcda00056.htm";
     ctarget = "subl2";};
  if (htmlname == 'GY-CDJS2')
    {chtml = gloria_dir+"pcda00121.htm";
     ctarget = "subl2";};
  if (htmlname == 'GY-CDJS3')
    {chtml = gloria_dir+"pcda00213.htm";
     ctarget = "subl2";};
  if (htmlname == 'GY-CDJS4')
    {chtml = gloria_dir+"pcda00270.htm";
     ctarget = "subl2";};
  if (htmlname == 'GY-CDJA1')
    {chtml = gloria_dir+"pcca00213.htm";
     ctarget = "subl2";};
  if (htmlname == 'GY-CDJA2')
    {chtml = gloria_dir+"pcca00317.htm";
     ctarget = "subl2";};
  if (htmlname == 'GY-CDJA3')
    {chtml = gloria_dir+"pcca00489.htm";
     ctarget = "subl2";};
  if (htmlname == 'GY-CDTA1')
    {chtml = gloria_dir+"ufo92222.htm";
     ctarget = "subl2";};
  if (htmlname == 'GY-CDTA2')
    {chtml = gloria_dir+"ufo92259.htm";
     ctarget = "subl2";};
  if (htmlname == 'GY-CDTA3')
    {chtml = gloria_dir+"ufo92536.htm";
     ctarget = "subl2";};
  if (htmlname == 'GY-CDTA4')
    {chtml = gloria_dir+"ufo94931.htm";
     ctarget = "subl2";};
  if (htmlname == 'GY-CDTA5')
    {chtml = gloria_dir+"ufo96727.htm";
     ctarget = "subl2";};
  if (htmlname == 'GY-CDTA6')
    {chtml = gloria_dir+"ufo98723.htm";
     ctarget = "subl2";};
  if (htmlname == 'GY-CDTA7')
    {chtml = gloria_dir+"ufo99292.htm";
     ctarget = "subl2";};
  if (htmlname == 'GY-CDHA1')
    {chtml = gloria_dir+"450993869.htm";
     ctarget = "subl2";};

  if (htmlname == 'SC-Index')
    {chtml = shirley_dir + "index.html"
     ctarget = "main";};
  if (htmlname == 'SC-Profile')
    {chtml = shirley_dir+"profile.htm";
     ctarget = "subl1";};
  if (htmlname == 'SC-CD')
    {chtml = shirley_dir+"cd.htm";
     ctarget = "subl1";};
  if (htmlname == 'SC-Film')
    {chtml = shirley_dir+"film.htm";
     ctarget = "subl1";};
  if (htmlname == 'SC-TV')
    {chtml = shirley_dir+"tv.htm";
     ctarget = "subl1";};
  if (htmlname == 'SC-CDMain')
    {chtml = shirley_dir+"cdmain.htm";
     ctarget = "subl2";};
  if (htmlname == 'SC-TVMain')
    {chtml = shirley_dir+"tvlist.htm";
     ctarget = "subl2";};
  if (htmlname == 'SC-Blank')
    {chtml = shirley_dir+"blank.htm";
     ctarget = "select2";};
  if (htmlname == 'SC-CDHA1')
    {chtml = shirley_dir+"7432122929.htm";
     ctarget = "subl2";};
  if (htmlname == 'SC-CDHA2')
    {chtml = shirley_dir+"7432126450.htm";
     ctarget = "subl2";};

  if (htmlname == 'Artiste-Index')
    {chtml = artiste_dir + "index.html";
     ctarget = "main";};
  if (htmlname == 'Artiste-Main')
    {chtml = artiste_dir + "main.htm";
     ctarget = "subl1";};
  if (htmlname == 'Artiste-Blank')
    {chtml = artiste_dir + "blank.htm";
     ctarget = "selectphoto";};
  
  if (htmlname == 'HMT-Main')
    {chtml = hmt_dir + "_hmain.htm";
     ctarget = "subl1";};
  if (htmlname == 'HMT-PhotoSelect')
    {chtml = hmt_dir + "_hselect.htm";
     ctarget = "selectphoto";};

  if (htmlname == 'YL-Main')
    {chtml = yl_dir + "cymain.htm";
     ctarget = "subl1";};
  if (htmlname == 'YL-PhotoSelect')
    {chtml = yl_dir + "cyselect.htm";
     ctarget = "selectphoto";};

  if (htmlname == 'TV-ICAC-CAST')
    {chtml = tv_icac_dir + "cast2.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-ICAC-Select')
    {chtml = tv_select_dir + "icac-sl.htm"; ctarget = "select2";};
  if (htmlname == 'TV-ICAC-0001')
    {chtml = tv_icac_dir + "0001.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-ICAC-0002')
    {chtml = tv_icac_dir + "0002.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-ICAC-0003')
    {chtml = tv_icac_dir + "0003.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-ICAC-0004')
    {chtml = tv_icac_dir + "0004.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-ICAC-0005')
    {chtml = tv_icac_dir + "0005.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-ICAC-0006')
    {chtml = tv_icac_dir + "0006.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-ICAC-0007')
    {chtml = tv_icac_dir + "0007.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-ICAC-0008')
    {chtml = tv_icac_dir + "0008.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-ICAC-0009')
    {chtml = tv_icac_dir + "0009.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-ICAC-0010')
    {chtml = tv_icac_dir + "0010.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-ICAC-0011')
    {chtml = tv_icac_dir + "0011.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-ICAC-0012')
    {chtml = tv_icac_dir + "0012.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-ICAC-0013')
    {chtml = tv_icac_dir + "0013.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-ICAC-0014')
    {chtml = tv_icac_dir + "0014.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-ICAC-0015')
    {chtml = tv_icac_dir + "0015.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-ICAC-0016')
    {chtml = tv_icac_dir + "0016.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-ICAC-0017')
    {chtml = tv_icac_dir + "0017.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-ICAC-0018')
    {chtml = tv_icac_dir + "0018.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-ICAC-0019')
    {chtml = tv_icac_dir + "0019.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-ICAC-0020')
    {chtml = tv_icac_dir + "0020.htm"; ctarget = "subl2";};

  if (htmlname == 'TV-TOUGH-CAST')
    {chtml = tv_tough_dir + "cast2.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-TOUGH-Select')
    {chtml = tv_select_dir + "tough-sl.htm"; ctarget = "select2";};
  if (htmlname == 'TV-TOUGH-0001')
    {chtml = tv_tough_dir + "0001.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-TOUGH-0002')
    {chtml = tv_tough_dir + "0002.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-TOUGH-0003')
    {chtml = tv_tough_dir + "0003.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-TOUGH-0004')
    {chtml = tv_tough_dir + "0004.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-TOUGH-0005')
    {chtml = tv_tough_dir + "0005.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-TOUGH-0006')
    {chtml = tv_tough_dir + "0006.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-TOUGH-0007')
    {chtml = tv_tough_dir + "0007.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-TOUGH-0008')
    {chtml = tv_tough_dir + "0008.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-TOUGH-0009')
    {chtml = tv_tough_dir + "0009.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-TOUGH-0010')
    {chtml = tv_tough_dir + "0010.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-TOUGH-0011')
    {chtml = tv_tough_dir + "0011.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-TOUGH-0012')
    {chtml = tv_tough_dir + "0012.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-TOUGH-0013')
    {chtml = tv_tough_dir + "0013.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-TOUGH-0014')
    {chtml = tv_tough_dir + "0014.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-TOUGH-0015')
    {chtml = tv_tough_dir + "0015.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-TOUGH-0016')
    {chtml = tv_tough_dir + "0016.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-TOUGH-0017')
    {chtml = tv_tough_dir + "0017.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-TOUGH-0018')
    {chtml = tv_tough_dir + "0018.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-TOUGH-0019')
    {chtml = tv_tough_dir + "0019.htm"; ctarget = "subl2";};
  if (htmlname == 'TV-TOUGH-0020')
    {chtml = tv_tough_dir + "0020.htm"; ctarget = "subl2";};

  if (htmlname == 'EWS-VincentFok')
    {chtml = vincentfok_url;
     ctarget = "_blank";};
  if (htmlname == 'EWS-CandyLau')
    {chtml = candylau_url;
     ctarget = "_blank";};
  if (htmlname == 'EWS-Garfield')
    {chtml = garfield_url;
     ctarget = "_blank";};
  if (htmlname == 'EWS-TVB')
    {chtml = tvb_url;
     ctarget = "_blank";};
  if (htmlname == 'EWS-BlueRibbon')
    {chtml = blueribbon_url;
     ctarget = "_blank";};
  if (htmlname == 'EWS-Netscape')
    {chtml = netscape_url;
     ctarget = "_blank";};
  window.open(chtml, TARGET=ctarget);  
}
