function MM_jumpMenu(targ,selObj,restore){ //v3.0

  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");

  if (restore) selObj.selectedIndex=0;

}


function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}


function MM_preloadImages() { //v3.0

  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

}



function MM_swapImgRestore() { //v3.0

  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;

}



function MM_findObj(n, d) { //v4.01

  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

  if(!x && d.getElementById) x=d.getElementById(n); return x;

}



function MM_swapImage() { //v3.0

  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)

   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}

}



function openwin(img,wh,ht)

{

var img

var pop1 = window.open("","Showcase","width="+wh+", height="+ht+",left=0,top=0,resizable=no,status=no,menubar=no,scrollbars=no,location=no, directories=no, toolbar=no");

pop1.focus();

pop1.document.write("<html><head><title>popup</title>");

pop1.document.write("</head>");

pop1.document.write("<body bgcolor=#B7EADC style='margin-left: 0px;margin-top: 0px;'>");

pop1.document.write("<img src=../../images/common/showcase/"+img+".jpg width="+wh+" height="+ht+" border=0>");

pop1.document.write("</body></html>");

}





function popinno()

{

var pop1 = window.open("","pag","width=300, height=120,left=0,top=0,resizable=no,status=no,menubar=no,scrollbars=no,location=no, directories=no, toolbar=no");

pop1.focus();

pop1.document.write("<html><head><title>A New InnoTech Thematic Portal</title></head>");

pop1.document.write("<body bgcolor=#B7EADC style='margin-left: 0px; margin-top: 25px;'>");

pop1.document.write("<p><font size=3>A new thematic portal and the Innovation Festival programme will be available by mid-2005.</font></p>");

pop1.document.write("</body></html>");

}

function popinnoc()

{

var pop1 = window.open("","pag","width=300, height=120,left=0,top=0,resizable=no,status=no,menubar=no,scrollbars=no,location=no, directories=no, toolbar=no");

pop1.focus();

pop1.document.write("<html><head><title>&#21109;&#26032;&#31185;&#25216;&#36039;&#35338;&#32178;&#38913;</title></head>");

pop1.document.write("<body bgcolor=#B7EADC style='margin-left: 0px; margin-top: 25px;'>");

pop1.document.write("<p><font size=3>&#19968;&#20491;&#20840;&#26032;&#30340;&#21109;&#26032;&#31185;&#25216;&#36039;&#35338;&#32178;&#38913;&#21450;&#21109;&#26032;&#31185;&#25216;&#31680;&#30340;&#31680;&#30446;&#35443;&#24773;, &#23559;&#26044;2005&#24180;&#20013;&#26092;&#25512;&#20986;</font></p>");

pop1.document.write("</body></html>");

}

function popinnog() 

{

var pop1 = window.open("","pag","width=300, height=120,left=0,top=0,resizable=no,status=no,menubar=no,scrollbars=no,location=no, directories=no, toolbar=no");

pop1.focus();

pop1.document.write("<html><head><title>&#21019;&#26032;&#31185;&#25216;&#36164;&#35759;&#32593;&#39029;</title></head>");

pop1.document.write("<body bgcolor=#B7EADC style='margin-left: 0px; margin-top: 25px;'>");

pop1.document.write("<p><font size=3>&#19968;&#20010;&#20840;&#26032;&#30340;&#21019;&#26032;&#31185;&#25216;&#36164;&#35759;&#32593;&#39029;&#21450;&#21019;&#26032;&#31185;&#25216;&#33410;&#30340;&#33410;&#30446;&#35814;&#24773;, &#23558;&#20110;2005&#24180;&#20013;&#26092;&#25512;&#20986;</font></p>");

pop1.document.write("</body></html>");

}



function poppag()

{

var pop1 = window.open("","pag","width=300, height=120,left=0,top=0,resizable=no,status=no,menubar=no,scrollbars=no,location=no, directories=no, toolbar=no");

pop1.focus();

pop1.document.write("<html><head><title>Patent Application Grant</title></head>");

pop1.document.write("<body bgcolor=#B7EADC style='margin-left: 0px; margin-top: 10px;'>");

pop1.document.write("<font size=3>Please attach a cheque, amounting to <strong>HK$3,000</strong>, made payable to <strong>'Hong Kong Productivity Council'</strong> upon submission of the application form. Applications without the cheque will not be processed.</p>");

pop1.document.write("</body></html>");

}

function poppagc()

{

var pop1 = window.open("","pag","width=300, height=120,left=0,top=0,resizable=no,status=no,menubar=no,scrollbars=no,location=no, directories=no, toolbar=no");

pop1.focus();

pop1.document.write("<html><head><title>&#23560; &#21033; &#30003; &#35531; &#36039; &#21161; &#35336; &#21123; </title></head>");

pop1.document.write("<body bgcolor=#B7EADC style='margin-left: 0px; margin-top: 20px;'>");

pop1.document.write("<p><font size=3>&#35531; &#26044; &#36958; &#20132; &#30003; &#35531; &#26360; &#26178; &#22846; &#38468; &#19968; &#24373; &#21123; &#32218; &#25903; &#31080; &#65292; &#25903; &#31080; &#25260; &#38957; &#23531; &#19978;<strong>&#12300;&#39321; &#28207; &#29983; &#29986; &#21147; &#20419; &#36914; &#23616; &#12301;</strong>&#65292;&#37504; &#30908; &#28858; &#28207; &#24163; <strong>$3,000</strong> &#12290; &#26410; &#26377; &#25903; &#31080; &#22846; &#38468; &#30340; &#30003; &#35531; &#26360; &#65292; &#23559; &#19981; &#29554; &#21463; &#29702;&#12290;</font></p>");

pop1.document.write("</body></html>");

}

function poppagg()

{

var pop1 = window.open("","pag","width=300, height=120,left=0,top=0,resizable=no,status=no,menubar=no,scrollbars=no,location=no, directories=no, toolbar=no");

pop1.focus();

pop1.document.write("<html><head><title>&#19987; &#21033; &#30003; &#35831; &#36164; &#21161; &#35745; &#21010; </title></head>");

pop1.document.write("<body bgcolor=#B7EADC style='margin-left: 0px; margin-top: 20px;'>");

pop1.document.write("<p><font size=3>&#35831; &#20110; &#36882; &#20132; &#30003; &#35831; &#20070; &#26102; &#22841; &#38468; &#19968; &#24352; &#21010; &#32447; &#25903; &#31080; &#65292; &#25903; &#31080; &#25260; &#22836; &#20889; &#19978;<strong>&#8220;&#39321; &#28207; &#29983; &#20135; &#21147; &#20419; &#36827; &#23616;&#8221;</strong>&#65292;&#38134; &#30721; &#20026; &#28207; &#24065; <strong>$3,000</strong> &#12290; &#26410; &#26377; &#25903; &#31080; &#22841; &#38468; &#30340; &#30003; &#35831; &#20070; &#65292; &#23558; &#19981; &#33719; &#21463; &#29702;&#12290;</font></p>");

pop1.document.write("</body></html>");

}



function formcheck(myForm) {

    var selectedReg = false;

    if(myForm.lang.value=="") {

        alert("Error: Invalid form, please call administrator");

        return false;

    }

    for(var i=0;i<myForm.reg.length;i++) {

        if(myForm.reg[i].checked) {

            selectedReg = true;

            break;

        }

    }

    if(!selectedReg) {

        alert("Please select a suggestion");

        myForm.reg[0].focus();

        return false;

    }

    if(myForm.org.value=="") {

        alert("Please enter organisation name ");

        myForm.org.focus();

        return false;

    }

    if(myForm.site.value=="") {

        alert("Please enter site name");

        myForm.site.focus();

        return false;

    }

    if(myForm.url.value=="http://") {

        alert("Please enter URL ");

        myForm.url.focus();

        return false;

    }

    if(myForm.person.value=="") {

        alert("Please enter contact person");

        myForm.person.focus();

        return false;

    }

    if(myForm.email.value=="") {

        alert("Please enter email address");

        myForm.email.focus();

        return false;

    }

    if(myForm.descri.value=="") {

        alert("Please enter site description");

        myForm.descri.focus();

        return false;

    }

}

    function lang1()

   {

     if (window.location.pathname.indexOf("/en/") != -1)

     {   

		 window.location.replace(location.pathname.replace("/en/","/ch/"));

     }

     else if (window.location.pathname.indexOf("/ch/") != -1)

     {   

		 window.location.replace(location.pathname.replace("/ch/","/en/"));     

      }

     else if (window.location.pathname.indexOf("\en\\") != -1)

     {  

     	window.location.replace(location.pathname.replace("\\en\\","\\ch\\"));     

      }

     else if (window.location.pathname.indexOf("\\ch\\") != -1)

     {   

         window.location.replace(location.pathname.replace("\\ch\\","\\en\\"));     

      }

   }



   function lang2()

   {

     if (location.pathname.indexOf("/en/") != -1)

     {   location.replace(location.pathname.replace("/en/","/gb/"));

     }

     else if (location.pathname.indexOf("/gb/") != -1)

     {   location.replace(location.pathname.replace("/gb/","/en/"));     

      }

     else if (location.pathname.indexOf("\\en\\") != -1)

     {  

     	location.replace(location.pathname.replace("\\en\\","\\gb\\"));     

      }

     else if (location.pathname.indexOf("\\gb\\") != -1)

     {   

         location.replace(location.pathname.replace("\\gb\\","\\en\\"));     

      }

   }



   function lang3()

   {

     if (location.pathname.indexOf("/ch/") != -1)

     {  location.replace(location.pathname.replace("/ch/","/gb/"));

     }

     else if (top.location.pathname.indexOf("/gb/") != -1)

     {   location.replace(location.pathname.replace("/gb/","/ch/"));     

      }

     else if (location.pathname.indexOf("\\ch\\") != -1)

     {  

     	location.replace(location.pathname.replace("\\ch\\","\\gb\\"));     

      }

     else if (location.pathname.indexOf("\\gb\\") != -1)

     {   

         location.replace(location.pathname.replace("\\gb\\","\\ch\\"));     

      }

   }

function switchMonth(mouth)

{

	switch(mouth)

	{

		case 1 : strmm = "January";

		break;

		case 2 : strmm = "February";

		break;

		case 3 : strmm = "March";

		break;

		case 4 : strmm = "April";

		break;

		case 5 : strmm = "May";

		break;

		case 6 : strmm = "June";

		break;

		case 7 : strmm = "July";

		break;

		case 8 : strmm = "August";

		break;

		case 9 : strmm = "September";

		break;

		case 10 : strmm = "October";

		break;

		case 11 : strmm = "November";

		break;

		case 12 : strmm = "December";

		break;

	}

	return strmm;

}



function lastmodify()

{

var today = new Date(document.lastModified);

var dd=today.getDate();

var mm=today.getMonth()+1;

var yy=today.getFullYear();

if ( yy <= 1999 ) {

yy=yy+100;

}

if((document.location.pathname.indexOf("/ch/") != -1)||(document.location.pathname.indexOf("\\ch\\") != -1))

	{

	document.write( yy +" &#24180; "+ mm +" &#26376; " + dd +" &#26085; ");

	}

else if ((document.location.pathname.indexOf("/en/") != -1)||(document.location.pathname.indexOf("\\en\\") != -1))

	{

	document.write( dd +" " + switchMonth(mm) +" " + yy);

	}

else if ((document.location.pathname.indexOf("/gb/") != -1)||(document.location.pathname.indexOf("\\gb\\") != -1))

{

	document.write( yy +" &#24180; "+ mm +" &#26376; " + dd +" &#26085; ");

}

}

function sbar(st) {

 st.style.backgroundColor = "#D1E3E1";

}

function cbar(st) {

 st.style.backgroundColor = "";

}

function stat(){

var a = pageYOffset+window.innerHeight-document.bar.document.height-1

document.bar.top = a

setTimeout('stat()',2)

}

function fix(){

nome=navigator.appName

if(nome=='Netscape'){

stat()

}

else{

var a=document.body.scrollTop+document.body.clientHeight-document.all.bar.offsetHeight+15

bar.style.top = a

	}

}



var index = 5 

link = new Array();

linkg = new Array();

linke =  new Array();

text = new Array();

textg = new Array();

texte = new Array();

link[0] ='http://www.innotech.gov.hk/en/inno_forces/innovationfestival/index.html target="_blank"'

link[1] ='http://www.hksspc.gov.hk target="_blank"'

link[2] ='http://www.innotech.gov.hk/en/inno_forces/research.development.centre.html target="_blank"'

link[3] ='news/hot.htm#scl'

link[4] ='news/hot.htm#hkas'



linkg[0] ='http://www.innotech.gov.hk/tc/inno_forces/innovationfestival/index.html target="_blank"'

linkg[1] ='http://www.hksspc.gov.hk target="_blank"'

linkg[2] ='http://www.innotech.gov.hk/tc/inno_forces/research.development.centre.html target="_blank"'

linkg[3] ='news/hot.htm#scl'

linkg[4] ='news/hot.htm#hkas'



linke[0] ='http://www.innotech.gov.hk/sc/inno_forces/innovationfestival/index.html target="_blank"'

linke[1] ='http://www.hksspc.gov.hk target="_blank"'

linke[2] ='http://www.innotech.gov.hk/sc/inno_forces/research.development.centre.html target="_blank"'

linke[3] ='news/hot.htm#scl'

linke[4] ='news/hot.htm#hkas'





text[0] ='&#21109; &#26032; &#31185; &#25216; &#31680;'



text[1] ='&#39321; &#28207; &#23416; &#29983; &#31185; &#23416; &#27604; &#36093;'

text[2] ='&#39321; &#28207; &#30740; &#30332; &#20013; &#24515;'

text[3] ='&#27161; &#20934; &#21450; &#26657; &#27491; &#23526; &#39511; &#25152;'

text[4] ='&#39321; &#28207; &#35469; &#21487; &#34389;'



textg[0] ='&#21019; &#26032; &#31185; &#25216; &#33410;'

textg[1] ='&#39321; &#28207; &#23398; &#29983; &#31185; &#23398; &#27604; &#36187;'

textg[2] ='&#39321; &#28207; &#30740; &#21457; &#20013; &#24515;'

textg[3] ='&#26631; &#20934; &#21450; &#26657; &#27491; &#23454; &#39564; &#25152;'

textg[4] ='&#39321; &#28207; &#35748; &#21487; &#22788;'



texte[0] ='Innovation Festival'

texte[1] ='Hong Kong Student Science Project Competition'

texte[2] ='Hong Kong R&amp;D Centres'

texte[3] ='Stardards and Calibration Laboratory'

texte[4] ='Hong Kong Accreditation Service'



