 <% 
	data_path="../../" 'ACC连接数据库路径，对SQL无效
	numid="no"
	dir="no" 
  %>
  <!--#include file="../../conn/conn.asp"-->
<!--#include file="../../inc/safe.asp"-->
 <!--#include file="../rolecheck.asp"-->

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../css/Style.css" rel=stylesheet type=text/css>
<title>会员资料修改</title>
</head>
 
<script Language="JavaScript"> 
 function strDateTime()
      {
	  var str=document.form.Begintime.value;
	  var str1=document.form.EndTime.value;
         var r = str.match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/); 
		   var r1 = str1.match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/); 
          if(r==null)
		{ alert("请输入正确的开始时间格式！");
		document.form.Begintime.focus();
		 return false; 
		 } 
		 if(r1==null)
		{ alert("请输入正确的结束时间格式！ ");
		document.form.EndTime.focus();
		 return false; 
		 }
        }
function FormCheck() 
{ 

if (trim(document.form.name.value) =="") 
{ 
alert("请输入您的真实姓名！"); 
document.form.name.focus(); 
return (false); 
} 

if (trim(document.form.email.value) =="")
{
alert("请输入您的电子邮件地址！");
document.form.email.focus();
document.form.email.select();
return false;
}
var str1 = document.form.email.value
if(str1.indexOf("@") == -1 || str1.indexOf(".") == -1){ 
alert("E-mail格式不正确,请重新填写！"); 
document.form.email.focus();
document.form.email.select();
return false; 
} 
if (trim(document.form.phonecountry.value) =="") 
{ 
alert("请输入联系电话的国家区号！"); 
document.form.phonecountry.focus(); 
return (false); 
} 
var filter=/^\s*[0-9]{0,3}\s*$/;
if (!filter.test(document.form.phonecountry.value)) { 
alert("国家区号不正确,请重新填写！不超过3个数字，注意不要使用空格。"); 
document.form.phonecountry.focus();
document.form.phonecountry.select();
return false; 
} 
if (trim(document.form.phonearea.value) =="") 
{ 
alert("请输入联系电话的城市区号！"); 
document.form.phonearea.focus(); 
return (false); 
} 
var filter=/^\s*[0-9]{0,4}\s*$/;
if (!filter.test(document.form.phonearea.value)) { 
alert("城市区号不正确,请重新填写！不超过4个数字，注意不要使用空格。"); 
document.form.phonearea.focus();
document.form.phonearea.select();
return false; 
} 
if (trim(document.form.phonenumber.value) =="") 
{ 
alert("请输入您的联系电话号码！"); 
document.form.phonenumber.focus(); 
return (false); 
}
if (trim(document.form.country1.value) =="中国") 
{ 
if (trim(document.form.province.value) =="")
{
alert("请选择省份！"); 
document.form.province.focus(); 
return (false); 
}
if (trim(document.form.city.value) =="")
{
alert("请选择地级城市！"); 
document.form.city.focus(); 
return (false); 
}
} 
if (trim(document.form.address.value) =="") 
{ 
alert("请输入您的联系地址！"); 
document.form.address.focus(); 
return (false); 
} 
if (trim(document.form.qymc.value) =="") 
{ 
alert("请输入您公司的名称！"); 
document.form.qymc.focus(); 
return (false); 
} 
if (trim(document.form.zw.value) =="") 
{ 
alert("请输入您的职位！"); 
ādocument.form.zw.focus(); 
return (false); 
}  

if(trim(document.form.productionService.value) == "") 
{
alert("注意：请按左至右的顺序填写\n\n主要相关产品名/服务名最少要填一个");
document.form.productionService.focus();
return (false);
}

var  check=true;
      for(var i=0;i<document.form.qylb.length;i++){

 if (document.form.qylb[i].checked) {
		 check=false;
		break;
        }	
       }
              if (check){
          alert("请选择企业经营模式！");
          document.form.qylb[0].focus();
          return (false);
       }   

if (trim(document.form.qyjj.value.length) <50) 
{ 
alert("公司介绍不能少于50字"); 
document.form.qyjj.focus(); 
return (false); 
} 
if (trim(document.form.qyjj.value.length) >2000) 
{ 
alert("公司介绍不能多于2000字"); 
document.form.qyjj.focus(); 
return (false); 
} 

   var productionService = form.productionService.value;
   for(i=0;i<productionService.length;i++){productionService=productionService.replace(',','，');}
    if(form.productionService2.value){
        for(i=0;i<form.productionService2.value.length;i++){form.productionService2.value=form.productionService2.value.replace(',','，');}
        productionService+=','+form.productionService2.value;
    }
    if(form.productionService3.value){
        for(i=0;i<form.productionService3.value.length;i++){form.productionService3.value=form.productionService3.value.replace(',','，');}
        productionService+=','+form.productionService3.value;
    }    
    form.p_z_Z_productionService.value = productionService
 
document.form.submit()
}
//-->
//-->
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;
           } 

//--> 
</script>
<%
if Chkrequest(request("id")) then
id=request("id")
else
Response.Redirect ("/login/chklogin.asp?login=4")
end if

dim sql
dim rs

sql="select * from Websen_corporation where id="&id
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
sid=rs("sortid")
tid=rs("typeid")
tid2=rs("typeid_2")
zycp=rs("zycp")
pharry=split(rs("phone"),"&nbsp;")
faarry=split(rs("fax"),"&nbsp;")

set rs3=conn.execute("select Websen_class_2.*,Websen_class_1.* from Websen_class_2,Websen_class_1 where Websen_class_2.typeid="&rs("typeid")&" and Websen_class_1.sortid=Websen_class_2.sortid")
%>
<table cellpadding="2" cellspacing="1" border="0" width="95%"  align=center>
<tr>
<th align=center colspan=8 height=23>用户资料管理</th>
</tr>
 </table>
  <table cellpadding="0" cellspacing="0" border="1" bordercolor="#B9CFE8" width="95%"    align=center>
   	<form method="post" action="save.asp?id=<%=request("id")%>" name="form">
   <tr>
      <th align=left height=23>姓名和联系方式</th>
    </tr>
    <tr>
      <td><TABLE width="100%" border=0 cellPadding=0 cellSpacing=0 bgcolor="#F7F7F7">
              <TBODY>
              <TR   bgcolor="#E9EAF3" onMouseOut="this.style.backgroundColor='#E9EAF3';this.style.color='black';" onMouseOver="this.style.backgroundColor='#6188D7';this.style.color='white';">
                <TD height="25"  ><B>会员登陆名：</B></TD>
                <TD colspan="2"  ><input type="text" name="username" value="<%=rs("user")%>" maxlength="30">(<font color="#990000">注意:请不要随意修改用户的登录名称,它牵涉到用户的模板页面等</font>)</td>
              </TR>
				 <TR    bgcolor="#E9EAF3" onMouseOut="this.style.backgroundColor='#E9EAF3';this.style.color='black';" onMouseOver="this.style.backgroundColor='#6188D7';this.style.color='white';">
                <TD height="25"   ><B>密码：</B></TD>
                <TD colspan="2" ><input type="text" name="pass"  value="<%=rs("pass")%>" maxlength="20">				</TD>
				 </TR>
				 <TR   bgcolor="#E9EAF3" onMouseOut="this.style.backgroundColor='#E9EAF3';this.style.color='black';" onMouseOver="this.style.backgroundColor='#6188D7';this.style.color='white';">
                <TD height="25"   ><B>会员等级：</B></TD>
                <TD width="21%" >
				<select size="1" name="gradeid" >
 <%
	set rsd=server.CreateObject("adodb.recordset")
	sqld="select * from Websen_vipgrade order by roleid desc"		
	rsd.open sqld,conn,1,1
	if not rsd.eof then 
	do while not rsd.eof 
	%>
	<option value="<%=rsd("roleid")%>" <%if rsd("roleid")=rs("gradeid") then response.Write("selected") end if%>><%=rsd("gradename")%></option>
	<%
 	rsd.movenext
	loop
	rsd.close
	end if
				
 %></select></TD>
				 <TD width="63%" ><strong>会员积分：</strong>
				   <INPUT value="<%=rs("mark")%>"  name="mark" size="5"></TD>
				 </TR>			
	  <TR    bgcolor="#E9EAF3" onMouseOut="this.style.backgroundColor='#E9EAF3';this.style.color='black';" onMouseOver="this.style.backgroundColor='#6188D7';this.style.color='white';">
                <TD height="25"   ><B>服务时间：</B></TD>
                <TD colspan="2" >
				<div  <%if rs("flag")=1  then response.Write("style=""display:''""") else response.Write("style=""display:'none'""") end if%>>
				开始日期:<input name="Begintime" type="text" value="<%=rs("begindate")%>" onBlur="this.value=this.value.replace(/\s/g,'');strDateTime();" maxlength="20">
				&nbsp;&nbsp;结束日期:<input name="EndTime" type="text" value=<%=rs("enddate")%> onBlur="this.value=this.value.replace(/\s/g,'');strDateTime();" maxlength="20">
				 </div>	
				<%if rs("flag")=0  then%>	
				<font color="red" >暂未获得服务!</font>请到该会员所属等级会员列表中，让之通过审核即可开通服务!
				<%end if%>		</TD>
				 </TR>
				 <tr><td  colspan="3" bgcolor="#CCCCCC"></td></tr>
              <TR  bgcolor="#F7F7F7" onMouseOut="this.style.backgroundColor='#F7F7F7'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
                <TD  width="16%" height="25"><B>真实姓名：</B></TD>
                <TD colspan="2" ><INPUT maxLength=10 size=12 value="<%=rs("name")%>" 
                  name="name"> &nbsp;<INPUT type=radio <%if rs("ch") ="先生" then Response.Write "checked"%> value="先生" 
                  name="ch"> <FONT class=f2>先生&nbsp; <INPUT type=radio <%if rs("ch") ="女士" then Response.Write "checked"%> 
				  value="女士" name="ch"> 女士 </FONT><BR><FONT class=f2 
                  color=#ff5500>姓名必须是1-10个字</FONT> </TD></TR>
              <TR  bgcolor="#F7F7F7" onMouseOut="this.style.backgroundColor='#F7F7F7'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
                <TD  width="16%"><FONT        color=#ff0000><B>电子邮箱</B>：</FONT></TD>
                <TD colspan="2" ><INPUT  maxLength=50 size=30 value="<%=rs("email")%>"  name="email"> <BR>  
				     <FONT   class=note>这是客户与您联系的首选方式，请填最常用的。</FONT><BR></TD></TR>
				   <TR  bgcolor="#F7F7F7" onMouseOut="this.style.backgroundColor='#F7F7F7'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
                <TD  width="16%"><FONT 
                  color=#ff0000><B>MSN</B>：</FONT></TD>
                <TD colspan="2" ><INPUT        maxLength=50 size=30 value="<%=rs("msn")%>"      name="msn"> <BR>   
				  <FONT       class=note>即时通讯交流。</FONT><BR></TD></TR>
              <TR  bgcolor="#F7F7F7" onMouseOut="this.style.backgroundColor='#F7F7F7'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
                <TD ><FONT 
                  color=#ff0000><B>公司电话</B>：</FONT></TD>
                <TD colspan="2" >
                  <TABLE cellSpacing=0 cellPadding=0 border=0>
                    <TBODY>
                    <TR>
                      <TD>
                        <TABLE cellSpacing=2 cellPadding=0 width="100%" 
                          border=0>
                          <TBODY>
                          <TR>
                            <TD><FONT class=f2>国家区号：</FONT></TD>
                            <TD><FONT class=f2>城市区号：</FONT></TD>
                            <TD colSpan=2><FONT class=f2>号码：</FONT></TD></TR>
                          <TR>
                            <TD><INPUT class=f2 maxLength=8 size=8 value="<%=pharry(0)%>" 
                              name="phonecountry"></TD>
                            <TD><INPUT class=f2 maxLength=8 size=8 value="<%=pharry(1)%>" 
                              name="phonearea"></TD>
                        <TD><INPUT class=f2 maxLength=30 size=13 
                              value="<%=pharry(2)%>" 
                        name="phonenumber"></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
              <TR bgcolor="#F7F7F7" onMouseOut="this.style.backgroundColor='#F7F7F7'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
                <TD height="25" ><B>传真：</B></TD>
                <TD colspan="2" >
                  <TABLE cellSpacing=0 cellPadding=0 border=0>
                    <TBODY>
                    <TR >
                      <TD>
                        <TABLE cellSpacing=2 cellPadding=0 border=0>
                          <TBODY>
                          <TR >
                            <TD>国家区号：</TD>
                            <TD>城市区号：</TD>
                            <TD>号码：</TD></TR>
                          <TR>
						                <%select case ubound(faarry)
				case 0
				response.write"<TD><INPUT class=f2 maxLength=8 size=8 value='"&rs("fax")&"' name=faxCountry></TD><TD><INPUT class=f2 maxLength=8 size=8 name=faxArea></TD><TD><INPUT class=f2 maxLength=30 size=13 name=faxNumber></TD>"
				case 1
				response.write"<TD><INPUT class=f2 maxLength=8 size=8 value='"&faarry(0)&"' name=faxCountry></TD><TD><INPUT class=f2 maxLength=8 size=8 value='"&faarry(1)&"' name=faxArea></TD><TD><INPUT class=f2 maxLength=30 size=13 name=faxNumber></TD>"
				case 2
				response.write"<TD><INPUT class=f2 maxLength=8 size=8 value='"&faarry(0)&"' name=faxCountry></TD><TD><INPUT class=f2 maxLength=8 size=8 value='"&faarry(1)&"' name=faxArea></TD><TD><INPUT class=f2 maxLength=30 size=13 value='"&faarry(2)&"' name=faxNumber></TD>"
				end select%>
                            </TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
              <TR  bgcolor="#F7F7F7" onMouseOut="this.style.backgroundColor='#F7F7F7'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
                <TD height="25" ><B>手机：</B></TD>
                <TD colspan="2" ><INPUT maxLength=15 size=30 value="<%=rs("mobile")%>" 
				name="mobile"></TD></TR>
              <TR  bgcolor="#F7F7F7" onMouseOut="this.style.backgroundColor='#F7F7F7'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
                <TD height="25" ><B>邮政编码：</B></TD>
                <TD colspan="2" ><INPUT maxLength=10 size=10 value="<%=rs("post")%>" 
				name="post"></TD></TR> 

              <TR  bgcolor="#F7F7F7" onMouseOut="this.style.backgroundColor='#F7F7F7'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
                <TD ><B><FONT 
                  color=#ff0000>所在地区：</FONT></B> </TD>
                <TD  colSpan=3>
                  <TABLE id=div1 cellSpacing=0 cellPadding=3 width="100%" 
                  border=0>
                    <TBODY>
                    <TR>
                      <TD>
<SELECT style="WIDTH: 90px"   onchange=javascript:changeCountry1(this); name=country1>
    </SELECT> <SELECT style="WIDTH: 60px"     onchange=changeProvince(this); name=province>
       <OPTION value=""    selected>省份</OPTION>
       </SELECT> 
	   <SELECT name=city>   
	     <OPTION value=""     selected>地级</OPTION>
      </SELECT>
  <SCRIPT language=javascript src="../../js/area1.js"   purpose="INITIALIZER"></SCRIPT>
  <SCRIPT language=javascript>
<!--
    //设置国家1的缺省值
    for (var i=0;i<5;i++){
	    if (country1form.options[i].value == '<%=rs("country")%>'){
		    country1form.options[i].selected=true;
		}
	}
     for (var i=0;i<catArr1.length;i++) {
		catform.options[i+1]=new Option(catArr1[i].title,catArr1[i].id);
		//设置省选择框的选择值
		if(catform.options[i+1].value == '<%=rs("sf")%>'){
	        	catform.options[i+1].selected=true;
	        }
	}
	changeProvince(catform);
	var len = boardform.options.length;
	for (var i=0;i<len;i++) {
		//设置城市选择框的选择值
		if(boardform.options[i].value == '<%=rs("city")%>') {
		    boardform.options[i].selected=true;
		}
	}
     if (country1form.options[country1form.selectedIndex].value!='中国') {
	    catform.style.display = 'none';
	    boardform.style.display = 'none';
		}
 -->
</SCRIPT>                    </TD></TR></TBODY></TABLE>
                <TR bgcolor="#F7F7F7" onMouseOut="this.style.backgroundColor='#F7F7F7'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
                <TD ><B>街道地址：</B></TD>
                <TD  colSpan=3>
                  <TABLE width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD><INPUT  title=请补充后面的详细街道地址 maxLength=100 size=30 value="<%=rs("address")%>"   name="address"></TD></TR>
                    <TR>
                  <TD><FONT class=note>请补充县（区）、街道、门牌号</FONT>                  </TD></TR></TBODY></TABLE></TD></TR>
      </TABLE></td>
    </tr>
    <tr>
      <th height=23 align=left>公司名称和主营业务</th>
    </tr>
    <tr>
      <td><TABLE width="100%" border=0 cellPadding=0 cellSpacing=1 bgcolor="#F7F7F7">
              <TBODY>
              <TR  bgcolor="#F7F7F7" onMouseOut="this.style.backgroundColor='#F7F7F7'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
                <TD  width="16%"><B>公司名称：</B></TD>
                <TD ><INPUT  maxLength=50 size=30 value="<%=rs("qymc")%>" name="qymc"> 
                  <BR>&nbsp;&nbsp;<FONT class=note>请提供在工商管理局注册的公司全称</FONT></TD></TR>
              <TR  bgcolor="#F7F7F7" onMouseOut="this.style.backgroundColor='#F7F7F7'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
                <TD height="25" ><B>我的职位：</B></TD>
                <TD  colSpan=2><INPUT maxLength=16 size=30 value="<%=rs("zw")%>" 
                  name="zw"></TD></TR>
              <TR  bgcolor="#F7F7F7" onMouseOut="this.style.backgroundColor='#F7F7F7'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
                <TD height="25" ><B>主营行业：</B></TD>
                <TD >
				<select name="p_z_Z_RootCategory" onChange="changeCategory(this)"  >
                  <option value="0" selected>--请选择行业大类--</option>
                 </select> <select name="p_z_Z_CategoryId1" maxlength="80">
                  <option value="0" selected>--请选择行业子类--</option>
                   </select>  </TD></TR>
              <TR  bgcolor="#F7F7F7" onMouseOut="this.style.backgroundColor='#F7F7F7'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
                <TD ><B>网站地址：<BR>
                    <BR></B></TD>
                <TD ><INPUT maxLength=50 size=30 value="<%=rs("web")%>"
                  name="web"> <BR>如果没有，可以不填</TD></TR>
				  
<TR  bgcolor="#F7F7F7" onMouseOut="this.style.backgroundColor='#F7F7F7'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
                <TD height="25" ><B>主营产品/服务：</B></TD>
                <TD >
				          <%
				if zycp<>"" then
				  if instr(zycp,",")>0 then
				        zcarry=split(rs("zycp"),",")
				        if ubound(zcarry)=1 then
				           response.write"<INPUT maxLength=10 size=10 value='"&zcarry(0)&"' name=productionService>, <INPUT maxLength=10 size=10 value='"&zcarry(1)&"' name=productionService2>, <INPUT maxLength=10 size=10 name=productionService3>"
				           elseif ubound(zcarry)=2 then
				           response.write"<INPUT maxLength=10 size=10 value='"&zcarry(0)&"' name=productionService>, <INPUT maxLength=10 size=10 value='"&zcarry(1)&"' name=productionService2>, <INPUT maxLength=10 size=10 value='"&zcarry(2)&"' name=productionService3>"
                           elseif ubound(zcarry)>2 then
				           response.write"<INPUT maxLength=10 size=10 value='"&zcarry(0)&"' name=productionService>, <INPUT maxLength=10 size=10 value='"&zcarry(1)&"' name=productionService2>, <INPUT maxLength=10 size=10 value='"&zcarry(2)&"' name=productionService3>"
                         end if
				  else
				  response.write"<INPUT maxLength=10 size=10 value='"&zycp&"' name=productionService>, <INPUT maxLength=10 size=10 name=productionService2>, <INPUT maxLength=10 size=10 name=productionService3>"
                  end if
				else
				response.write"<INPUT maxLength=10 size=10 name=productionService>, <INPUT maxLength=10 size=10 name=productionService2>, <INPUT maxLength=10 size=10 name=productionService3>"
				end if%>
                          
                          
				
				 <INPUT type=hidden        name=p_z_Z_productionService> <BR>
                          <SPAN class=note>（3个主要相关产品名/服务名，最少要填一个） </SPAN></TD>
                </TR>
<TR  bgcolor="#F7F7F7" onMouseOut="this.style.backgroundColor='#F7F7F7'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
                <TD height="25" ><FONT color=#ff0000>* </FONT><B>经营模式：</B></TD>
                <TD >
				<INPUT type=checkbox value="生产型" <%if instr(rs("qylb"),"生产型")>0 then Response.Write "checked"%> name=qylb>生产型 
				<INPUT type=checkbox value="贸易型" <%if  instr(rs("qylb"),"贸易型")>0   then Response.Write "checked"%> name=qylb>贸易型
				 <INPUT type=checkbox value="服务型" <%if  instr(rs("qylb"),"服务型")>0  then Response.Write "checked"%> name=qylb>服务型
				  <INPUT  type=checkbox value="政府或其他机构" <%if instr(rs("qylb"),"政府或其他机构")>0  then Response.Write "checked"%> name=qylb>政府或其他机构 
			  </TD></TR>
				<TR  bgcolor="#F7F7F7" onMouseOut="this.style.backgroundColor='#F7F7F7'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
                <TD height="25" ><B>法人代表：</B></TD>
                <TD ><INPUT maxLength=50 size=30 
                  name="frdb" value="<%=rs("frdb")%>"> </TD></TR>
				  
<TR  bgcolor="#F7F7F7" onMouseOut="this.style.backgroundColor='#F7F7F7'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
                <TD  width="16%"><FONT color=#ff0000>* 
                  </FONT><B>公司介绍：</B><BR>
              <SPAN 
                  class=note>（50-2000字）</SPAN></TD>
                <TD width="84%" ><textarea name="qyjj" rows=10 cols=90><%=rs("qyjj")%></textarea>                  <BR>
                  <FONT 
                  class=note>
                    <LI>此处<FONT 
                  color=#ff0000>禁止填写联系人、电话、传真、地址、网址、email等信息</FONT>。 
                    <LI>请用汉字描述公司优势(不要用英文)，不要反复复制。 
              <LI>不要使用广告词或夸大性的语句，不要加图片及Html代码。 </LI></FONT></TD></TR>				  
		  </TBODY></TABLE>
 <TABLE width="100%" border=0 cellPadding=4 cellSpacing=0>
              <TBODY>
              <TR>
                
                <TD height="30" Align=center class="forumRow"><INPUT class=subbutton style="WIDTH: 160px" onClick="FormCheck()" type=button value=" 确定更新资料 " name=Post> 
        </TD></TR></TBODY></TABLE>
	  </td>
    </tr></FORM>

  </table>
<script>

        //category methods
        function Category(id,title) {
                this.id = id;
                this.title=title;
                this.boardlist=new Array();
                this.addBoard=addBoard;
                this.getOptions = getOptions;
        }        
        
        function addBoard(board) {
                this.boardlist = this.boardlist.concat(board);
        }
        
        function getOptions() {
                var tmp = new Array();
                for(var i=0; i < this.boardlist.length;i++) {
                        var b = this.boardlist[i];
                        tmp[i]= b.getOption();
                }
                return tmp;
        }
        
        //board methods
        function Board(catid,id,title,total) {                
                this.catid=catid;
                this.id=id;
                this.title=title;
                this.getOption=getOption;
        }
                
        function getOption() {
                return new Option(this.title,this.id);                
        }
                
        function changeCategory(list) {
        if (list.selectedIndex<=0) {
                catForm.options[0].selected=true;
                var len = boardForm.options.length;
                for (var i=len-1;i>0;i--){
                        boardForm.options[i]=null;
                }                                        
         }
        else {
                var boards = catArr[list.selectedIndex-1].getOptions();
                var len = boardForm.options.length;
                for (var i=len-1;i>0;i--){
                        boardForm.options[i]=null;
                }                
                for (var i=0;i<boards.length;i++) {
                        boardForm.options[i+1]=boards[i];
                }
                }
                boardForm.options[0].selected=true;
        }
                
        function selectBoard(catid,bid,list) {
                var isExist = false; //是否是叶子类目
                for(var i=0;i<catForm.length;i++) {
                        if (catForm.options[i].value==catid) {
                                //alert("get Category");
                                catForm.options[i].selected=true;
                                changeCategory(catForm);
                                break;                        
                        }                        
                }                                
                for(var i=0;i<boardForm.length;i++) {
                        if (boardForm.options[i].value==bid) {
                                //alert("get Board");
                                boardForm.options[i].selected=true;  
                                isExist = true;                              
                                break;
                        }                        
                }   
                
                if (!isExist) {//如果是二级类目，则下拉框只显示该二级类目下所有类目                   
                    var boards = catArr[catForm.selectedIndex-1].getOptions();
                    var len = boardForm.options.length;
                    for (var i=len-1;i>0;i--){
                        boardForm.options[i]=null;
                    }     
                    var locate = 1;           
                    for (var i=0;i<boards.length;i++) {                                                              
                        if(boards[i].text.indexOf(bid) == 0){
                            boardForm.options[locate]=boards[i];
                            locate++;
                        }                                                
                    }
                
                    boardForm.options[0].selected=true;   
                }            
        }        

        //static methods        
        var catArr = new Array();
        var cur;   
		//init catform
        var catForm = document.form.p_z_Z_RootCategory;
        var boardForm = document.form.p_z_Z_CategoryId1;
        
        
        
        function showCategorys() {
            var catId = catForm.value
            if(boardForm.value){
                catId = boardForm.value
            }else if(catForm.value){
                catId = catForm.value
            }
            window.open('/tradeinfo/smalllist.asp?sortid='+catId,'newwin','toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=600,height=500')            
        }
        for (var i=0;i<catArr.length;i++) {
                catForm.options[i+1]=new Option(catArr[i].title,catArr[i].id);
        }
  
                      function initRootCategorys(){
	    for (var i=0;i<catArr.length;i++) {
		 catForm.options[i+1]=new Option(catArr[i].title,catArr[i].id);
	    }
	}  
        //init                
</script>
<script src="../../js/allCategorys.js"></script>
<script>
initRootCategorys(); 
</script>
<script>
selectBoard("<%=sid%>","<%=tid%>,<%=tid2%>");
</script>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<!--#include file="../copy.asp"-->