/////No need to edit beyond here
var winurl="http://info.hktdc.com/lahk/"


function checkForm() {
 
  formName = document.form1;
  var errStr="";
  
  if (trim(formName.fname.value).length <=0) {
   errStr=errStr+"Please input your given name\n";
   formName.fname.focus();
                                               }
              
  if (trim(formName.lname.value).length <=0) {
   errStr+="Please input your surname\n";
   formName.lname.focus();
  
                }
                
  if (trim(formName.company.value).length <=0) {
   errStr+="Please input your company\n";
   formName.company.focus();
              }
              
              
  if (trim(formName.email.value).length <=0) {
   errStr+="Please input your email\n";
   formName.email.focus();
              }                        
   else if (!IsValidEmail(formName.email.value)) {
   errStr+="Email invalid\n";
   formName.email.focus();
               } 
   
  if (trim(formName.tel.value).length <=0) {
   errStr+="Please input your Tel no.\n";
   formName.tel.focus();
              }             
  else if (!IsNumeric(trim(formName.tel.value))){
   errStr+="Tel no. should be numeric\n";
   formName.tel.focus();
                }
               
  
  if (trim(formName.fax.value).length >0) {
   if (!IsNumeric(trim(formName.fax.value))) {
   errStr+="Fax no. should be numeric \n";
   formName.fax.focus();
   
               }
             } 
  
 
  if(trim(errStr).length>0)
  {  
   alert(errStr);
   return false;
  }
  else
  {
  return true;
  }
  
  
       }
 
 function IsNumeric(sText)
 {
    var ValidChars = "0123456789 -";
    var IsNumber=true;
    var Char;
 
  
    for (i = 0; i < sText.length && IsNumber == true; i++) 
    { 
    Char = sText.charAt(i); 
    if (ValidChars.indexOf(Char) == -1) 
    {
    IsNumber = false;
    }
    }
    return IsNumber;
    
 }
 
 function trim(inputString) {
    if (typeof inputString != "string") { return inputString; }
    var retValue = inputString;
    var ch = retValue.substring(0, 1);
    while (ch == " ") {
    retValue = retValue.substring(1, retValue.length);
    ch = retValue.substring(0, 1);
    }
    ch = retValue.substring(retValue.length-1, retValue.length);
    while (ch == " ") {
    retValue = retValue.substring(0, retValue.length-1);
    ch = retValue.substring(retValue.length-1, retValue.length);
    }
    while (retValue.indexOf("  ") != -1) {
    retValue = retValue.substring(0, retValue.indexOf("  ")) + retValue.substring(retValue.indexOf("  ")+1, retValue.length);
    }
    return retValue;
 } 
 
 function IsValidEmail(asTempString)
 {
    var atCount = 0;
    var periodCount = 0;
    var strLen = asTempString.length;
    var i;
    var temp;
    var validchar= /^\w|[@.-]$/; //valid char = a-z, A-Z, @ , . , _ , -
 
    if (asTempString == '')
   return false;
   
    for (i = 0; i < strLen; i++)
    {
    temp = asTempString.substring(i, i+1);
    if (temp == '@') 
    atCount++;
    if (temp == '.') 
    periodCount++;
    if (!validchar.test(temp)){
 //  alert(temp)
   return false;
   }
    }
    if ((atCount == 1) && (periodCount > 0))
    return true;
    else
    return false;
 }


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_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_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 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_CheckFlashVersion(reqVerStr,msg){
  with(navigator){
    var isIE  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
    var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
    if (!isIE || !isWin){  
      var flashVer = -1;
      if (plugins && plugins.length > 0){
        var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
        desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
        if (desc == "") flashVer = -1;
        else{
          var descArr = desc.split(" ");
          var tempArrMajor = descArr[2].split(".");
          var verMajor = tempArrMajor[0];
          var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
          var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
          flashVer =  parseFloat(verMajor + "." + verMinor);
        }
      }
      // WebTV has Flash Player 4 or lower -- too low for video
      else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;

      var verArr = reqVerStr.split(",");
      var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
  
      if (flashVer < reqVer){
        if (confirm(msg))
          window.location = "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
      }
    }
  } 
}




function printTOP(){
document.write('<td><img src="'+winurl+'images/spacer.gif" /></td>');
document.write('<td align="center"><table width="950" border="0" cellpadding="0" cellspacing="0" id="main_a">');
document.write('<tr>');
document.write('<td><table width="950" border="0" cellpadding="0" cellspacing="0" id="menu_a">');
document.write('<tr valign="top">');
document.write('<td><img src="'+winurl+'images/lahk_06.jpg" alt="Logistics Award Hong Kong" width="288" height="95" align="absbottom" /></td>');
document.write('<td><img src="'+winurl+'images/lahk_03.gif" width="14" height="95" alt=""></td>');
document.write('<td><table width="648" border="0" cellpadding="0" cellspacing="0" id="menu_b">');

document.write('<tr valign="top">');
document.write('<tr>');
document.write('<td height="6"><img src="'+winurl+'images/spacer.gif" /></td>');
document.write('</tr>');
document.write('<td align="right"><table border="0" cellspacing="0" cellpadding="0">');
document.write('<tr class="header_a">');
document.write(' <td><a href="'+winurl+'index.htm"><img src="'+winurl+'images/lahk_07.gif" alt="Home" width="26" height="10" border="0" /></a></td>');

document.write('<td><img src="'+winurl+'images/s1.gif" width="15" height="15" /></td>');
document.write('<td><a href="http://hktradefairs.hktdc.com/" target="_blank"><img src="'+winurl+'images/lahk_09.gif" alt="HKTDC Exhibitions" width="87" height="10" border="0" /></a></td>');
document.write('<td><img src="'+winurl+'images/s1.gif" width="15" height="15" /></td>');
document.write('<td><a href="'+winurl+'sitemap.htm"><img src="'+winurl+'images/lahk_11.gif" alt="Site Map" width="40" height="10" border="0" /></a></td>');

document.write('<td><img src="'+winurl+'images/s1.gif" width="15" height="15" /></td>');

document.write('<td><a href="'+winurl+'chi/index.htm"><img src="'+winurl+'images/lahk_13.gif" alt="¤¤¤å" width="19" height="10" border="0" /></a></td>');

document.write('</tr></table></td></tr>');

document.write('<tr><td height="9"><img src="'+winurl+'images/spacer.gif" /></td></tr>');

document.write('<tr valign="top"><td align="left"><table border="0" cellspacing="0" cellpadding="0">');

document.write('<tr>');


document.write('<td><a href="'+winurl+'sitemap.htm" onmouseout="MM_swapImgRestore()" onmouseover="showit(0);MM_swapImage(\'Image_ic\',\'\',\''+winurl+'images/lahk_over_15.gif\',1);" ><img src="'+winurl+'images/lahk_15.gif" alt="Information Centre" name="Image_ic" width="179" height="35" border="0" id="Image8" /></a></td>');


document.write('<td><a href="'+winurl+'sitemap.htm" onmouseout="MM_swapImgRestore()" onmouseover="showit(1);MM_swapImage(\'Image_download\',\'\',\''+winurl+'images/lahk_over_16.gif\',1)"><img src="'+winurl+'images/lahk_16.gif" alt="Download" name="Image_download" width="135" height="35" border="0" id="Image_download" /></a></td>');


document.write('<td><a href="'+winurl+'sitemap.htm" onmouseout="MM_swapImgRestore()" onmouseover="showit(2);MM_swapImage(\'Image_aw\',\'\',\''+winurl+'images/lahk_over_17.gif\',1)"><img src="'+winurl+'images/lahk_17.gif" alt="Awardees" name="Image_aw" width="128" height="35" border="0" id="Image_aw" /></a></td>');

document.write('<td><a href="'+winurl+'sitemap.htm" onmouseout="MM_swapImgRestore()" onmouseover="showit(3);MM_swapImage(\'Image_mc\',\'\',\''+winurl+'images/lahk_over_18.gif\',1)"><img src="'+winurl+'images/lahk_18.gif" alt="Media Centre" name="Image_mc" width="130" height="35" border="0" id="Image_mc" /></a></td>');

document.write('</tr></table></td></tr><tr valign="top"><td height="20" align="left">');
document.writeln('<div id="describe" style="background-color:#ffffff;width:500;height:1px" onMouseover="clear_delayhide()" onMouseout="resetit(event)"></div>');
//document.writeln('<script language="JavaScript1.2">');
//document.writeln('var submenu=new Array()');
//document.writeln('submenu[0]="<font size=\'1.5\' face=\'Verdana\'><b><table  height=\'20\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' align=\'center\' style=\'color:#757879;text-align:center; \'><td align=\'center\' id=\'t1\' name-\'t1\' onmouseover=\'resetStyle(this);\' onmouseout=\'menuout(this);\' width=\'140\'><a style=\'color:#757879;\' onmouseover=\'ac(this)\' onmouseout=\'rc(this)\' style=\'text-decoration:none; \'  href=\'" + link_head + "awards_cate/awards_cate.htm\'>Award Categories </a> </td><td align=\'center\' id=\'t1\' name-\'t1\' onmouseover=\'resetStyle(this);\' onmouseout=\'menuout(this);\' width=\'150\'><a style=\'color:#757879;\' onmouseover=\'ac(this)\' onmouseout=\'rc(this)\' style=\'text-decoration:none; \'  href=\'" + link_head + "ass_criteria/ass_criteria.htm\'>Assessment Criteria</a> </td><td align=\'center\' id=\'t1\' name-\'t1\' onmouseover=\'resetStyle(this);\' onmouseout=\'menuout(this);\' width=\'130\'><a style=\'color:#757879;\' onmouseover=\'ac(this)\' onmouseout=\'rc(this)\' style=\'text-decoration:none; \'  href=\'" + link_head + "fact_sheet/fact_sheet.htm\'>Fact Sheet </a> </td><td align=\'center\' id=\'t1\' name-\'t1\' onmouseover=\'resetStyle(this);\' onmouseout=\'menuout(this);\' width=\'130\'><a style=\'color:#757879;\' onmouseover=\'ac(this)\' onmouseout=\'rc(this)\' style=\'text-decoration:none; \'  href=\'" + link_head + "photo_ga/photo_ga_2008.htm\'>Photo Gallery </a> </td><td align=\'center\' id=\'t1\' name-\'t1\' onmouseover=\'resetStyle(this);\' onmouseout=\'menuout(this);\' width=\'130\'><a style=\'color:#757879;\' onmouseover=\'ac(this)\' onmouseout=\'rc(this)\' style=\'text-decoration:none; \'  href=\'" + link_head + "timetable/timetable.htm\'>Timetable </a> </td><td align=\'center\' id=\'t1\' name-\'t1\' onmouseover=\'resetStyle(this);\' onmouseout=\'menuout(this);\' width=\'130\'><a style=\'color:#757879;\' onmouseover=\'ac(this)\' onmouseout=\'rc(this)\' style=\'text-decoration:none; \'  href=\'" + link_head + "contact/contact.htm\'>Contact us </a> </td></table></b></font>"');

//document.writeln('submenu[1]="<font size=\'1.5\' face=\'Verdana\'><b><table  height=\'20\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' align=\'left\' style=\'color:#757879;text-align:center; \'><td width=\'179\'>&nbsp;</td><td align=\'center\' id=\'t1\' name-\'t1\' onmouseover=\'resetStyle(this);\' onmouseout=\'menuout(this);\' width=\'110\'><a style=\'color:#757879;\' onmouseover=\'ac(this)\' onmouseout=\'rc(this)\' style=\'text-decoration:none; \'  href=\'" + link_head + "nom_form/nom_form.htm\'>Nomination Form </a> </td><td align=\'center\' id=\'t1\' name-\'t1\' onmouseover=\'resetStyle(this);\' onmouseout=\'menuout(this);\' width=\'120\'><a style=\'color:#757879;\' onmouseover=\'ac(this)\' onmouseout=\'rc(this)\' style=\'text-decoration:none; \'  href=\'" + link_head + "pm_leaflet/pm_leaflet.htm\'>Promotion Leaflet</a> </td><td align=\'center\' id=\'t1\' name-\'t1\' onmouseover=\'resetStyle(this);\' onmouseout=\'menuout(this);\' width=\'220\'><a style=\'color:#757879;\' onmouseover=\'ac(this)\' onmouseout=\'rc(this)\' style=\'text-decoration:none; \'  href=\'" + link_head + "supplementary/supplementary.htm\'>Supplementary Information Sheet </a> </td></table></b></font>"');

//document.writeln('submenu[2]="<font size=\'1.5\' face=\'Verdana\'><b><table  height=\'20\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' align=\'right\' style=\'color:#757879;text-align:center; \'><td align=\'center\' id=\'t1\' name-\'t1\' onmouseover=\'resetStyle(this);\' onmouseout=\'menuout(this);\' width=\'150\'><a style=\'color:#757879;\' onmouseover=\'ac(this)\' onmouseout=\'rc(this)\' style=\'text-decoration:none; \'  href=\'" + link_head + "list_award/list_award_2008.htm\'>List of awardees 2008 </a> </td><td align=\'center\' id=\'t1\' name-\'t1\' onmouseover=\'resetStyle(this);\' onmouseout=\'menuout(this);\' width=\'150\'><a style=\'color:#757879;\' onmouseover=\'ac(this)\' onmouseout=\'rc(this)\' style=\'text-decoration:none; \'  href=\'" + link_head + "list_award/list_award_2007.htm\'>List of awardees 2007</a> </td><td align=\'center\' id=\'t1\' name-\'t1\' onmouseover=\'resetStyle(this);\' onmouseout=\'menuout(this);\' width=\'150\'><a style=\'color:#757879;\' onmouseover=\'ac(this)\' onmouseout=\'rc(this)\' style=\'text-decoration:none; \'  href=\'" + link_head + "list_award/list_award_2006.htm\'>List of awardees 2006 </a> </td><td align=\'center\' id=\'t1\' name-\'t1\' onmouseover=\'resetStyle(this);\' onmouseout=\'menuout(this);\' width=\'150\'><a style=\'color:#757879;\' onmouseover=\'ac(this)\' onmouseout=\'rc(this)\' style=\'text-decoration:none; \'  href=\'" + link_head + "list_award/list_award_2005.htm\'>List of awardees 2005 </a> </td></table></b></font>"');

//document.writeln('submenu[3]="<font size=\'1.5\' face=\'Verdana\'><b><table  height=\'20\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' align=\'left\' style=\'color:#757879;text-align:center; \'><td width=\'442\' > &nbsp;</td><td align=\'center\' id=\'t1\' name-\'t1\' onmouseover=\'resetStyle(this);\' onmouseout=\'menuout(this);\' width=\'140\'><a style=\'color:#757879;\' onmouseover=\'ac(this)\' onmouseout=\'rc(this)\' style=\'text-decoration:none; \'  href=\'" + link_head + "press/press.htm\'>Press Contact </a> </td></table></b></font>"');

//document.writeln('var delay_hide=500');

//document.writeln('var menuobj=//document.getElementById? //document.getElementById("describe") : //document.all? //document.all.describe : //document.layers? //document.dep1.//document.dep2 : ""')



//document.writeln('function showit(which){');
//document.write('clear_delayhide()');
//document.write(';thecontent=(which==-1)? "" : submenu[which]');
//document.writeln('if (//document.getElementById||//document.all)');
//document.writeln('menuobj.innerHTML=thecontent');
//document.writeln('else if (//document.layers){');
//document.writeln('menuobj.//document.write(thecontent)');
//document.writeln('menuobj.//document.close()');
//document.writeln('}');
//document.writeln('}');

//document.writeln('function resetit(e){');
//document.writeln('if (//document.all&&!menuobj.contains(e.toElement))');
//document.writeln('delayhide=setTimeout("showit(-1)",delay_hide)');
//document.writeln('else if (//document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))');
//document.writeln('delayhide=setTimeout("showit(-1)",delay_hide)');
//document.writeln('}');

//document.writeln('function clear_delayhide(){');
//document.writeln('if (window.delayhide)');
//document.writeln('clearTimeout(delayhide)');
//document.writeln('}');

//document.writeln('function contains_ns6(a, b) {');
//document.writeln('while (b.parentNode)');
//document.writeln('if ((b = b.parentNode) == a)');
//document.writeln('return true;');
//document.writeln('return false;');
//document.writeln('}');

//document.writeln('function resetStyle(elem) {');
//document.writeln('elem.style.background = \'#F26522\';');
//document.writeln('elem.style.color = \'white\';');
//document.writeln('}');
//document.writeln('function menuout(elem) {');
//document.writeln('elem.style.background = \'white\';');
//document.writeln('}');

//document.writeln('function ac(elem) {');
//document.writeln('elem.style.color = \'white\';');
//document.writeln('}');
//document.writeln('function rc(elem) {');
//document.writeln('elem.style.color = \'#757879\';');
//document.writeln('}');
//document.writeln('</script>');
document.writeln('</td></tr></table></td></tr></table></td></tr><tr>');
document.writeln('<td><table width="950" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#aaaaaa">');
document.writeln('<tr><td><table width="950" border=0 cellPadding=0 cellSpacing=1><tbody><tr><td><script type="text/javascript">');
document.writeln('AC_FL_RunContent( \'codebase\',\'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0\',\'width\',\'948\',\'height\',\'280\',\'src\',\''+winurl+'banner\',\'quality\',\'high\',\'pluginspage\',\'http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\',\'movie\',\'http://info.hktdc.com/lahk/banner\' ); //end AC code');
document.writeln('</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="948" height="280">');
document.writeln('<param name="movie" value="'+winurl+'banner.swf" />');
document.writeln('<param name="quality" value="high" />');
document.writeln('<embed src="'+winurl+'banner.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="948" height="280"></embed>');
document.writeln('</object></noscript></td>');




}



