﻿/*
<SCRIPT src="http://www.ouhk.edu.hk/LIPACE/JS/frontpage/ance.js" type=text/javascript></SCRIPT>                                       
<SCRIPT type=text/javascript> postMsg('33520',true) </SCRIPT>   
*/


var c_code 
var c_other =null;
var eng
var cef_code=null;
var qf_code=null;


function info(date,code,msg){
    this.date=date;
    this.code=code;
    this.msg=msg;
}

msg = Array();


msg[0]= new info ("2000/01/01","test1","33526 Class A(6 Jul 2007) : Full")
msg[1]= new info ("2000/01/01","75000"," No new students are accepted for admission at programme level.  Admission for single subjects for new applicants may be accepted if the subject(s) is/are offered at normal schedule but it is considered on a case by case basis and is also subject to NTU’s approval.")
msg[2]= new info ("2000/01/01","BN001","No new students are accepted for admission at programme and at course/unit levels. It is only provided to existing/continuing students.")
msg[3]= new info ("2000/01/01","BN002","No new students are accepted for admission at programme and at course/unit levels. It is only provided to existing/continuing students.")
msg[4]= new info ("2000/01/01","81000","No new students are accepted for admission at programme level.  Admission for single subjects for new applicants may be accepted if the subject(s) is/are offered at normal schedule but it is considered on a case by case basis and is also subject to Curtin’s approval.")
msg[5]= new info ("2000/01/01","81500"," No new students are accepted for admission at programme level.  Admission for single subjects for new applicants may be accepted if the subject(s) is/are offered at normal schedule but it is considered on a case by case basis and is also subject to Curtin’s approval.")
msg[6]= new info ("2011/03/22","BN006","Online application can be made by emailing us (Email: lipace_nlp@ouhk.edu.hk) your completed application form with required documents. Application form can be downloaded at programme webpage.")




//msg[1]= new info ("2000/01/01","8886","團體報讀優惠9 折(只適用於部分課程)<BR>[適用日期：指定課程開課前一個月的第20日或之前(公眾假期亦不例外)]於以上日期郵寄(以郵戳的日期為準)或親身遞交的報讀申請(至少3人同時報讀同一學期同一科目的同一班)可享此優惠。每位申請人均需在此報名表乙部「團體報讀優惠」一欄列明其他一同報讀人士姓名，並集齊所有人的報名表，一同遞交。單獨交表或不同時交表，恕不當團體報讀處理。")
//msg[2]= new info ("2000/01/01","8887","Group Discount 10%(Only apply for Discount Available Programme)<BR>Applicable to the enrolment applications received by LiPACE (either by hand or by post) on or before the 20th day of the preceding month of the course commencement(Public holiday inclusive), and a group of at least 3 applicants enrolling together on the same class of the same course in the same intake. Each applicant shall list all other group members. All enrolment forms should be submitted together. Enrolment forms submitted individually or not simultaneously will not be eligible for Group Discount.")
//msg[3]= new info ("2000/01/01","8886","部份課程學費，將由2008年9月學期起作出調整，<a href=\"http://www.ouhk.edu.hk/WCM/?FUELAP_TEMPLATENAME=tcSingPage&ITEMID=CCLIPACECONTENT_58253748&lang=chi&FUELAP_SITEDBID=SITE_-65\">詳情請按此</a>。")
//msg[4]= new info ("2000/01/01","8887"," Start from 2008/09 intake, tuition fee of some courses will be adjusted. 	<a href=\"http://www.ouhk.edu.hk/WCM/?FUELAP_TEMPLATENAME=tcSingPage&ITEMID=CCLIPACECONTENT_58253748&lang=chi&FUELAP_SITEDBID=SITE_-65\">	Please click here for details</a>.")

msg[7]= new info ("2000/01/01","8886","部份課程學費，將由2012年3月學期起作出調整，<a href=\"http://www.ouhk.edu.hk/LIPACE/courseinfo/new_price.html\">詳情請按此</a>。")
msg[8]= new info ("2000/01/01","8887"," Start from 2012/03 intake, tuition fee of some courses will be adjusted. 	<a href=\"http://www.ouhk.edu.hk/LIPACE/courseinfo/new_price.html\">	Please click here for details</a>.")
msg[9]= new info ("2000/01/01","8887"," ----------------------------<BR>According to the guidelines of the Continuing Education Fund, no discounts (including course coupons) except the Early-Bird discount are allowed for CEF reimbursable courses.")
msg[10]= new info ("2000/01/01","8886"," ----------------------------<BR>依照持續進修基金指引，所有「持續進修基金可獲發還款項課程」皆只可提供預早報讀優惠，其他優惠 (包括課程代用券) 概不適用。")


//msg[6]= new info ("2010/06/15","SA013","<br>加開7月班，現接受報名<br><br>");
//msg[6]= new info ("2011/01/23","CA057","<a href='http://www.ouhk.edu.hk/LIPACE/SeminarReg/reg.html?scode=L109'>1月23日 &#26032;&#19990;&#20195;免費&#35611;&#24231; [&#31925;&#21127;&#33287;&#26032;&#19990;&#20195;&#30340;&#38364;&#20418;&#33287;&#25512;&#24291]</a><br><br>");


//code: 8886 - CHi Programme ; 8887 - ENG Programme ; 8888- ALL Programme

//********************************************************************************


function profile(nameE,nameC,file){
    this.nameE=nameE;
    this.nameC=nameC;
    this.file=file;

}

cc =new Array(4);
for (i=0; i<4; i++) cc[i]=new Array()  



//cc[0][0]= new profile ("Dr. MA Hak-mei Magdy","馬克薇博士","BA(CSU), MA(PolyU), PhD(NCSU)")

cc[0][0]= new profile ("","","")
cc[0][1]= new profile ("Ms. LAI Hoi-shan Perrie","黎海珊女士","ADip(HKAPA), MCS(HKBTS)")
cc[0][2]= new profile ("Ms. MOY Ka-ling Karen","梅嘉齡女士","BA(Hons), PgD, MA, MSc(PolyU)")
cc[0][3]= new profile ("Ms. YU Li Sammi","張紫伶女士","BA(UBC)")
cc[0][4]= new profile ("Mr. YAO Yi-jiang Johnny","姚一江先生","BA (UMac), MA (HKUST), MA (CUHK)")
cc[0][5]= new profile ("Ms. CHAN Yu-yan Valerina","陳汝恩女士","BSc(UBC),MA(OUHK)")
cc[0][6]= new profile ("Mr. TIN Lai-man","田禮文先生","BA(Hons)(CityU)")
cc[0][7]= new profile ("Mr. HAU Kok-man Ray","侯覺文先生","BA (Hons)(PolyU), MA(PolyU), LBIPP, LRPS, DipM(CSD), HonMem(WTA)")
cc[0][8]= new profile ("Mr. CHIU Kong Jonny","趙剛先生","BA, MEd(BLCU)")
cc[0][9]= new profile ("Ms. MAK Wai-sum Zoe","麥慧心女士","BABEd, MEd(UNSW)")
cc[0][10]= new profile ("Mr. YAU Ka-kin Derek","游家健先生","BSc(Radford)")
cc[0][11]= new profile ("Mr. HAU Kok-man Ray","侯覺文先生","BA(Hons)(PolyU), MA(PolyU), LBIPP, LRPS, Dip.Member(CSD),Hon.Member (WTA)")


 


cc[1][0]= new profile ("Dr. CHUNG Chun-kit Ricky","鍾俊傑博士","BSc(CSU), MBA(HKBU), MSc(CityU), DBA(Newcastle, Australia), CFA, CFP<sup>CM</sup>,FRM")
cc[1][1]= new profile ("Ms. CHAN Wai-mei  Amy","陳惠媚女士","BA(Hons)(PolyU), MBA(UB), FCCA, HKICPA")
cc[1][2]= new profile ("Ms. CHEN Yi-fan Yvonne","陳羿帆女士","BA(Shih Hsin), PgD(César Ritz), MSc(MMU)")
cc[1][3]= new profile ("Mr. CHENG Tung-shing Tommy","鄭東城先生","BSc (Manchester), MSc (HKPolyU), PGDE (HKU)")

cc[1][4]= new profile ("Ms. GUO Hui Grace","郭卉女士","BA(Hons)(Gloucestershire), MSc(Brunel)")






cc[2][0]= new profile ("Mr. TSE Chun-kuen Alex","謝津權先生","BSc(Hons)(CUHK), MSc(Env.Sci.), MSc(Env.Eng.)(HKUST), Dip. Occ.Hyg.(CUHK), CIH, RPH, RSO, CMIOSH, FMHKIOEH, PMSPT")
cc[2][1]= new profile ("Ms. LI Yuk-man Charis","李毓雯女士","BSc(Hons), MPhil(CUHK)")
cc[2][2]= new profile ("Mr. HE Lai Daniel","何來先生","BVM(NWSUAF), MSc(CAAS)")   
cc[2][3]= new profile ("Ms. LI Sau-man Jackie","李秀文女士","M.S.(SUNY AIbany), M.S.(SUNY Albany), M.A.(SUNY Albany), B.A.(Bard)")   
//***
cc[2][4]= new profile ("Mr. CHAN Yiu-sing Raymond","陳耀昇先生","BN(Hons)(CUHK), Grad.DMS(ICM), MAppMngt(Newcastle), RN")   

cc[2][5]= new profile ("Mr. LAM Yin-tat Walter","林賢達先生","BSc(Hons), MSocSc.(HKU), RSW")   


cc[3][0]= new profile ("Ms. PANG Hoi-ning Helen","彭海寧女士","BCom(UNSW),MRehabCling(USyd)")   
cc[3][1]= new profile ("Ms. LIU Ching-man Clarice","廖靜雯女士","BBA(Hons), MA(HKBU)")   



function duties (n1,n2,pcode){
    this.n1=n1;
    this.n2=n2;
    this.pcode=pcode;

}

dutiesList =new Array();

dutiesList[0] = new duties(1,0,"CB003");
dutiesList[1] = new duties(1,0,"DB002");
dutiesList[2] = new duties(1,0,"DB003");
dutiesList[3] = new duties(1,0,"DB020");
dutiesList[4] = new duties(1,0,"DB021");
dutiesList[5] = new duties(1,0,"SB006");
dutiesList[6] = new duties(1,0,"SB007");
dutiesList[7] = new duties(1,0,"SB015");
dutiesList[8] = new duties(1,0,"SB016");
dutiesList[9] = new duties(1,0,"SB017");
dutiesList[10] = new duties(1,0,"SB018");
dutiesList[11] = new duties(1,0,"SB019");
dutiesList[12] = new duties(1,0,"SB020");
dutiesList[13] = new duties(1,0,"SB021");
dutiesList[14] = new duties(1,1,"CB031");
dutiesList[15] = new duties(1,1,"DB022");
dutiesList[16] = new duties(1,3,"DB011");
dutiesList[17] = new duties(1,3,"DB025");
dutiesList[18] = new duties(1,3,"DB028");
dutiesList[19] = new duties(1,3,"CB022");
dutiesList[20] = new duties(1,2,"DB012");
dutiesList[21] = new duties(1,2,"DB013");
dutiesList[22] = new duties(1,2,"DB032");
dutiesList[23] = new duties(1,4,"CB008");
dutiesList[24] = new duties(1,4,"CB009");
dutiesList[25] = new duties(1,4,"DB006");
dutiesList[26] = new duties(1,4,"DB031");
dutiesList[27] = new duties(1,4,"DB036");
dutiesList[28] = new duties(2,0,"DH001");
dutiesList[29] = new duties(2,0,"CH015");
dutiesList[30] = new duties(2,0,"CH016");
dutiesList[31] = new duties(2,0,"CH017");
dutiesList[32] = new duties(2,0,"CH025");
dutiesList[33] = new duties(2,0,"DH007");
dutiesList[34] = new duties(2,0,"DH021");
dutiesList[35] = new duties(2,0,"SH006");
dutiesList[36] = new duties(2,0,"SH009");
dutiesList[37] = new duties(2,0,"BN004");
dutiesList[38] = new duties(2,0,"MN002");
dutiesList[39] = new duties(2,0,"SH011");
dutiesList[40] = new duties(2,5,"CH018");
dutiesList[41] = new duties(2,5,"CH024");
dutiesList[42] = new duties(2,5,"DH009");
dutiesList[43] = new duties(2,5,"DH010");
dutiesList[44] = new duties(2,5,"DH012");
dutiesList[45] = new duties(2,5,"SH012");
dutiesList[46] = new duties(2,4,"CH007");
dutiesList[47] = new duties(2,4,"CH023");
dutiesList[48] = new duties(2,4,"DH003");
dutiesList[49] = new duties(2,4,"DH004");
dutiesList[50] = new duties(2,4,"DH005");
dutiesList[51] = new duties(2,4,"DH017");
dutiesList[52] = new duties(2,4,"MN001");
dutiesList[53] = new duties(2,1,"CH011");
dutiesList[54] = new duties(2,1,"DH006");
dutiesList[55] = new duties(2,1,"DH019");
dutiesList[56] = new duties(2,1,"SH002");
dutiesList[57] = new duties(2,1,"SH003");
dutiesList[58] = new duties(2,1,"SH008");
dutiesList[59] = new duties(2,3,"PAD05");
dutiesList[60] = new duties(2,3,"FTD11");
dutiesList[61] = new duties(2,3,"FTD31");
dutiesList[62] = new duties(2,3,"BN005");
dutiesList[63] = new duties(2,3,"BN013");
dutiesList[64] = new duties(2,2,"DH020");
dutiesList[65] = new duties(0,1,"CA003");
dutiesList[66] = new duties(0,1,"CA025");
dutiesList[67] = new duties(0,1,"CA026");
dutiesList[68] = new duties(0,1,"CA027");
dutiesList[69] = new duties(0,1,"CA064");
dutiesList[70] = new duties(0,1,"DA002");
dutiesList[71] = new duties(0,1,"SA004");
dutiesList[72] = new duties(0,0,"DA010");
dutiesList[73] = new duties(0,0,"CA059");
dutiesList[74] = new duties(0,0,"CA060");
dutiesList[75] = new duties(0,2,"CA011");
dutiesList[76] = new duties(0,2,"CA012");
dutiesList[77] = new duties(0,2,"CA013");
dutiesList[78] = new duties(0,2,"CA014");
dutiesList[79] = new duties(0,2,"CA015");
dutiesList[80] = new duties(0,2,"CA016");
dutiesList[81] = new duties(0,2,"CA017");
dutiesList[82] = new duties(0,9,"CA054");
dutiesList[83] = new duties(0,2,"DA008");
dutiesList[84] = new duties(0,3,"CA040");
dutiesList[85] = new duties(0,3,"CA041");
dutiesList[86] = new duties(0,3,"CA042");
dutiesList[87] = new duties(0,3,"CA043");
dutiesList[88] = new duties(0,3,"CA058");
dutiesList[89] = new duties(0,3,"CA062");
dutiesList[90] = new duties(0,3,"CA063");
dutiesList[91] = new duties(0,3,"CA065");
dutiesList[92] = new duties(0,3,"CA066");
dutiesList[93] = new duties(0,3,"DA014");
dutiesList[94] = new duties(0,3,"SA010");
dutiesList[95] = new duties(0,3,"SA011");
dutiesList[96] = new duties(0,3,"SA019");
dutiesList[97] = new duties(0,3,"SA020");
dutiesList[98] = new duties(0,3,"CA057");
dutiesList[99] = new duties(0,10,"DA004");
dutiesList[100] = new duties(0,11,"DA001");
dutiesList[101] = new duties(0,11,"CA055");
dutiesList[102] = new duties(0,8,"CA008");
dutiesList[103] = new duties(0,8,"CA009");
dutiesList[104] = new duties(0,8,"CA061");
dutiesList[105] = new duties(0,8,"CA067");
dutiesList[106] = new duties(0,8,"DA007");
dutiesList[107] = new duties(0,8,"SA022");
dutiesList[108] = new duties(0,9,"CA054");
dutiesList[109] = new duties(0,6,"DA009");
dutiesList[110] = new duties(0,6,"DA015");
dutiesList[111] = new duties(0,6,"SA002");
dutiesList[112] = new duties(0,5,"CA001");
dutiesList[113] = new duties(0,5,"CA020");
dutiesList[114] = new duties(0,5,"CA021");
dutiesList[115] = new duties(0,5,"CA022");
dutiesList[116] = new duties(0,5,"CA023");
dutiesList[117] = new duties(0,5,"CA024");
dutiesList[118] = new duties(0,5,"CA028");
dutiesList[119] = new duties(0,5,"CA031");
dutiesList[120] = new duties(0,5,"CA032");
dutiesList[121] = new duties(0,5,"CA068");
dutiesList[122] = new duties(0,5,"DA006");
dutiesList[123] = new duties(0,5,"SA001");
dutiesList[124] = new duties(0,5,"SA013");









function printCC(a1,a2,english){
    if (c_code!= null){

         for (i=0; i<dutiesList.length; i++)
                   if (dutiesList[i].pcode==c_code.substr(0,5) ){
                         outCC(dutiesList[i].n1,dutiesList[i].n2,english)
                         return;
                   }
         
         outCC(a1,a2,english)

    }

}







function addJavascript(jsname) {
/*
new_element=document.createElement("script");
new_element.setAttribute("type","text/javascript");
new_element.setAttribute("src",jsname);
document.body.appendChild(new_element);
*/
}




function outCC(n1,n2,english){
    
if (english==null) english = true;

              if (english){
                  document.write("<font class=\"content_text\"><font style=\"FONT-SIZE: 9pt\" face=\"Arial\"><b>")
                  document.write(cc[n1][n2].nameE)
                  document.write("<br></b></font>")
              }
              else{
                  document.write("<font class=\"content_text\"><font style=\"FONT-SIZE: 9pt\" face=\"Arial\"><b>")
                  document.write(cc[n1][n2].nameC)
                  document.write("<br></b></font>")
              }

              document.write("<font style=\"FONT-SIZE: 7pt\" face=\"Arial\">")
              document.write(cc[n1][n2].file)
              document.write("</font></font>")
}

   
     






function postMsg3(c,e){

if ((urlVal.indexOf("&SASTEST=TRUE") >=0)||(urlVal.indexOf("&sastest=true") >=0)){

           if (e){
              document.write("<table border=\"1\" width=\"100%\" style=\"border-width: 0px\"><tr><td style=\"border-style: none; border-width: medium\" bgcolor=\"#FFFF00\">")
              document.write("<font face=\"Arial\">Announcement:<blockquote><ul>")
              document.write("<li><p>","TESTING MESSAGE: This is a DEMO MESSAGE-",c,"</p></li><br>")
              document.write("</ul></blockquote></font></td></tr></table>")
           }
           else {
              document.write("<table border=\"1\" width=\"100%\" style=\"border-width: 0px\"><tr><td style=\"border-style: none; border-width: medium\" bgcolor=\"#FFFF00\">")
              document.write("<font face=\"Arial\">通告 :<blockquote><ul>")
              document.write("<li><p>","訊息測試: 系統訊息測試-",c,"</p></li><br>")
              document.write("</ul></blockquote></font></td></tr></table>")
           }
}

else{

pass=false;

              for (i=0; i<msg.length; i++) 
                     if ((msg[i].code==8886) ||(msg[i].code==8887) ||(msg[i].code==8888) || (msg[i].code==c)) {
                           pass=true;
                           i=msg.length;
                    }

     if (pass){
           if (e){
              document.write("<table border=\"1\" width=\"100%\" style=\"border-width: 0px\"><tr><td style=\"border-style: none; border-width: medium\" bgcolor=\"#FFFF00\">")
              document.write("<font face=\"Arial\">Announcement:<blockquote><ul>")
              for (i=0; i<msg.length; i++) 
                     if ((msg[i].code==8888) ||(msg[i].code==8887) || (msg[i].code==c)) document.write("<li><p>",msg[i].msg,"</p></li><br>")
              document.write("</ul></blockquote></font></td></tr></table>")
           }
           else {
              document.write("<table border=\"1\" width=\"100%\" style=\"border-width: 0px\"><tr><td style=\"border-style: none; border-width: medium\" bgcolor=\"#FFFF00\">")
              document.write("<font face=\"Arial\">通告 :<blockquote><ul>")
              for (i=0; i<msg.length; i++) 
                     if ((msg[i].code==8888) ||(msg[i].code==8886) || (msg[i].code==c)) document.write("<li><p>",msg[i].msg,"</p></li><br>")
              document.write("</ul></blockquote></font></td></tr></table>")
           }

   }

}
}



function postMsg(c,e){

}

function postMsg2(c,e){


pass=false;

              for (i=0; i<msg.length; i++) 
                     if ((msg[i].code==8886) ||(msg[i].code==8887) ||(msg[i].code==8888) || (msg[i].code==c)) {
                           pass=true;
                           i=msg.length;
                    }

     if (pass){
           if (e){
document.write("	<table style=\"BORDER-COLLAPSE: collapse\" border=\"0\" width=\"140\">	");
document.write("	<tr style=\"font-family: 新細明體, 細明體, Tahoma, Arial; font-style: normal; font-weight: normal; color: #000000\">	");
document.write("	<td style=\"font-weight: normal; font-size: 102%; color: #000000; font-style: normal; font-family: Arial; text-decoration: none\" bgColor=\"#FF0000\">	");
document.write("	<p style=\"margin-left: 5px; margin-top: 0; margin-bottom: 0\">	");
document.write("	<font class=\"content_text\">	");
document.write("	<font style=\"font-size: 8pt; font-weight: 700\" color=\"#ffffff\">	");
document.write("	Programme Announcement</font></font></td>	");
document.write("	</tr>	");
document.write("	<tr style=\"font-family: 新細明體, 細明體, Tahoma, Arial; font-style: normal; font-weight: normal; color: #000000\">	");
document.write("	<td style=\"font-weight: normal; font-size: 102%; color: #FF0000; font-style: normal; font-family: Arial; text-decoration: none\">");

              for (i=0; i<msg.length; i++) 
                     if ((msg[i].code==8888) ||(msg[i].code==8887) || (msg[i].code==c)) document.write("<p>",msg[i].msg,"</p>")


document.write("	</td>	");
document.write("	</tr>	");
document.write("	</table>	");
document.write("	</font></font>	");


           }
           else {

document.write("	<table style=\"BORDER-COLLAPSE: collapse\" border=\"0\" width=\"140\">	");
document.write("	<tr style=\"font-family: 新細明體, 細明體, Tahoma, Arial; font-style: normal; font-weight: normal; color: #000000\">	");
document.write("	<td style=\"font-weight: normal; font-size: 102%; color: #000000; font-style: normal; font-family: Arial; text-decoration: none\" bgColor=\"#FF0000\">	");
document.write("	<p style=\"margin-left: 5px; margin-top: 0; margin-bottom: 0\">	");
document.write("	<font class=\"content_text\">	");
document.write("	<font style=\"font-size: 8pt; font-weight: 700\" color=\"#ffffff\">	");
document.write("	課程通告</font></font></td>	");
document.write("	</tr>	");
document.write("	<tr style=\"font-family: 新細明體, 細明體, Tahoma, Arial; font-style: normal; font-weight: normal; color: #000000\">	");
document.write("	<td style=\"font-weight: normal; font-size: 102%; color: #FF0000; font-style: normal; font-family: Arial; text-decoration: none\">");

              for (i=0; i<msg.length; i++) 
                     if ((msg[i].code==8888) ||(msg[i].code==8886) || (msg[i].code==c)) document.write("<p>",msg[i].msg,"</p>")

document.write("	</td>	");
document.write("	</tr>	");
document.write("	</table>	");
document.write("	</font></font>	");

           }

   }


}




function oldCode(x){

//       document.write(x);
//       document.write

}





function couseCodeIcon(){

 

 

       document.write("<img border=\"0\" src=\"http://www.ouhk.edu.hk/LIPACE/web/img/Side_Icon_Book.gif\" width=\"32\" height=\"32\" alt=\"Please quote this/these programme code(s) in the application for enrolment form\">");
}




function onlineEnrolIcon(){

       document.write("<img border=\"0\" src=\"http://www.ouhk.edu.hk/LIPACE/web/img/Side_Icon_Online.gif\" width=\"32\" height=\"32\" alt=\"OUHK LiPACE Online Enrolment Function. Click here for details.\">");
}

function cEFIcon(){
    if (cef_code!=null) {
       document.write("<a href=\"http://www.ouhk.edu.hk/WCM/?FUELAP_TEMPLATENAME=tcSingPage&ITEMID=CCLIPACECONTENT_1617019&lang=eng\" style=\"text-decoration: none\">")
       document.write("<img border=\"0\" src=\"http://www.ouhk.edu.hk/LIPACE/web/img/Side_Icon_CEF.gif\" width=\"32\" height=\"32\" alt=\"CEF\"></a>");
   }

}

function qFIcon(){

    addJavascript("http://www.ouhk.edu.hk/lipace_testing/staff/QF.jsp?code="+c_code,"head");



    if (qf_code!=null){ 
       document.write("<a href=\"http://www.ouhk.edu.hk/LIPACE/CEF/CEF2.html\" style=\"text-decoration: none\">")
       document.write("<img border=\"0\" src=\"http://www.ouhk.edu.hk/LIPACE/web/img/Side_Icon_QF.gif\" width=\"32\" height=\"32\" alt=\"資歷架構\"></a>");
   }
}






function couseCode(){


    if (eng){
       document.write("<font face=\"Arial\" size=\"1\">Programme Code:</font>");
       document.write("<font face=\"Arial\" style=\"font-size: 9pt\"><br>");
       if (c_other==null)
                 document.write(c_code);
       else 
                 document.write(c_other);
       document.write("</font>");
     }
     else{
       document.write("<font face=\"Arial\" size=\"1\">課程編號:</font>");
       document.write("<font face=\"Arial\" style=\"font-size: 9pt\"><br>");
       if (c_other==null)
                 document.write(c_code);
       else 
                 document.write(c_other);
       document.write("</font>");
     }

/************************下載課程報名表
    if (eng){


       document.write("</td></tr><tr><td><img border=\"0\" src=\"http://www.ouhk.edu.hk/LIPACE/web/Form.gif\" width=\"32\" height=\"32\" alt=\"Download OUHK LiPACE Enrolment Form. Click here for details.\">");
       document.write(" </td><td><a onClick=\"javascript: pageTracker._trackPageview('/admin/EnrollmentFrom.pdf');\" href=\"http://www.ouhk.edu.hk/LIPACE/Forms/LiPACE_Enrolment_Form.pdf\" style=\"text-decoration: none\"><font color=\"#000000\"  style=\"font-size: 9pt\">Enrollment Form Download</font></a></td></tr>");
    }
else{
       document.write("</td></tr><tr><td><img border=\"0\" src=\"http://www.ouhk.edu.hk/LIPACE/web/Form.gif\" width=\"32\" height=\"32\" alt=\"下載課程報名表. 詳情按此.\">");
       document.write(" </td><td><a onClick=\"javascript: pageTracker._trackPageview('/admin/EnrollmentFrom.pdf');\" href=\"http://www.ouhk.edu.hk/LIPACE/Forms/LiPACE_Enrolment_Form.pdf\" style=\"text-decoration: none\"><font color=\"#000000\"  style=\"font-size: 9pt\">下載課程報名表</font></a></td></tr>");
    }
*/

}





function onlineEnrol(){
    if (eng){
       document.write("<font face=\"Arial\" size=\"1\">Online Enrolment:</font>");
       document.write("<font face=\"Arial\" style=\"font-size: 9pt\"><br>");
       enrolNow(c_code,eng);
       document.write("</font>");
     }
     else{
       document.write("<font face=\"Arial\" size=\"1\">網上報讀:</font>");
       document.write("<font face=\"Arial\" style=\"font-size: 9pt\"><br>");
       enrolNow(c_code,eng);
       document.write("</font>");    
       }
}




function cEF(){
if (cef_code!=null) 
    if (eng){
       document.write("<font face=\"Arial\" size=\"1\">C.E. Fund Code:</font>");
       document.write("<font face=\"Arial\" style=\"font-size: 9pt\"><br>");
       document.write(cef_code);
       document.write("</font>");
     }
     else{
       document.write("<font face=\"Arial\" size=\"1\">持續進修基金課程編號:</font>");
       document.write("<font face=\"Arial\" style=\"font-size: 9pt\"><br>");
       document.write(cef_code);
       document.write("</font>");
    }
}





function qF(){


if (qf_code!=null) 
    if (eng){


       document.write("<font face=\"Arial\" size=\"1\">Q. F. Level:</font>");
       document.write("<font face=\"Arial\" style=\"font-size: 9pt\"><br>");
       document.write(qf_code);
       document.write("</font>");
     }
     else{
       document.write("<font face=\"Arial\" size=\"1\">資歷架構:</font>");
       document.write("<font face=\"Arial\" style=\"font-size: 9pt\"><br>");
       document.write(qf_code);
       document.write("</font>");
    }

}




function qF2(){
if (qf_code!=null) 
    if (eng){


       document.write("<font face=\"Arial\" size=\"1\">Q. F. Level:</font>");
       document.write("<font face=\"Arial\" style=\"font-size: 9pt\"><br>");
       document.write(qf_code);
       document.write("</font>");
     }
     else{
       document.write("<font face=\"Arial\" size=\"1\">資歷架構:</font>");
       document.write("<font face=\"Arial\" style=\"font-size: 9pt\"><br>");
       document.write(qf_code);
       document.write("</font>");
    }



if (c_code=="DA009"){


    if (eng){


       document.write("</td></tr><tr><td valign=\"top\"><img border=\"0\" src=\"http://www.ouhk.edu.hk/LIPACE/web/img/TT.gif\" width=\"32\" height=\"32\" alt=\"Course Timetable Download.(For active student only.)\">");
       document.write(" </td><td><a href=\"http://www.ouhk.edu.hk/WCM/?FUELAP_TEMPLATENAME=tcSingPage&ITEMID=CCLIPACECONTENT_57348561\" style=\"text-decoration: none\"><font color=\"#FFFFFF\"  style=\"font-size: 9pt\">Course Timetable Download<br></font><font color=\"#3366FF\"  style=\"font-size: 8pt\"></font></a></td></tr>");
     }

   else{
       document.write("</td></tr><tr><td valign=\"top\"><img border=\"0\" src=\"http://www.ouhk.edu.hk/LIPACE/web/img/TT.gif\" width=\"32\" height=\"32\" alt=\"下載上課時間表(只供在學學生)\">");
       document.write(" </td><td><a href=\"http://www.ouhk.edu.hk/WCM/?FUELAP_TEMPLATENAME=tcSingPage&ITEMID=CCLIPACECONTENT_57348561\" style=\"text-decoration: none\"><font color=\"#FFFFFF\"  style=\"font-size: 9pt\">下載上課時間表</font><font color=\"#3366FF\"  style=\"font-size: 8pt\"><br></font></a></td></tr>");

     }



}

else{
    if (eng){


       document.write("</td></tr><tr><td valign=\"top\"><img border=\"0\" src=\"http://www.ouhk.edu.hk/LIPACE/web/img/TT.gif\" width=\"32\" height=\"32\" alt=\"Course Timetable Download.(For active student only.)\">");
       document.write(" </td><td><a href=\"http://www.ouhk.edu.hk/WCM/?FUELAP_TEMPLATENAME=tcSingPage&ITEMID=CCLIPACECONTENT_57348561\" style=\"text-decoration: none\"><font color=\"#000000\"  style=\"font-size: 9pt\">Course Timetable Download<br></font><font color=\"#3366FF\"  style=\"font-size: 8pt\"></font></a></td></tr>");


//       document.write("</td></tr><tr><td valign=\"top\"><img border=\"0\" src=\"http://www.ouhk.edu.hk/LIPACE/web/img/TT.gif\" width=\"32\" height=\"32\" alt=\"Download Course Timetable.(For active student only.)\">");
//       document.write(" </td><td><a href=\"http://www.ouhk.edu.hk/WCM/?FUELAP_TEMPLATENAME=tcSingPage&ITEMID=CCLIPACECONTENT_57348561\" style=\"text-decoration: none\"><font color=\"#000000\"  style=\"font-size: 9pt\">Download Course timetable<br></font><font color=\"#3366FF\"  style=\"font-size: 8pt\">Course timetable can be downloaded one week before course commencement</font></a></td></tr>");

     }

   else{
       document.write("</td></tr><tr><td valign=\"top\"><img border=\"0\" src=\"http://www.ouhk.edu.hk/LIPACE/web/img/TT.gif\" width=\"32\" height=\"32\" alt=\"下載上課時間表(只供在學學生)\">");
       document.write(" </td><td><a href=\"http://www.ouhk.edu.hk/WCM/?FUELAP_TEMPLATENAME=tcSingPage&ITEMID=CCLIPACECONTENT_57348561\" style=\"text-decoration: none\"><font color=\"#000000\"  style=\"font-size: 9pt\">下載上課時間表</font><font color=\"#3366FF\"  style=\"font-size: 8pt\"><br></font></a></td></tr>");

//       document.write("</td></tr><tr><td valign=\"top\"><img border=\"0\" src=\"http://www.ouhk.edu.hk/LIPACE/web/img/TT.gif\" width=\"32\" height=\"32\" alt=\"下載上課時間表(只供在學學生)\">");
//       document.write(" </td><td><a href=\"http://www.ouhk.edu.hk/WCM/?FUELAP_TEMPLATENAME=tcSingPage&ITEMID=CCLIPACECONTENT_57348561\" style=\"text-decoration: none\"><font color=\"#000000\"  style=\"font-size: 9pt\">下載上課時間表</font><font color=\"#3366FF\"  style=\"font-size: 8pt\"><br>上課時間表可於開課前一星期下載</font></a></td></tr>");
     }

}

}


function ai(){
    document.getElementById("ai").style.color="#FF0000";
    location.href+="#Admission_Policy";
    
}


function discount(x){
    if (eng){
//             if (x) document.write("Available");
             if (x){
//group             document.write("Available<BR><a target=\"_blank\" onclick=\"pageTracker._trackEvent('Programme Link', 'Discount', c_code+' '+eng);\" href=\"http://www.ouhk.edu.hk/WCM/?FUELAP_TEMPLATENAME=tcSingPage&ITEMID=CCLIPACECONTENT_57562705&lang=eng&FUELAP_SITEDBID=SITE_-65\" style=\"text-decoration: none\"><font  style=\"FONT-SIZE: 9pt\" >Group Discount<BR> [Enroll on or before 20 Feb for Mar intake<br>(if applicable)]:<br>10% Discount Off</font></a>");
//JUN             document.write("Available<BR><a target=\"_blank\" onclick=\"pageTracker._trackEvent('Programme Link', 'Discount', c_code+' '+eng);\" href=\"http://www.ouhk.edu.hk/WCM/?FUELAP_TEMPLATENAME=tcSingPage&ITEMID=CCLIPACECONTENT_57562705&lang=eng&FUELAP_SITEDBID=SITE_-65\" style=\"text-decoration: none\"><font  style=\"FONT-SIZE: 9pt\" >Enroll before 1 MAY for JUN intake(if applicable):10% Discount Off</font></a>");

                    if (cef_code!=null) 
                                        document.write("<a title='Early-Bird: 10% Discount Off' target=\"_blank\" onclick=\"pageTracker._trackEvent('Programme Link', 'Discount', c_code+' '+eng);\" href=\"http://www.ouhk.edu.hk/WCM/?FUELAP_TEMPLATENAME=tcSingPage&ITEMID=CCLIPACECONTENT_57562705&lang=eng&FUELAP_SITEDBID=SITE_-65\" style=\"text-decoration: none\"><font  style=\"FONT-SIZE: 9pt\" >Only Early-Bird Discount Available</font></a>");
                    else document.write("Available<BR><a target=\"_blank\" onclick=\"pageTracker._trackEvent('Programme Link', 'Discount', c_code+' '+eng);\" href=\"http://www.ouhk.edu.hk/WCM/?FUELAP_TEMPLATENAME=tcSingPage&ITEMID=CCLIPACECONTENT_57562705&lang=eng&FUELAP_SITEDBID=SITE_-65\" style=\"text-decoration: none\"><font  style=\"FONT-SIZE: 9pt\" >Early-Bird:<BR> 10% Discount Off</font></a>");
             }else  document.write("Not Available");

     }
     else {
//             if (x) document.write("適用");
             if (x) {


                    if (cef_code!=null) document.write("<a title='預早報讀:9折優惠'  target=\"_blank\" onclick=\"pageTracker._trackEvent('Programme Link', 'Discount', c_code+' '+eng);\" href=\"http://www.ouhk.edu.hk/WCM/?FUELAP_TEMPLATENAME=tcSingPage&ITEMID=CCLIPACECONTENT_57562705&lang=chi&FUELAP_SITEDBID=SITE_-65\" style=\"text-decoration: none\"><font size=\"2\">只提供預早報讀優惠</font></a>");
                   else document.write("適用<br><a target=\"_blank\" onclick=\"pageTracker._trackEvent('Programme Link', 'Discount', c_code+' '+eng);\" href=\"http://www.ouhk.edu.hk/WCM/?FUELAP_TEMPLATENAME=tcSingPage&ITEMID=CCLIPACECONTENT_57562705&lang=chi&FUELAP_SITEDBID=SITE_-65\" style=\"text-decoration: none\"><font size=\"2\">預早報讀:<br>9折優惠 </font></a>");
//Group             document.write("適用<br><a target=\"_blank\" onclick=\"pageTracker._trackEvent('Programme Link', 'Discount', c_code+' '+eng);\" href=\"http://www.ouhk.edu.hk/WCM/?FUELAP_TEMPLATENAME=tcSingPage&ITEMID=CCLIPACECONTENT_57562705&lang=chi&FUELAP_SITEDBID=SITE_-65\" style=\"text-decoration: none\"><font size=\"2\">團體報讀<br>[2月20日或之前報讀三月課程(如適用)]:<br>9折優惠 </font></a>");
//JUN             document.write("適用<br><a target=\"_blank\" onclick=\"pageTracker._trackEvent('Programme Link', 'Discount', c_code+' '+eng);\" href=\"http://www.ouhk.edu.hk/WCM/?FUELAP_TEMPLATENAME=tcSingPage&ITEMID=CCLIPACECONTENT_57562705&lang=chi&FUELAP_SITEDBID=SITE_-65\" style=\"text-decoration: none\"><font size=\"2\">5月1日前報讀六月課程(如適用):9折優惠 </font></a>");
             }else  document.write("不適用");
      }   
}
