/*
  --javascript 函数 (来自echinapack.web 中的V2版)
       js_T1     'LOGO,BANNER
       js_T2     'Main Menu
       js_T3_B   '
       js_T3_B_1
       js_T3_E   '底部


  --javascript 函数 (来自pulpmold.web)
       js_CheckSKeyWord(strName)  --#2005.01.20# 检测搜索栏中关键字段有没有填入
	   
	   MM_reloadPage
	   MM_showHideLayers
	   MM_swapImgRestore
	   MM_preloadImages
	   MM_findObj
	   MM_swapImage

       jsEnBanner
	   jsEnTopNavigator
	   jsEnLocation
	   jsRgtPic
	   jsEnAboutUs
	   jsEnContactUs
	   jsEnBottNavigator
	   jsEnAddr
  -->
*/
function js_CheckSKeyWord()
{
//	var o_Form=eval(strName);
	var o_Form=document.getElementById("keysearch");
	var b_return=true;
	var b_submit=false;
	var msg="";
	if(js_alltrim(o_Form.CodeName.value)=="")
	{
		msg += "Please enter a keyword!\n";
	}
	if (msg != "")
	{
		alert("\n" + msg);
		b_return=false;
		o_Form.CodeName.focus();
	}
	else
	{
		b_submit=true;
	}
	if(b_submit)
	{
	  o_Form.submit();
	}
	return b_return;
}	


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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_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 jsEnBanner(strCode,strPath)
{
	var strCode;
	var strLb=strCode.substr(0,2);
	
	if(strPath=="default")
	{
		strPath="../";
	}	
	
	document.write('<TABLE cellSpacing="0" cellPadding=0" width="780px" border="0"  align="center"  class="MaxTable" height="100%"><tr valign="top"><td align="center" height="100%" class="BorderTd1">');
/*
	document.write('<table border="0" cellpadding="0" cellspacing="0" height="103" width="778px" id="BcTable1" align="center">');
	document.write('<tr>');
	document.write('<td ><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH="778px" HEIGHT="120px"><PARAM NAME="movie" VALUE="'+strPath+'images/banner.swf"> <PARAM NAME="quality" VALUE="high"> <PARAM NAME="bgcolor" VALUE="#FFFFFF"> <EMBED src="'+strPath+'images/banner.swf" quality="high" bgcolor="#FFFFFF"  WIDTH="778px" height="120px"  TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT></td>');
	document.write('</tr>');
	document.write('</table>');	
*/

// -- top  
	document.write('<TABLE align="center" cellSpacing="0"  cellPadding="0"  width="100%"  border="0" height="63px"  >');	
	document.write('<TR valign="top">');	
	document.write('<TD width="495px" height="63px" align="center" >');	
	document.write('<img border="0" src="'+strPath+'images/top_bgl.jpg" usemap="#Map1">');	
	document.write('<map name="Map1">');
	document.write('<area alt="Links" coords="130,14,160,30" href="#" shape="RECT">');
	document.write('<area alt="FAQ" coords="180,14,210,30" href="#" shape="RECT">');
	document.write('<area alt="Help" coords="230,14,260,30" href="#" shape="RECT">');
	document.write('<area alt="Sitemap" coords="280,14,320,30" href="#" shape="RECT">');
	document.write('</map>');
	document.write('</TD>');
		
	document.write('<form name="keysearch" method="post" action="'+strPath+'products/products_search.asp">');
	document.write('<TD style="padding-bottom:3px;padding-top:30px" width="249" height="63px" align="right" background="'+strPath+'images/top_bgr.jpg">');	
	document.write('<input type="Text" name="CodeName" maxlength="20" size="20">&nbsp;');
	document.write('</TD>');	
	document.write('<TD width="36" height="63px" align="center">');	
	document.write('<img width="36" height="63px" border="0" src="'+strPath+'images/top_bgr1.jpg" usemap="#Map2">');	
	document.write('<map name="Map2">');
	document.write('<area alt="Search" coords="3,30,16,48" onclick="javascript:return js_CheckSKeyWord();" shape="RECT">');
	document.write('</map>');
	document.write('</TD>');	
	document.write('</form>');
	
	document.write('</TR>');	
	document.write('</TABLE>');	

	
	
// --Banner 
	document.write('<TABLE align="center" cellSpacing="0"  cellPadding="0"  width="100%"  border="0" height="103"  >');	
	document.write('<TR valign="top">');	
	document.write('<TD width="780px" height="204px" align="center" background="'+strPath+'images/banner.jpg">');	
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="778px" height="204px" align="middle">');	
	document.write('<param name="allowScriptAccess" value="sameDomain" />');	
	document.write('<param name="movie" value="'+strPath+'images/banner.swf" />');	
	document.write('<param name="quality" value="high" />');	
	document.write('<param name="bgcolor" value="#ffffff" />');	
	document.write('<param name="wmode" value="transparent" />');	
	document.write('<embed src="'+strPath+'images/banner.swf" wmode="transparent" quality="high" bgcolor="#ffffff" width="778px" height="204px" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');	
	document.write('</object>');	
	document.write('</TD>');	
	document.write('</TR>');	
	document.write('</TABLE>');	

// -- one pixel gap 
	document.write('<TABLE align="center" cellSpacing="0"  cellPadding="0"  width="100%"  border="0" height="1px"  >');	
	document.write('<TR valign="top">');	
	document.write('<TD width="100%" height="1px" align="center" >');	
	document.write('</TD>');	
	document.write('</TR>');	
	document.write('</TABLE>');	

}

//图片菜单
function jsEnTopNavigator(strCode,strPath)
{
	var strCode;
	var strLb=strCode.substr(0,2);
	
	if(strPath=="default")
	{
		strPath="../";
	}
	
	//background-color:#009241;
		
	document.write('<tr>');
	document.write('<td valign="top" colspan="2" align="center" width="100%">');
	document.write('<TABLE  border=0 cellPadding=0 cellSpacing=0 height=24 width="100%">');
	document.write('<TR>');
	document.write('<TD style="background-color:#B50000;font-family:Verdana;color:#ffffff;" width="196px" >&nbsp;</TD>');
	document.write('<td width="1px"></td>');
	document.write('<TD style="background-color:#B50000;font-family:Verdana;color:#ffffff;" width="97px" align="center" onclick="window.location.href=\''+strPath+'about.asp\'" onmouseout="this.style.backgroundColor=\'#B50000\';this.style.color=\'#ffffff\';" onmouseover="this.style.backgroundColor=\'#E6ECF0\';this.style.color=\'#000000\';this.style.cursor=\'hand\';">');
	document.write('<font style="font-size:9pt">About us</font>');
	document.write('</TD>');
	document.write('<td width="1px"></td>');
	document.write('<TD style="background-color:#B50000;font-family:Verdana;color:#ffffff;" width="97px" align="center" onclick="window.location.href=\''+strPath+'products/products.asp\'" onmouseout="this.style.backgroundColor=\'#B50000\';this.style.color=\'#ffffff\';" onmouseover="this.style.backgroundColor=\'#E6ECF0\';this.style.color=\'#000000\';this.style.cursor=\'hand\';">');
	document.write('<font style="font-size:9pt">Products</font>');
	document.write('</TD>');
	document.write('<td width="1px"></td>');
	document.write('<TD style="background-color:#B50000;font-family:Verdana;color:#ffffff;" width="97px" align="center" onclick="window.location.href=\''+strPath+'order.asp\'" onmouseout="this.style.backgroundColor=\'#B50000\';this.style.color=\'#ffffff\';" onmouseover="this.style.backgroundColor=\'#E6ECF0\';this.style.color=\'#000000\';this.style.cursor=\'hand\';">');
	document.write('<font style="font-size:9pt">Order</font>');
	document.write('</TD>');
	document.write('<td width="1px"></td>');
	document.write('<TD style="background-color:#B50000;font-family:Verdana;color:#ffffff;" width="97px" align="center" onclick="window.location.href=\''+strPath+'factory.asp\'" onmouseout="this.style.backgroundColor=\'#B50000\';this.style.color=\'#ffffff\';" onmouseover="this.style.backgroundColor=\'#E6ECF0\';this.style.color=\'#000000\';this.style.cursor=\'hand\';">');
	document.write('<font style="font-size:9pt">Factory</font>');
	document.write('</TD>');
	document.write('<td width="1px"></td>');
	document.write('<TD style="background-color:#B50000;font-family:Verdana;color:#ffffff;" width="97px" align="center" onclick="window.location.href=\''+strPath+'contact.asp\'" onmouseout="this.style.backgroundColor=\'#B50000\';this.style.color=\'#ffffff\';" onmouseover="this.style.backgroundColor=\'#E6ECF0\';this.style.color=\'#000000\';this.style.cursor=\'hand\';">');
	document.write('<font style="font-size:9pt">Contact us</font>');
	document.write('</TD>');
	document.write('<td width="1px"></td>');
	document.write('<TD style="background-color:#B50000;font-family:Verdana;color:#ffffff;" width="196px" >&nbsp;</TD>');

/*
	document.write('<TD style="background-color:#009241;font-family:Verdana;color:#ffffff;" width="97px" align="center" onclick="window.location.href=\'en_gsjj.htm\'" onmouseout="this.style.backgroundColor=\'#009241\';this.style.color=\'#ffffff\';" onmouseover="this.style.backgroundColor=\'#E6ECF0\';this.style.color=\'#000000\';this.style.cursor=\'hand\';">');
	document.write('<font style="font-size:9pt">Company</font>');
	document.write('</TD>');
	document.write('<td width="1px"></td>');
	document.write('<TD style="background-color:#009241;font-family:Verdana;color:#ffffff;" width="97px"  onmouseout="this.style.backgroundColor=\'#009241\';this.style.color=\'#ffffff\';MM_showHideLayers(\'menu1\',\'\',\'hide\')"   onmouseover="this.style.backgroundColor=\'#E6ECF0\';this.style.color=\'#000000\';this.style.cursor=\'default\';MM_showHideLayers(\'menu1\',\'\',\'show\')">');
	document.write('<DIV id=menu1 style="HEIGHT: 100px; POSITION: absolute;TOP: 144px; VISIBILITY: hidden; WIDTH: 98px; Z-INDEX: 10">');
	document.write('<TABLE bgColor="#ffffff" border=0 cellPadding=1 cellSpacing=1  width="100%">');
	document.write('<TR>');
	document.write('<TD style="background-color:#009241;font-family:Verdana;color:#ffffff;" height=22 onclick="window.location.href=\'en_mssb_scx.htm\'" onmouseout="this.style.backgroundColor=\'#009241\';this.style.color=\'#ffffff\';" onmouseover="this.style.backgroundColor=\'#E6ECF0\';this.style.color=\'#000000\';this.style.cursor=\'hand\';">');
	document.write('<font style="font-size:9pt;">Advantages</font>');
	document.write('</TD>');
	document.write('</TR>');
	document.write('<TR>');
	document.write('<TD style="background-color:#009241;font-family:Verdana;color:#ffffff;" height=22 onclick="window.location.href=\'en_mssb_sbcs.htm\'" onmouseout="this.style.backgroundColor=\'#009241\';this.style.color=\'#ffffff\';" onmouseover="this.style.backgroundColor=\'#E6ECF0\';this.style.color=\'#000000\';this.style.cursor=\'hand\';">');
	document.write('<font style="font-size:9pt;">Parameters</font>');
	document.write('</TD>');
	document.write('</TR>');
	document.write('<TR>');
	document.write('<TD style="background-color:#009241;font-family:Verdana;color:#ffffff;" height=22 onclick="window.location.href=\'en_mssb_msfj.htm\'" onmouseout="this.style.backgroundColor=\'#009241\';this.style.color=\'#ffffff\';" onmouseover="this.style.backgroundColor=\'#E6ECF0\';this.style.color=\'#000000\';this.style.cursor=\'hand\';">');
	document.write('<font style="font-size:9pt;">Accessorial Facilities</font>');
	document.write('</TD>');
	document.write('</TR>');
	document.write('</TABLE>');
	document.write('</DIV>');
	document.write('&nbsp;&nbsp;&nbsp;&nbsp;');
	document.write('<font style="font-size:9pt">Equipment</font>');
	document.write('</TD>');
	document.write('<td width="1px"></td>');
	document.write('<TD  style="background-color:#009241;font-family:Verdana;color:#ffffff;" width="97px"  onmouseout="this.style.backgroundColor=\'#009241\';this.style.color=\'#ffffff\';MM_showHideLayers(\'menu2\',\'\',\'hide\')" onmouseover="this.style.backgroundColor=\'#E6ECF0\';this.style.color=\'#000000\';this.style.cursor=\'default\';MM_showHideLayers(\'menu2\',\'\',\'show\')" >');
	document.write('<DIV id=menu2 style="HEIGHT: 100px; POSITION: absolute; TOP: 144px; VISIBILITY: hidden; WIDTH: 98px; Z-INDEX: 10">');
	document.write('<TABLE bgColor="#ffffff" border=0 cellPadding=1 cellSpacing=1  width="100%">');
	document.write('<TR>');
	document.write('<TD style="background-color:#009241;font-family:Verdana;color:#ffffff;" height=22 onclick="window.location.href=\'en_scjs_gylc.htm\'" onmouseout="this.style.backgroundColor=\'#009241\';this.style.color=\'#ffffff\';" onmouseover="this.style.backgroundColor=\'#E6ECF0\';this.style.color=\'#000000\';this.style.cursor=\'hand\';">');
	document.write('<font style="font-size:9pt">Flow Chart</font>');
	document.write('</TD>');
	document.write('</TR>');
	document.write('</TABLE>');
	document.write('</DIV>');
	document.write('&nbsp;&nbsp;&nbsp;');
	document.write('<font style="font-size:9pt">Technology</font>');
	document.write('</TD>');
	document.write('<td width="1px"></td>');
	document.write('<TD style="background-color:#009241;font-family:Verdana;color:#ffffff;" width="97px" align="center" onclick="window.location.href=\'en_scyl.htm\'" onmouseout="this.style.backgroundColor=\'#009241\';this.style.color=\'#ffffff\';" onmouseover="this.style.backgroundColor=\'#E6ECF0\';this.style.color=\'#000000\';this.style.cursor=\'hand\';">');
	document.write('<font style="font-size:9pt">Materials</font>');
	document.write('</TD>');
	document.write('<td width="1px"></td>');
	document.write('<TD style="background-color:#009241;font-family:Verdana;color:#ffffff;" width="97px" align="center" onclick="window.location.href=\'en_mscp.htm\'" onmouseout="this.style.backgroundColor=\'#009241\';this.style.color=\'#ffffff\';" onmouseover="this.style.backgroundColor=\'#E6ECF0\';this.style.color=\'#000000\';this.style.cursor=\'hand\';">');
	document.write('<font style="font-size:9pt">Products</font>');
	document.write('</TD>');
	document.write('<td width="1px"></td>');
	document.write('<TD style="background-color:#009241;font-family:Verdana;color:#ffffff;" width="97px" align="center" onclick="window.location.href=\'en_lxwm.htm\'" onmouseout="this.style.backgroundColor=\'#009241\';this.style.color=\'#ffffff\';" onmouseover="this.style.backgroundColor=\'#E6ECF0\';this.style.color=\'#000000\';this.style.cursor=\'hand\';">');
	document.write('<font style="font-size:9pt">Contact Us</font>');
	document.write('</TD>');
	document.write('<td width="1px"></td>');
	document.write('<TD style="background-color:#009241;font-family:Verdana;color:#ffffff;" width="93px" align="center" onclick="window.location.href=\'../chinese/cn_index.htm\'" onmouseout="this.style.backgroundColor=\'#009241\';this.style.color=\'#ffffff\';cnpic.src=\''+strPath+'images/chinese_1.gif\';" onmouseover="this.style.backgroundColor=\'#E6ECF0\';this.style.color=\'#000000\';this.style.cursor=\'hand\';cnpic.src=\''+strPath+'images/chinese_2.gif\';">');
	document.write('<img name="cnpic" src="'+strPath+'images/chinese_1.gif"  >');
	document.write('</TD>');
*/	
	document.write('</TR>');
	document.write('</TABLE>');
	document.write('</td>');
	document.write('</tr>');
}

function jsEnLocation(strCode,strPath){
	if(strPath=="default")
	{
		strPath="../";
	}
	var strLb=strCode.substr(0,4);

	var strStr1='<tr valign="middle"><td id="BcLocation" colspan="2" height="25px"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td><font class="fontLocation">';
	var strStr2='</font></td><td width="*" align="right" class="fontLocation"><a target="_blank" href="'+strPath+'/v2008"><font style="color:#ff0000;">[&nbsp;Go Version 2008&nbsp;]</font></a>&nbsp;&nbsp;<a target="_blank" href="'+strPath+'/v2007"><font style="color:#ff0000;">[&nbsp;Go Version 2007&nbsp;]</font></a></td><td width="50px"></td></tr></table></td></tr>';
	var strStr3='';
	

	switch(strLb)
	{
		
		case "0101":
			strStr3='&nbsp;Location: &nbsp;About us';
			break;
		case "0201":
			strStr3='&nbsp;Location: &nbsp;Products ';
			break;
		case "0202":
			strStr3='&nbsp;Location: &nbsp;Products Search';
			break;
		case "0301":
			strStr3='&nbsp;Location: &nbsp;Order';
			break;
		case "0401":
			strStr3='&nbsp;Location: &nbsp;Contact us ';
			break;
		case "0501":
			strStr3='&nbsp;Location: &nbsp;Factory';
			break;
	}
	//调高度
	//document.write('<tr><td colspan="2" height="22px"></td></tr>');
	//位置栏
	document.write(strStr1+strStr3+strStr2);

}

function jsRgtPic(strCode,strPath)
{
	var strCode;
	var strPicName;
	var fFlash,fBg,strBgName;
	fFlash = false;
	fBg = false;
	strBgName = "";
	
	if(strPath=="default")
	{
		strPath="../";
	}	
	
	var strLb=strCode.substr(0,2);

	switch(strLb)
	{
		
		case "01":
			fBg = true;
			strPicName='earth.gif';  //About1.jpg, earth.swf, 
			strBgName = "earth_bg1.jpg";
			break;
		case "03":
			strPicName='Order1.jpg';
			break;
		case "04":
			strPicName='Contact1.jpg';
			break;
	}
	document.write('<tr>');
	if(fFlash)
	{
	  document.write('<td><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH="245px" HEIGHT="177px"><PARAM NAME="movie" VALUE="'+strPath+'images/'+strPicName+'"> <PARAM NAME="quality" VALUE="high"> <PARAM NAME="bgcolor" VALUE="#FFFFFF"> <EMBED src="'+strPath+'images/'+strPicName+'" quality="high" bgcolor="#FFFFFF"  WIDTH="245px" height="177px"  TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT></td>');
	}
	else
	{
	  if(fBg)
	  {
	    document.write('<td width="245px" height="177px" background="'+strPath+'images/'+strBgName+'"><img src="'+strPath+'images/'+strPicName+'" border="0" width="245" height="177" alt=""></td>');
	  }
	  else
	  {
	    document.write('<td><img src="'+strPath+'images/'+strPicName+'" border="0" width="245" height="177" alt=""></td>');
	  }
	}
	document.write('</tr>');
}

function jsEnAboutUs(strCode,strPath)
{
	var strCode;
	var strLb=strCode.substr(0,2);
	
	if(strPath=="default")
	{
		strPath="../";
	}	
	document.write('<tr id="BcTr1">');
	document.write('<td  align="center" class="FontMenu1"><a name="aboutus"></a>[&nbsp;<a target="_blank" class="aAboutUsTitle"  href="'+strPath+'english/pfm_tech.htm">Palm Fibre Molding Technology&nbsp</a>;]</td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td class="padding" style="font-family:verdana;color:#000000;font-size:8pt"><br>');
	document.write('<a target="_blank" class="aEnMore" href="'+strPath+'english/pfm_tech.htm">Since 2002, as a head, Zhen tianbo and his research team, which are made up of staff from Zhejiang Coway Light Industry Development Co., Ltd. And Hangzhou Eurasia Machinery Manufacture Co., Ltd. China have been succeeded in making and formulating molding products directly from palm fibre ...');
	document.write('<br><br><center><a target="_blank" class="aEnMore" href="'+strPath+'english/pfm_tech.htm">More...</a></center><br>');
	document.write('</td>');
	document.write('</tr>');               
	
}

function jsEnContactUs(strCode,strPath)
{
	var strCode;
	var strLb=strCode.substr(0,2);
	
	if(strPath=="default")
	{
		strPath="../"
	}	
/*
	document.write('<tr id="BcTr1">');
	document.write('<td  align="center" class="FontMenu1"><a name="contactus"></a>[&nbsp;Pulpmold New Technology&nbsp;]</td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td class="padding" ><br>');
	document.write('<br><a target="_blank" class="aEnMore" href="'+strPath+'english/en_newtech.htm#a">1. A real full-automatic pulp molding line <font style="color:#ff0000;FONT-WEIGHT:normal">(PATENT)</font></a>');
	document.write('<br><br><a target="_blank" class="aEnMore" href="'+strPath+'english/en_newtech.htm#b">2. Multi-layer pulp molding products (two- or three-layer) <font style="color:#ff0000;FONT-WEIGHT:normal">(PATENT)</font></a>');
	document.write('<br><br></td>');
	document.write('</tr>');               
*/
    
	//add a menu bar "About Us"
/*	document.write('<tr id="BcTr1">');
	document.write('<td height="1px"  align="center"><!--class="FontMenu1" <a name="webinfo"></a>[&nbsp;About Us&nbsp;] --></td>');
	document.write('</tr>');
*/
	document.write('<tr>');
	document.write('<td class="padding" ><br>');
	document.write('<font class="fontMenuAdd">Attn: </font><br>Mr. David Chen<br><br>');
	document.write('<font class="fontMenuAdd">Add: </font><br>4thFloor, Tower C, Jian Qiao Gong She, No.789 Shenhua Rd, West Lake District, Hangzhou, 310030, P.R.C.<br><br>');
	document.write('<font class="fontMenuAdd">Mob: </font><br>(86) (0)13606628856<br><br>');
	document.write('<font class="fontMenuAdd">Tel: </font><br>(86) 571 8993 6696<br>(86) 571 8993 6659<br>(86) 571 8785 7166<br><br>');
	document.write('<font class="fontMenuAdd">Fax: </font><br>(86) 571 8707 6295<br>(86) 571 8822 0436(Home)<br><br>');
	document.write('<font class="fontMenuAdd">E-mail: </font><br><a class="a7" href="mailto:david@bi-packaging.com">david@bi-packaging.com</a><br>');
//	document.write('<font class="fontMenuAdd">Post Code: </font><br>310012<br><br>');
	document.write('<br><br></td></tr>');  	
	
	
           
}

function jsEnBottNavigator(strCode,strPath)
{
	var strCode;
	var strLb=strCode.substr(0,2);
	
	if(strPath=="default")
	{
		strPath="../";
	}	
	document.write('<table border="0" cellpadding="0" cellspacing="0"  width="100%" align="center">');
	document.write('<tr>');
	document.write('<td colspan="2" style="padding-top:30;">');
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
	document.write('<tr>');
	document.write('<td><img src="'+strPath+'images/1.gif" border="0" width="270" height="5" alt=""></td>');
	document.write('<td><a class="aBtmNavigtor" href="en_index.htm">[home]</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="aBtmNavigtor" href="en_lxwm.htm">[contact us]</a></td>');
	document.write('<td align="right"><img src="'+strPath+'images/2.gif" border="0" width="280" height="5" alt=""></td>');
	document.write('</tr>');
	document.write('</table>');
	document.write('</td>');
	document.write('</tr>');
	document.write('</table>');
}

function jsEnAddr(strCode,strPath)
{


	var strLine="";
	var strLb=strCode.substr(0,2);
	if(strPath=="default")
	{
		strPath="../"
	}
	if(strLb=="02")
	{
//		strLine='<table border="0" cellspacing="0" cellpadding="0" width="100%" height="10px"><tr><td width="50" id="BgC1"></td><td width="30" id="BgC2"></td><td width="30" id="BgC3"></td><td width="30" id="BgC4"></td><td width="30" id="BgC5"></td><td width="60" id="BgC6"></td><td width="140" id="BgC7"></td><td width="60" id="BgC6"></td><td width="30" id="BgC5"></td><td width="30" id="BgC4"></td><td width="30" id="BgC3"></td><td width="30" id="BgC2"></td><td width="50" id="BgC1"></td></tr></table>';
	}
    if(strLb=="02")
	{
// 	    document.write('<tr><td valign="top" align="center" height="10px" width="*">'+strLine+'</td></tr>');
	}
document.write('<Script src="'+strPath+'counter/sycounter.asp?Style=1" language="JavaScript"></script>');

//document.write('</table>');
//document.write('</td></tr></table>');
}

//*********************************************************************
//*****All above are Apended in 2006.01.17*******************************************
//*********************************************************************


//***************demo*****************
function js_xx(strCode,strPath)
{
	var strTable=new Array(16),nCount;
	var strLb=strCode.substr(0,2);
	if(strPath=="default")
	{
		strPath="../"
	}
	strTable[0]="";
	strTable[1]="";
	strTable[2]="";
//	........
	strTable[15]="";
	for(nCount=0;count<16;nCount++)
	{
		document.write(strTable[nCount]);
	}
}
//****************LOGO,BANNER***********************
function js_T1(strCode,strPath)
{
	var strTable=new Array(16),nCount,strBanner;
	if(strPath=="default")
	{
		strPath="../"
	}
	switch(strCode)
	{
		case "0101":
			strBanner="aboutus_txt.gif";
			break;
		case "0201":
		case "0202":
		case "0203":
		case "0204":
		case "0205":
		case "0206":
		case "0207":
		case "0208":
		case "0209":
		case "0210":
		case "0211":
		case "0212":
		case "0213":
		case "0214":
			strBanner="products_txt.gif";
			break;
		case "0301":
			strBanner="order_txt.gif";
			break;
		case "0401":
			strBanner="contactus_txt.gif";
			break;
	}
	strBanner=strPath+"images/"+strBanner;
strTable[0]='<TABLE cellSpacing=0 cellPadding=0 align=center border=0 width="780">';
strTable[1]='<TR>';
strTable[2]='<TD vAlign=top width="150" height="60" id="Bg_logo"></TD>';
strTable[3]='<TD vAlign=top align=left width="90">';
strTable[4]='<TABLE cellSpacing=0 cellPadding=0 width=90 border=0>';
strTable[5]='<TR>';
strTable[6]='<TD width=30 id="BgC1" height=30></TD>';
strTable[7]='<TD width=30 id="BgC2" height=30></TD>';
strTable[8]='<TD width=30 id="BgC3" height=30></TD></TR>';
strTable[9]='<TR>';
strTable[10]='<TD width=30 id="BgC0" height=30></TD>';
strTable[11]='<TD id="BgC1" width="30"></TD>';
strTable[12]='<TD width=30 id="BgC2" height=30></TD></TR></TABLE></TD>';
strTable[13]='<TD vAlign=top width="540"><IMG height="60" alt="" src="'+strBanner+'" width="559" border="0"></TD>';
strTable[14]='</TR>';
strTable[15]='</table>';
	for(nCount=0;nCount<16;nCount++)
	{
		document.write(strTable[nCount]);
	}
}
//****************Main Menu
function js_T2(strCode,strPath)
{
	var strTable=new Array(13),nCount,strClass=new Array("a1","a1","a1","a1");
	if(strPath=="default")
	{
		strPath="../"
	}
	switch(strCode)
	{
		case "0101":
			strClass[0]="a2";
			break;
		case "0201":
			strClass[1]="a2";
			break;
		case "0301":
			strClass[2]="a2";
			break;
		case "0401":
			strClass[3]="a2";
			break;
	}
strTable[0]='<table width="780px" border="0" cellspacing="0" cellpadding="0" align="center">';
strTable[1]='<TR>';
strTable[2]='<TD width=30 id="BgC1" height=30></TD>';
strTable[3]='<TD width=30 id="BgC2" height=30></TD>';
strTable[4]='<TD width=90 id="BgC0" height=30></TD>';
strTable[5]='<TD vAlign=middle align="center" width="630">';
strTable[6]='<a href="'+strPath+'about.htm" class="'+strClass[0]+'">About us</a>&nbsp;&nbsp;';
strTable[7]='<a href="'+strPath+'products/products.asp" class="'+strClass[1]+'">Products</a>&nbsp;&nbsp;';
strTable[8]='<a href="'+strPath+'order.asp" class="'+strClass[2]+'">Order</a>&nbsp;&nbsp;';
strTable[9]='<a href="'+strPath+'contact.htm" class="'+strClass[3]+'">Contact us</a>&nbsp;&nbsp;';
strTable[10]='&nbsp;&nbsp;[&nbsp;<a target="_blank" href="'+strPath+'v1/index.html" >Go Version 1.0</a>&nbsp;]</TD>';
strTable[11]='</TR>';
strTable[12]='</TABLE>';
	for(nCount=0;nCount<13;nCount++)
	{
		document.write(strTable[nCount]);
	}
}

function js_T3_B(strCode,strPath)
{
	var strTable=new Array(11),nCount,strImg;
	var strLb=strCode.substr(0,2);
	if(strPath=="default")
	{
		strPath="../"
	}
	switch(strCode)
	{
		case "0101":
			strImg="aboutus_txt1.gif";
			break;
		case "0201":
		case "0202":
		case "0203":
		case "0204":
		case "0205":
		case "0206":
		case "0207":
		case "0208":
		case "0209":
		case "0210":
		case "0211":
		case "0212":
		case "0213":
		case "0214":
			strImg="products_txt1.gif";
			break;
		case "0301":
			strImg="order_txt1.gif";
			break;
		case "0401":
			strImg="contactus_txt1.gif";
			break;
	}
	strImg=strPath+"images/"+strImg;
strTable[0]='<table width="780" border="0" cellspacing="0" cellpadding="0" align="center">';
strTable[1]='<tr>';
strTable[2]='<td width="120" valign="top">';
strTable[3]='<table width="120" border="0" cellspacing="0" cellpadding="0" align="left">';
strTable[4]='<tr>';
strTable[5]='<td width="30" height="60" id="BgC0" rowspan="2"></td>';
strTable[6]='<td width="30" height="30" id="BgC1"></td>';
strTable[7]='<td width="60" height="60" rowspan="2"><img src="'+strImg+'" width="60" height="60" border="0" alt=""></td>';
strTable[8]='</tr>';
strTable[9]='<tr><td width="30" height="30" id="BgC0"></td></tr>';
if(strLb=="02"){
 strTable[10]='<tr><td width="120"  height="310" colspan="3">';
}
else{
 strTable[10]='<tr><td width="120"  height="310" colspan="3" id="Bg_Pic1">';
}
	for(count=0;count<11;count++)
	{
		document.write(strTable[count]);
	}
}


function js_T3_B_1(strCode,strPath)
{
	var strTable=new Array(7),nCount;
	var strLb=strCode.substr(0,2),strLine="";
	if(strPath=="default")
	{
		strPath="../"
	}
	if(strLb=="02")
	{
		strLine='<table border="0" cellspacing="0" cellpadding="0" width="660" height="10"><tr><td width="30" height="10"></td><td width="50" id="BgC1"></td><td width="30" id="BgC2"></td><td width="30" id="BgC3"></td><td width="30" id="BgC4"></td><td width="30" id="BgC5"></td><td width="60" id="BgC6"></td><td width="140" id="BgC7"></td><td width="60" id="BgC6"></td><td width="30" id="BgC5"></td><td width="30" id="BgC4"></td><td width="30" id="BgC3"></td><td width="30" id="BgC2"></td><td width="50" id="BgC1"></td><td width="30"></td></tr></table>';
	}
strTable[0]='</td></tr>';
strTable[1]='</table>';
strTable[2]='</td>';
strTable[3]='<td valign="top"><table border="0" cellspacing="0" cellpadding="0" width="660" height="100%"><tr><td valign="top" align="center" height="10px">'+strLine+'</td></tr>';
strTable[4]='<tr><td  valign="top" align="center" height="*"><table align="center" width="660" border="0" cellspacing="0" cellpadding="0" height="100%"><tr><td width="30"></td><td width="630" valign="top" height="100%"  id="Bg_Pic">';
strTable[5]='';
strTable[6]='';
	for(nCount=0;nCount<7;nCount++)
	{
		document.write(strTable[nCount]);
	}
}

function js_T3_E(strCode,strPath)
{
	var strTable=new Array(16),nCount,strLine="";
	var strLb=strCode.substr(0,2);
	if(strPath=="default")
	{
		strPath="../"
	}
	if(strLb=="02")
	{
		strLine='<table border="0" cellspacing="0" cellpadding="0" width="100%" height="10px"><tr><td width="50" id="BgC1"></td><td width="30" id="BgC2"></td><td width="30" id="BgC3"></td><td width="30" id="BgC4"></td><td width="30" id="BgC5"></td><td width="60" id="BgC6"></td><td width="140" id="BgC7"></td><td width="60" id="BgC6"></td><td width="30" id="BgC5"></td><td width="30" id="BgC4"></td><td width="30" id="BgC3"></td><td width="30" id="BgC2"></td><td width="50" id="BgC1"></td></tr></table>';
	}
strTable[0]='</td></tr></table></td></tr></table></td></tr></table>';
strTable[1]='<table width="780" border="0" cellspacing="0" cellpadding="0" align="center">';
if(strLb=="02")
{
  strTable[2]='<tr><td width="120px"></td><td width="30"></td><td width="*" height="20px"><table border="0" cellspacing="0" cellpadding="0" width="100%" ><tr><td width="100%" height="20px"  id="BgC8"></tr></table></td><td width="30"></td></tr><tr><td width="120px"></td><td width="30"></td><td valign="top" align="center" height="10px" width="*">'+strLine+'</td><td width="30"></td></tr>';
}
else
{
  strTable[2]='';
}
strTable[3]='<tr><td width="120px"></td><td width="30"></td><td width="600" height="10"></td><td width="30"></td></tr><tr><td></td><td></td><td ><hr size="1"></td><td></td></tr>';
strTable[4]='<tr><td></td><td></td><td align="center" class="a1">';
strTable[5]='Copyright &copy; 2007 bi-packaging.com,All Rights Reserved<br>';
strTable[6]='Tel:86 571 89936696  Fax:86 571 87076295  E-mail:david@bi-packaging.com<br>';
strTable[7]='<Script src="'+strPath+'counter/sycounter.asp?Style=1" language="JavaScript"></script>';
strTable[8]='</td><td></td></tr></table>';
strTable[9]='</td>';
strTable[10]='</tr></table>';
strTable[11]='<table border="0" cellspacing="0" cellpadding="0" align="center" width="780"><tr valign="top">';
strTable[12]='<td width="150"></td>';
strTable[13]='<td width="600" align="center"></td>';
strTable[14]='<td width="30"></td>';
strTable[15]='</tr></table>';

	for(nCount=0;nCount<16;nCount++)
	{
		document.write(strTable[nCount]);
	}
}

function js_page(nMax,nCurrent,strFileName)
{
	var i,strUrl=nCurrent.toString()+'&nbsp;of&nbsp;'+nMax.toString()+'&nbsp;&nbsp;';
	for(i=1;i<=nMax;i++)
	{
		if(i==nCurrent)
		{
			strUrl=strUrl+'&nbsp;&nbsp;&nbsp;<font class="a5">P'+i.toString()+'</font><font class="font6">(Current)</font>';
		}
		else
		{
			strUrl=strUrl+'&nbsp;&nbsp;&nbsp;'+'<a href="'+strFileName+i.toString()+'.htm" class="a5">-P'+i.toString()+'-</a>';
		}
	}
	document.write(strUrl);
}
function js_page_bak(nMax,nCurrent,strFileName)
{
	var i,strUrl="";
	for(i=1;i<=nMax;i++)
	{
		if(i==nCurrent)
		{
			strUrl=strUrl+'&nbsp;&nbsp;&nbsp;<font class="a5">P'+i.toString()+'</font><font class="font6">(Current)</font>';
		}
		else
		{
			strUrl=strUrl+'&nbsp;&nbsp;&nbsp;'+'<a href="'+strFileName+i.toString()+'.htm" class="a5">-P'+i.toString()+'-</a>';
		}
	}
	document.write(strUrl);
}


//*****************打开窗口函数2003-10-27********************************
	function openWin(url,x,y,name)
	{
		var temp,new1;
		temp='"'+"toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=1, resizable=0, "+" width="+x+", height="+y+'"';
//		temp='"'+"toolbar=no location=no directories=no status=no menubar=no scrollbars=yes resizable=no "+" width="+x+" height="+y+'"';
		new1=open(url,name,temp);
		new1.moveTo(0,0);
	}
 


 


