<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <% 
	data_path="../../" 'ACC连接数据库路径，对SQL无效
	numid="no"
	dir="no" 
  %>
  <!--#include file="../../conn/conn.asp"-->
<!--#include file="../../inc/safe.asp"-->
 <!--#include file="../rolecheck.asp"-->
<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 Yixiang_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;")
for i=0 to UBound(pharry)
	select case i
		case 0
			pharry0=pharry(i)
		case 1
			pharry1=pharry(i)
		case 2
			pharry2=pharry(i)
	end select
next
faarry=split(rs("fax"),"&nbsp;")
for i=0 to UBound(faarry)
	select case i
		case 0
			faarry0=faarry(i)
		case 1
			faarry1=faarry(i)
		case 2
			faarry2=faarry(i)
	end select
next
set rs3=conn.execute("select Yixiang_class_2.*,Yixiang_class_1.* from Yixiang_class_2,Yixiang_class_1 where Yixiang_class_2.typeid="&rs("typeid")&" and Yixiang_class_1.sortid=Yixiang_class_2.sortid")
%>
<body onload="setarea();">
<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")%>&LogName=35" 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  ><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 ><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 >
				<select size="1" name="gradeid" >
 <%
	set rsd=server.CreateObject("adodb.recordset")
	sqld="select * from yixiang_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>
				 </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 >
				<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="2" 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 width="84%" ><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 ><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 ><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 >
                  <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="<%=pharry0%>" 
                              name="phonecountry"></TD>
                            <TD><INPUT class=f2 maxLength=8 size=8 value="<%=pharry1%>" 
                              name="phonearea"></TD>
                        <TD><INPUT class=f2 maxLength=30 size=13 
                              value="<%=pharry2%>" 
                        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 >
                  <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 ><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 ><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=2>
                  <TABLE id=div1 cellSpacing=0 cellPadding=3 width="100%" 
                  border=0>
                    <TBODY>
                    <TR>
                      <TD>
  
 
<SCRIPT language=javascript src="../../js/area1.js"   purpose="INITIALIZER"></SCRIPT>
<script type="text/javascript">	var placeD=["country1","province","city"];</script>
<select id="country1" name="country1" onChange="changeRegion(placeD,1)"></select>
&nbsp;
<select name="province" id="province" onChange="changeRegion(placeD,2)"></select>
&nbsp;
<select name="city" id="city" onChange="changeRegion(placeD,3)" ></select>
<script type="text/javascript">changeRegion(placeD,0); </script>
        <input value="<%=rs("country")%>" id="countryValue" type="hidden" name="countryValue"></input>
		<input value="<%=rs("sf")%>" id="stateValue" type="hidden" name="stateValue"></input>
		<input value="<%=rs("city")%>" id="cityValue" type="hidden" name="cityValue"></input>
<script language="JavaScript" type="text/javascript">
   			setup();
   			//处理国家
   			var conArray=document.getElementById("country1").options;
			var conValue=rTrim(document.getElementById("countryValue").value);
			if (conArray.length>0){
				for(i=0;i<conArray.length;i++){
					if (conArray[i].text==conValue){
						document.getElementById("country1").selectedIndex=i;
						change(1);
						break;
					}
				}
			}
   			//处理省份
   			var stateArray=document.getElementById("province").options;
			var stateValue=rTrim(document.getElementById("stateValue").value);
			if (stateValue.length>0){
				for(i=0;i<stateArray.length;i++){
					if (stateArray[i].text==stateValue){
						document.getElementById("province").selectedIndex=i;
						change(2);
						break;
					}
				}
			}
			//处理城市
			var cityArray=document.getElementById("city").options;
			var cityValue=rTrim(document.getElementById("cityValue").value);
			if (cityValue.length>0){
				for(i=0;i<cityArray.length;i++){
					if (cityArray[i].text==cityValue){
						document.getElementById("city").selectedIndex=i;
						break;
					}
				}
			}
   	  </script>
                    </TD></TR></TBODY></TABLE>
                <TR bgcolor="#F7F7F7" onMouseOut="this.style.backgroundColor='#F7F7F7'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
                <TD ><B>街道地址：</B></TD>
                <TD  colSpan=2>
                  <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><div style="BORDER-RIGHT: #dac010 1px solid; PADDING-RIGHT: 6px; BORDER-TOP: #dac010 1px solid; PADDING-LEFT: 6px; PADDING-BOTTOM: 6px; BORDER-LEFT: #dac010 1px solid; PADDING-TOP: 6px; BORDER-BOTTOM: #dac010 1px solid"><font color=#ff0000   >*</font>请选择完整的行业大类和子类，并添加为主营行业，最多可添加 
                  <FONT color=#ff0000><B>6</B></FONT> 个！</div></TD>
</TR>
<tr bgcolor="#FFFFFF" onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
  <TD>&nbsp;</TD>
  <TD>
    <SELECT id=topCatFormKey 
                  style="WIDTH: 120px; height:120px;" onchange=onChangeTopCategory() size=8 
                  name=topCatFormKey>
    </SELECT> 
    <SELECT id=secondCatFormKey 
                  style="WIDTH: 120px; height:120px;" onchange=onChangeSecondCategory() size=8 
                  name=secondCatFormKey>
    </SELECT> 
    <SELECT id=leafCatFormKey 
                  style="WIDTH: 120px; height:120px;" onchange=onChangeLeafCategory() size=8 
                  name=leafCatFormKey>
    </SELECT>
  <input name="topCatFormKeyValue" type="hidden" id="topCatFormKeyValue" value="<%=rs("sortid")%>">
  <input name="secondCatFormKeyValue" type="hidden" id="secondCatFormKeyValue" value="<%=rs("typeid")%>">
  <input name="leafCatFormKeyValue" type="hidden" id="leafCatFormKeyValue" value="<%=rs("typeid_2")%>">
  </TD>
</TR>
<tr bgcolor="#FFFFFF" onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
  <TD>&nbsp;</TD>
  <TD style=""><DIV style="margin-left:150px;">
                  <P><IMG id=img_leadtype height=19 
                  src="../../image/orangedown14x19.gif" width=14 style="margin-left:60px;"><BR><INPUT onClick="doSubmit1('select');setSelectID();" type=button value=添加为主营行业 name=Submit3> 
                  <BR><IMG id=img_leadtype height=19 
                  src="../../image/orangedown14x19.gif" width=14 style="margin-left:60px;">                </P>
  </DIV></TD>
</TR>
<tr bgcolor="#FFFFFF" onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
  <TD><strong>您选择的主营行业是：</strong> </TD>
  <TD>
  <SELECT style="WIDTH: 365px; height:120px;" size=8 name=right_category_id>
  </SELECT>
  <BR>如选择有误，选择对应行业,点击“删除”即可：<INPUT onClick="doSubmit1('deselect');setSelectID();" type=button value=删除 name=Submit22>
  <input name="selectID" type="hidden" id="selectID" value="<%=rs("alltypeid")%>"></TD>
</TR>
<SCRIPT language=JavaScript src="../../js/changehope.js"></SCRIPT>
<SCRIPT language=JavaScript src="../../js/allCategorys.js"></SCRIPT>
<SCRIPT language=JavaScript>
function addValue()
{
document.form.topCatFormKeyValue.value=document.form.topCatFormKey.value;
document.form.secondCatFormKeyValue.value=document.form.secondCatFormKey.value;
document.form.leafCatFormKeyValue.value=document.form.leafCatFormKey.value;
}
//调用initTopCategoryForm函数向列表中加入数据
initTopCategoryForm();
//setSelectID();
var selectID=split(document.form.selectID.value,"|");
for(i=0;i<selectID.length;i++)
{
	var GetValue=split(selectID[i],"&");
	document.form.right_category_id.options[document.form.right_category_id.length] =  new Option(GetValue[1],GetValue[0]);
}
</SCRIPT>
              <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>

<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<!--#include file="../copy.asp"-->
