<%
if request.QueryString("id")="" or isnumeric(request.QueryString("id"))=0 then
response.Redirect("index_en.asp")
response.End()
end if
%>
<!--#include file="ljconn.asp"-->


<%
id=request.QueryString("id")
%>
<%
set rsq = Server.CreateObject("ADODB.Recordset")
rsq.Open "Select nclassid,nclass From shop_nclass where nclassid="&id&"", conn,1,1
if rsq.recordcount=0 then
rsq.close
set rsq=nothing
conn.close
set conn=nothing
response.Redirect("index_en.asp")
response.End()
end if
nclassid=rsq("nclassid")
nclass=rsq("nclass")
rsq.close
set rsq=nothing

set rse=server.CreateObject("adodb.recordset")
rse.Open "select anclassid,content from lxwm where nclassid="&id&"",conn,1,1
if rse.recordcount=0 then
else
%>
<%
set rsq = Server.CreateObject("ADODB.Recordset")
rsq.Open "Select anclassid,anclass From shop_anclass where anclassid="&rse("anclassid")&"", conn,1,1
if rsq.recordcount=0 then
rsq.close
set rsq=nothing
conn.close
set conn=nothing
response.Redirect("index_en.asp")
response.End()
end if
anclass=rsq("anclass")
anclassid=rsq("anclassid")
rsq.close
set rsq=nothing
dim page
page=request("page")
if isnumeric(page)=0 then
response.Redirect("index_en.asp")
response.End()
end if
If page="" Then 
page=1
Elseif CInt(page)<=0 then
page=1
else
page=CInt(page)
End If

select case anclassid
case "39"
imt_bt="gaikuang"

case "40"
imt_bt="kexue"

case "41"
imt_bt="fuwu"


case "42"
imt_bt="xueshu"

case "43"
imt_bt="lianxi"


case else

end select
%><!--#include file="top.asp"-->

<div class="Content">
  <table width="900" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="225" valign="top">
	  
	  
	  <div class="Contentleft">
<div class="baikuang">
<div class="biaoti"><img src="images/<%=imt_bt%>.jpg" width="140" height="24" /></div>
<div class="link1_tu">

  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="15"></td>
          <td align="left">
		  
		  
		  
		  <%
select case anclassid
case "39"
		  %>
		  
		  <table width="65%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
			
            <tr>
              <td align="left" height="30">¡¤<a href="about.asp?id=1105">Introduction</a></td>
            </tr>
			
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table>
		  <table width="65%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
            <tr>
              <td align="left" height="30">¡¤<a href="about.asp?id=1106">Background</a></td>
            </tr>
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table>
		  <table width="65%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
            <tr>
              <td align="left" height="30">¡¤<a href="about.asp?id=1107">Organizations</a></td>
            </tr>
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table>
		  <table width="65%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
            <tr>
              <td align="left" height="30">¡¤<a href="about.asp?id=1108">Center Archives</a></td>
            </tr>
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table>
		  <%case "40"%>
		  <table width="90%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
			
            <tr>
              <td align="left" height="30">¡¤<a href="about.asp?id=1109">Food Safety & <br>&nbsp;&nbsp;Microbiology Lab</a></td>
            </tr>
			
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table>
		  
		  <table width="90%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
            <tr>
              <td align="left" height="30">¡¤<a href="about.asp?id=1110">Food Physical Testing <br>&nbsp;&nbsp;and Chemical Analysis Lab</a><br /></td>
            </tr>
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table>
		  <table width="90%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
            <tr>
              <td align="left" height="30">¡¤<a href="about.asp?id=1111">GMO Analysis and Food <br>&nbsp;&nbsp;Safety Detection Lab</a><br /></td>
            </tr>
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table>
		  <table width="90%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
            <tr>
              <td align="left" height="30">¡¤<a href="about.asp?id=1112">Food Processing & <br>&nbsp;&nbsp;Preservation Safety Lab</a><br /></td>
            </tr>
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table>
		  <table width="90%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
            <tr>
              <td align="left" height="30">¡¤<a href="about.asp?id=1113">Dairy Product Safety Lab</a></td>
            </tr>
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table>
		  <table width="90%" border="0" cellspacing="0" cellpadding="0" style="display:none;">
            <tr>
              <td height="5"></td>
            </tr>
            <tr>
              <td align="left" height="30">¡¤<a href="about.asp?id=1114">Research Achievemens</a></td>
            </tr>
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table>
		  <%case "41"%>
		  
		  
		  
		  <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
			
            <tr>
              <td align="left" height="30">¡¤<a href="about.asp?id=1115">Food Safety Training Courses</a></td>
            </tr>
			
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table>
		  
		  <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="20">&nbsp;</td>
              <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="5"></td>
                </tr>
                <tr>
                  <td align="left" height="30">¡¤<a href="about.asp?id=1115">Advanced Training<br />&nbsp;&nbsp;Courses on HACPP</a></td>
                </tr>
                <tr>
                  <td height="1" background="images/csdh7.jpg"></td>
                </tr>
              </table></td>
            </tr>
            <tr style=" display:none;">
              <td>&nbsp;</td>
              <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="5"></td>
                </tr>
                <tr>
                  <td align="left" height="30">¡¤<a href="about.asp?id=1123">Training to Catering<br />&nbsp;&nbsp;Industry Staff</a></td>
                </tr>
                <tr>
                  <td height="1" background="images/csdh7.jpg"></td>
                </tr>
              </table></td>
            </tr>
			
			
            <tr style="display:none">
              <td>&nbsp;</td>
              <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="5"></td>
                </tr>
                <tr>
                  <td align="left" height="30">¡¤<a href="about.asp?id=1124">Non-profit Training</a></td>
                </tr>
                <tr>
                  <td height="1" background="images/csdh7.jpg"></td>
                </tr>
              </table></td>
            </tr>
			
            <tr style="display:">
              <td>&nbsp;</td>
              <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="5"></td>
                </tr>
                <tr>
                  <td align="left" height="30">¡¤<a href="news.asp?flag=163">Non-profit Training</a></td>
                </tr>
                <tr>
                  <td height="1" background="images/csdh7.jpg"></td>
                </tr>
              </table></td>
            </tr>
			
			
			
			
          </table>
		  <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
            <tr>
              <td align="left" height="30">¡¤<a href="about.asp?id=1116">Sample Analysis</a></td>
            </tr>
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
            <tr>
              <td height="15"></td>
            </tr>
          </table>
		  
		  
		  
		  
		  
		  
		  
		  <%case "42"%>
		  <table width="65%" border="0" cellspacing="0" cellpadding="0" style="display:none;">
            <tr>
              <td height="5"></td>
            </tr>
			
            <tr>
              <td align="left" height="30">¡¤<a href="about.asp?id=1117">»áÒé¼ò½é</a></td>
            </tr>
			
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table>
		  
		  <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
            <tr>
              <td align="left" height="30">¡¤<a href="about.asp?id=1118">2010 Conference</a></td>
            </tr>
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table>
		  
		  
		  <table width="65%" border="0" cellspacing="0" cellpadding="0" style="display:none;">
            <tr>
              <td height="5"></td>
            </tr>
            <tr>
              <td align="left" height="30">¡¤<a href="about.asp?id=1119">2009»áÒé</a></td>
            </tr>
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table>
		  <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
            <tr>
              <td align="left" height="30">¡¤<a href="news.asp?flag=161">Conference Archives</a><br /></td>
            </tr>
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table>
		  <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="20">&nbsp;</td>
              <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="5"></td>
                  </tr>
                  <tr>
                    <td align="left" height="30">¡¤<a href="news.asp?lb=lf&amp;flag=161">2009 Conference</a></td>
                  </tr>
                  <tr>
                    <td height="1" background="images/csdh7.jpg"></td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td><table width="90%" border="0" align="right" cellpadding="0" cellspacing="0">
                  <tr>
                    <td height="5"></td>
                  </tr>
                  <tr>
                    <td align="left" height="30">¡¤<a href="shownews.asp?id=681">Conference Information</a></td>
                  </tr>
                  <tr>
                    <td height="1" background="images/csdh7.jpg"></td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td><table width="90%" border="0" align="right" cellpadding="0" cellspacing="0">
                <tr>
                  <td height="5"></td>
                </tr>
                <tr>
                  <td align="left" height="30">¡¤<a href="shownews.asp?id=680">Conference Speech <br />
                    &nbsp;&nbsp;(with links to PPT)</a></td>
                </tr>
                <tr>
                  <td height="1" background="images/csdh7.jpg"></td>
                </tr>
              </table></td>
            </tr>
          </table>
		  <%case else%>

		  <table width="65%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
			
            <tr>
              <td align="left" height="30">¡¤<a href="about.asp?id=1121">Contact us</a></td>
            </tr>
			
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
            <tr>
              <td height="15"></td>
            </tr>
          </table>
		  <%end select%>
		  
		  
		  </td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td height="300">&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
    </tr>
  </table>

</div>
</div>
	  </div>
	  
	  
	  
	  
	  
	  
	  
	  </td>
      <td align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="28" align="left" valign="bottom" style="font-size:12px;">&nbsp;&nbsp;<img src="images/nyrightlm.jpg" width="10" height="10" align="absmiddle" />&nbsp;Current Position£º<a href="index.asp" class="ly">Home</a>
            <%if request.querystring("id")<>1121 then%>  
            &gt;&gt; <%=anclass%>
            <%end if%>
            &gt;&gt; <%=nclass%></td>
        </tr>
        <tr>
          <td align="center" valign="10"><table width="99%">
              <tr>
                <td height="3"></td>
              </tr>
              <tr>
                <td height="1" background="images/ny_line.jpg"></td>
              </tr>
          </table></td>
        </tr>
        <tr>
          <td align="center" valign="top"><table width="95%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="6"></td>
              </tr>
              <tr>
                <td align="left" style="line-height:23px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td align="left" valign="top" style="line-height:23px;font-size:13px;"><%
if Not rse.eof Then
  str=rse("content")
End If
dim strtmp
strtmp=Split((str),"$Page_Split$")
Dim n,tmp,i,j,tt
n=0
i=0
j=0
Do While i<=ubound(strtmp)
    tmp=strtmp(i)
    tt=true
    Do While tt
   If i>=ubound(strtmp) then
     tt=false
  j=j+1
    elseif Len(tmp)>=n Then
     tt=false
  j=j+1
   ElseIf Len(tmp)+Len(strtmp(i+1))>=n Then
     tt=false
  j=j+1
   Else
     tmp=tmp+"<br>"+strtmp(i+1)
  i=i+1
   End If
 Loop
    if page=j then  str=tmp
i=i+1
Loop
if page>j then
rse.close
set rse=nothing
call conn_gb()
response.Redirect("index_en.asp")
response.end()
end if
response.write replace(str,"luboxun/","")
%></td>
                    </tr>
                    <tr>
                      <td height="5"></td>
                    </tr>
                    <tr>
                      <td align="center"><%if rse.recordcount<>0 then%>
                          <%if ubound(strtmp)<>0 then
response.write "<br>"
For n=1 To j
if n=page then
response.write " <span style='font-size:12px;'>"&n&"</span> "
else
response.write "<a href=?id="&request.QueryString("id")&"&page="&n&" class='right'>["&n&"]</a>"&"&nbsp;"
end if
Next
end if
end if
rse.close
set rse=nothing
%></td>
                    </tr>
                </table></td>
              </tr>
              <tr>
                <td height="6"></td>
              </tr>
          </table>
<%if request.QueryString("id")="1121" then%>		  
	<script type="text/javascript"> 
<!--
function FormCheck(thisform)
{
     if(checkspace(thisform.cname.value)) {
	thisform.cname.focus();
    alert("Name!");
	return (false);
  }
	 if(thisform.cmail.value.length!=0)
  {
    if (thisform.cmail.value.charAt(0)=="." ||        
         thisform.cmail.value.charAt(0)=="@"||       
         thisform.cmail.value.indexOf('@', 0) == -1 || 
         thisform.cmail.value.indexOf('.', 0) == -1 || 
         thisform.cmail.value.lastIndexOf("@")==thisform.cmail.value.length-1 || 
         thisform.cmail.value.lastIndexOf(".")==thisform.cmail.value.length-1)
     {
	  alert("Email!");
      thisform.cmail.focus();
      return (false);
      }
   }
 else
  {
   alert("Email!");
   thisform.cmail.focus();
   return (false);
   }
   
   if(checkspace(thisform.cword.value)) {
   thisform.cword.focus();
   alert("Message!");
   return (false);
  }




}
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
//-->
</script>




<table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" class="style1">
          <form action="" method="post" name="postart" id="postart" onsubmit="return FormCheck(this);">
            <tr>
              <td height="25" colspan="2" align="right" valign="middle"><div align="center" class="style6 style3" style="font-size: 12px">Please leave your message</div></td>
              </tr>
            <tr>
              <td width="10%" height="20" align="right" valign="middle" class="style6"><p align="left" class="style3" style="font-size: 12px">Name£º<br /></p></td>
              <td width="90%" height="25" align="left" valign="middle" class="style6"><span class="style3" style="font-size: 12px">
                <input name="cname" type="text" class="input" size="30" maxlength="50" />
                <font color="#FF0000">*</font></span></td>
            </tr>
            <tr style="display:none;">
              <td height="20" align="right" valign="middle" class="style6"><div align="left" class="style3" style="font-size: 12px">Tel£º
                  </div></td>
              <td height="25" align="left" valign="middle" class="style6"><span class="style3" style="font-size: 12px">
                <input name="ctel" type="text" class="input" size="30" maxlength="50" />
                <font color="#FF0000">*</font></span></td>
            </tr>
            <tr>
              <td height="20" align="right" valign="middle" class="style6"><div align="left" class="style3" style="font-size: 12px">Email£º
                </div></td>
              <td height="20" align="left" valign="middle" class="style6"><span class="style3" style="font-size: 12px">
                <input name="cmail" type="text" class="input" size="30" maxlength="50" />
                <span class="style3" style="font-size: 12px"><font color="#FF0000">*</font></span></span></td>
            </tr>
            <tr>
              <td height="20" align="right" valign="middle" class="style6"><div align="left" class="style3" style="font-size: 12px"> City£º
                  
              </div></td>
              <td height="25" align="left" valign="middle" class="style6"><span class="style3" style="font-size: 12px">
                <input name="lz" type="text" class="input" id="lz" size="30" maxlength="50" />
              </span></td>
            </tr>
            <tr>
              <td height="20" align="right" valign="middle" class="style6"><div align="left" class="style3" style="font-size: 12px">Address£º
                
              </div></td>
              <td height="25" align="left" valign="middle" class="style6"><span class="style3" style="font-size: 12px">
                <input name="caddress" type="text" class="input" size="30" maxlength="50" />
              </span></td>
            </tr>
            <tr>
              <td height="25" colspan="2" align="right" class="style6"><p align="left" class="style3" style="font-size: 12px">Message£º<font color="#FF0000">200 words</font></p></td>
              </tr>
            <tr>
              <td height="111" colspan="2" align="right" valign="top"><p align="left" class="style3" style="font-size: 12px">
                  <textarea name="cword" cols="60" rows="8" class="input"></textarea>
                  <font color="#FF0000">*</font></p></td>
              </tr>
            <tr>
              <td height="30" colspan="2" align="right"><p align="center" class="style3" style="font-size: 12px">
                  <input name="submit" type="submit" class="input" value="Submit" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#FF0000">*</font>is necessary</p></td>
              </tr>
          </form>
        </table>

<%
cname=request.form("cname")
ctel=request.form("ctel")
cmail=request.form("cmail")
caddress=request.form("caddress")
lz=request.form("lz")
cword=replace(request.form("cword"),vbcrlf,"<br>")

if len(cword)>200 then
response.write"<script>alert(""200 words£¡"");history.back();</script>"
response.end
end if

if cmail<>"" then
if instr(cmail,"@")=0 then
response.write"<script>alert(""Email£¡"");history.back();</script>"
response.end
end if
if instr(cmail,".")=0 then
response.write"<script>alert(""Email£¡"");history.back();</script>"
response.end
end if
end if
if cname<>"" then
userip = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If userip = "" Then
userip = Request.ServerVariables("REMOTE_ADDR")
end if 

sql="select * from gbook"
set rsg=server.createobject("adodb.recordset")
rsg.open sql,connstr,3,2
rsg.addnew
rsg("name")=cname
rsg("tel")=userip
rsg("mail")=cmail
rsg("address")=caddress



rsg("word")=cword


rsg("ggg")=0
rsg.update
response.Write("<script>alert('OK!');location.href='index.asp';</script>")
rsg.close
end if
%><%end if%>		  
		  </td>
        </tr>
      </table></td>
    </tr>
  </table>

<div class="clear"></div>
</div>
<!--#include file="foot.asp"-->
<%
end if
conn.close
set conn=nothing
%>
