<%@ Language=VBScript %>
<!--#include virtual="/inc-freehost-function/FreeHostFunction.asp"-->
<!--#include virtual="/inc-freehost-function/FreeHostFunctionMain.asp"-->
<%if session("username")="" And session("agentusername")="" and (session("admau")="" and session("DomainNameModid")="") then
session("login_tar")=Request.ServerVariables("URL")
session("login_form")=request.form
session("login_QueryString")=request.QueryString
session("selectedDomainName")=request.form("selectedDomainName")
session("usercanselectapi")=request.form("usercanselectapi")
Response.Redirect "/user/default.asp"
end if
fcon=Cstr(request.form("selectedDomainName"))
if fcon="" then
fcon=Cstr(session("selectedDomainName"))
end if
session("selectedDomainName")=fcon


'If InStr(session("selectedDomainName"),"xn--") then
'
'session("selectedDomainName")=ComX.actoidc_7i24_com(Cstr(session("selectedDomainName")))
'End if

if session("selectedDomainName")="" then Response.Redirect "e.asp?e=注册信息已失效，请重新查询域名。"

Dim enc
Enddomaintypeid=GetDomaintype(session("selectedDomainName"))

Set conn=Server.CreateObject("ADODB.Connection")
	conn.Open Application("FreeHostDBlink")

Domain_API=0
	Set RsDlist = Server.CreateObject("ADODB.Recordset")	
		Sql="Select * from FreeHost.FreeHost_DomainProductlist where id="&Enddomaintypeid
		RsDlist.Open Sql,conn,1,1
if not RsDlist.eof Then
Domain_API=RsDlist("regapi")
If Application("usercanselectapi")=true Then
If request.form("usercanselectapi")<>"" And IsNumeric(request.form("usercanselectapi")) Then
Domain_API=request.form("usercanselectapi")
Else
If session("usercanselectapi")<>"" And IsNumeric(session("usercanselectapi")) Then Domain_API=session("usercanselectapi")
End if
End If

Else
response.write "没有这个类型"
response.end
End if'有这个类型

'response.write Domain_API
'response.write Enddomaintypeid
'response.End


if session("agentusername")<>"" Then%>
<!--#include virtual="/inc-freehost-function/htmlwrite.asp"--><%=htmlwrite("html5")%>
<%else%>
<!--#include virtual="/inc-freehost-function/htmlwrite.asp"--><%=htmlwrite("html2")%>
<%End if%>
　 域名注册
<%if session("agentusername")<>"" Then%>
<%=htmlwrite("html6")%>
<%else%>
<%=htmlwrite("html3")%>
<%End if%>
<%if Request.QueryString ("id")<>"" and IsNumeric(Request.QueryString ("id"))  Then
Set dsdom = Server.CreateObject("ADODB.Recordset")
sql="Select * from FreeHost.FreeHost_Product_Domain where username='"&session("username")&"' and id='"&Request.QueryString ("id")&"'"
if session("agentusername")<>"" then sql="Select * from FreeHost.FreeHost_Product_Domain where agent1='"&session("agentusername")&"' and id='"&Request.QueryString ("id")&"'"
if session("admau")<>"" then sql="Select * from FreeHost.FreeHost_Product_Domain where id='"&Request.QueryString ("id")&"'"
if Instr(1,sql, ";", 1)>0 or Instr(1,sql, "--", 1)>0 then
Response.Write "非法字符！"
Response.End
end if
	dsdom.Open sql,conn,1,1
if dsdom.eof then
	ef=True
	ec="不存在的域名！"
end if



else'新注册检查模板中是否有
Set dsdom = Server.CreateObject("ADODB.Recordset")
sql="Select * from FreeHost.FreeHost_Product_Domain where username='"&session("username")&"' and istemplate='y' order by id desc"
if session("agentusername")<>"" then sql="Select * from FreeHost.FreeHost_Product_Domain where username='"&session("agentusername")&"' and istemplate='y' order by id desc"
	dsdom.Open sql,conn,1,1
if dsdom.eof then
	ef=True
	ec="不存在模板！"
end if
end if'是修改原有的

if not ef then
uname1=dsdom("uname1")
uname2=dsdom("uname2")
uname3=dsdom("uname3")
uname4=dsdom("uname4")
rname1=dsdom("rname1")
rname2=dsdom("rname2")
ust=dsdom("ust")
uprov=dsdom("uprov")
ucity1=dsdom("ucity1")
ucity2=dsdom("ucity2")
uaddr1=dsdom("uaddr1")
uaddr2=dsdom("uaddr2")
location=dsdom("location")
uzip=dsdom("uzip")
utelc=dsdom("utelc")
utela=dsdom("utela")
uteln=dsdom("uteln")
utele=dsdom("utele")
ufaxc=dsdom("ufaxc")
ufaxa=dsdom("ufaxa")
ufaxn=dsdom("ufaxn")
ufaxe=dsdom("ufaxe")
uemail=dsdom("uemail")
aname1=dsdom("aname1")
aname2=dsdom("aname2")
atelc=dsdom("atelc")
atela=dsdom("atela")
ateln=dsdom("ateln")
atele=dsdom("atele")
afaxc=dsdom("afaxc")
afaxa=dsdom("afaxa")
afaxn=dsdom("afaxn")
afaxe=dsdom("afaxe")
aemail=dsdom("aemail")
dns1=dsdom("dns1")
dns2=dsdom("dns2")
period=dsdom("years")
country=dsdom("country")
if Request.QueryString ("id")<>"" Then Domain_API=dsdom("Domain_API")
end if


%>
	<form method="POST" action="xindomainform2.asp" name="domainform">
              <table border="0" cellspacing="0" cellpadding="1" bgcolor="#993300" align="left" width="630">
                <tr>
                  <td><table border="0" cellspacing="1" cellpadding="3" width="630">
                      <tr>
                        <td colspan="2"><font color="#FFFFFF" size="2">填写域名注册申请表 </td>
                      </tr>
                      <tr bgcolor="#FFCC66">
                        <td width="30%">1. 域名</td>
                        <td align="center">注册年限</td>
                      </tr>
                      <!--LoopBegin-->
                      <tr>
                        <td width="30%" bgcolor="#FFFFFF" height="33"> <%=session("selectedDomainName")%>
                        <input name="dn" type="hidden" id="dn" value="<%=session("selectedDomainName")%>"> 
<%
if Application("onlyone")=true and Request.Form ("period")>1 and not (Enddomaintypeid=9 or Enddomaintypeid=4 or Enddomaintypeid=5) then period=1
%>
<input name="enc" type="hidden" value="<%=enc%>">

						</td>
                        <td height="33" align="center" bgcolor="#FFFFFF"><p>
                          <select name="period" size="1" id="period">
                            <option value="1" <%if period="1" then%>selected<%end if%>>1</option>
                            <option value="2" <%if period="2" then%>selected<%end if%>>2</option>
                            <option value="3" <%if period="3" then%>selected<%end if%>>3</option>
                            <option value="4" <%if period="4" then%>selected<%end if%>>4</option>
                            <option value="5" <%if period="5" then%>selected<%end if%>>5</option>
                          </select>
年
<%
regapi=Domain_API
agentname=session("agentname")
	Set dsendmoney = Server.CreateObject("ADODB.Recordset")	
		Sql="Select * from FreeHost.FreeHost_Agent_user_price where prtype='域名产品' and username='"&agentname&"' and id="&RsDlist("id")
		dsendmoney.Open Sql,conn,1,1
if not dsendmoney.eof then
UserpaymoneyEnd1=dsendmoney("usermoney")
UserpaymoneyEnd2=dsendmoney("year2")
UserpaymoneyEnd3=dsendmoney("year3")
UserpaymoneyEnd4=dsendmoney("year4")
UserpaymoneyEnd5=dsendmoney("year5")
if Application("domaincansetM")=true Then
If Not IsNull(dsendmoney("usermoney"&"API"&regapi)) Then UserpaymoneyEnd1=dsendmoney("usermoney"&"API"&regapi)
if Not IsNull(dsendmoney("year2"&"API"&regapi)) then UserpaymoneyEnd2=dsendmoney("year2"&"API"&regapi)
if Not IsNull(dsendmoney("year3"&"API"&regapi)) then UserpaymoneyEnd3=dsendmoney("year3"&"API"&regapi)
if Not IsNull(dsendmoney("year4"&"API"&regapi)) then UserpaymoneyEnd4=dsendmoney("year4"&"API"&regapi)
if Not IsNull(dsendmoney("year5"&"API"&regapi)) then UserpaymoneyEnd5=dsendmoney("year5"&"API"&regapi)
End if
else
UserpaymoneyEnd1=RsDlist("usermoney")
UserpaymoneyEnd2=RsDlist("year2")
UserpaymoneyEnd3=RsDlist("year3")
UserpaymoneyEnd4=RsDlist("year4")
UserpaymoneyEnd5=RsDlist("year5")
if Application("domaincansetM")=true Then
If Not IsNull(RsDlist("usermoney"&"API"&regapi)) Then UserpaymoneyEnd1=RsDlist("usermoney"&"API"&regapi)
if Not IsNull(RsDlist("year2"&"API"&regapi)) then UserpaymoneyEnd2=RsDlist("year2"&"API"&regapi)
if Not IsNull(RsDlist("year3"&"API"&regapi)) then UserpaymoneyEnd3=RsDlist("year3"&"API"&regapi)
if Not IsNull(RsDlist("year4"&"API"&regapi)) then UserpaymoneyEnd4=RsDlist("year4"&"API"&regapi)
if Not IsNull(RsDlist("year5"&"API"&regapi)) then UserpaymoneyEnd5=RsDlist("year5"&"API"&regapi)
end if
end if
dsendmoney.close
if session("AgnRunasUser")=True Then
	Set dsagnpri = Server.CreateObject("ADODB.Recordset")	
		Sql="Select * from FreeHost.FreeHost_Agent_price where prtype='域名产品' and username='"&agentname&"' and id="&RsDlist("id")
		dsagnpri.Open Sql,conn,1,1
if dsagnpri.eof then
myrealcost1=RsDlist("usermoneyagn")'不用折扣算
myrealcost2=RsDlist("year2agn")
myrealcost3=RsDlist("year3agn")
myrealcost4=RsDlist("year4agn")
myrealcost5=RsDlist("year5agn")

if Application("domaincansetM")=true Then
If Not isNull(RsDlist("usermoneyagn"&"API"&regapi)) Then myrealcost1=RsDlist("usermoneyagn"&"API"&regapi)'不用折扣算
if Not IsNull(RsDlist("year2agn"&"API"&regapi)) then myrealcost2=RsDlist("year2agn"&"API"&regapi)
if Not IsNull(RsDlist("year3agn"&"API"&regapi)) then myrealcost3=RsDlist("year3agn"&"API"&regapi)
if Not IsNull(RsDlist("year4agn"&"API"&regapi)) then myrealcost4=RsDlist("year4agn"&"API"&regapi)
if Not IsNull(RsDlist("year5agn"&"API"&regapi)) then myrealcost5=RsDlist("year5agn"&"API"&regapi)
End if

else
myrealcost1=dsagnpri("usermoney")
If IsNull(dsagnpri("usermoney")) Then myrealcost1=RsDlist("usermoneyagn")
myrealcost2=dsagnpri("year2")
If IsNull(dsagnpri("year2")) Then myrealcost2=RsDlist("year2agn")
myrealcost3=dsagnpri("year3")
If IsNull(dsagnpri("year3")) Then myrealcost3=RsDlist("year3agn")
myrealcost4=dsagnpri("year4")
If IsNull(dsagnpri("year4")) Then myrealcost4=RsDlist("year4agn")
myrealcost5=dsagnpri("year5")
If IsNull(dsagnpri("year5")) Then myrealcost5=RsDlist("year5agn")

if Application("domaincansetM")=true Then

If Not isNull(RsDlist("usermoneyagn"&"API"&regapi)) Then myrealcost1=RsDlist("usermoneyagn"&"API"&regapi)
if Not IsNull(RsDlist("year2agn"&"API"&regapi)) then myrealcost2=RsDlist("year2agn"&"API"&regapi)
if Not IsNull(RsDlist("year3agn"&"API"&regapi)) then myrealcost3=RsDlist("year3agn"&"API"&regapi)
if Not IsNull(RsDlist("year4agn"&"API"&regapi)) then myrealcost4=RsDlist("year4agn"&"API"&regapi)
if Not IsNull(RsDlist("year5agn"&"API"&regapi)) then myrealcost5=RsDlist("year5agn"&"API"&regapi)

If Not isNull(dsagnpri("usermoney"&"API"&regapi)) Then myrealcost1=dsagnpri("usermoney"&"API"&regapi)
if Not IsNull(dsagnpri("year2"&"API"&regapi)) then myrealcost2=dsagnpri("year2"&"API"&regapi)
if Not IsNull(dsagnpri("year3"&"API"&regapi)) then myrealcost3=dsagnpri("year3"&"API"&regapi)
if Not IsNull(dsagnpri("year4"&"API"&regapi)) then myrealcost4=dsagnpri("year4"&"API"&regapi)
if Not IsNull(dsagnpri("year5"&"API"&regapi)) then myrealcost5=dsagnpri("year5"&"API"&regapi)
End if

end if
dsagnpri.close
end if

%>价格：<%=UserpaymoneyEnd1%>元/1年 <%=UserpaymoneyEnd2%>元/2年 <%=UserpaymoneyEnd3%>元/3年 <%=UserpaymoneyEnd4%>元/4年 <%=UserpaymoneyEnd5%>元/5年
<%if session("AgnRunasUser")=True then%><font color=red>(代理成本价：<%=myrealcost1%>元/1年 <%=myrealcost2%>元/2年 <%=myrealcost3%>元/3年 <%=myrealcost4%>元/4年 <%=myrealcost5%>元/5年)</font><%End if%>	


<input name="client" type="hidden" id="client" value="<%=Application("Domain_Agent_username_2")%>">
                        </p></td>
                      </tr>
                      <!--LoopEnd-->
                      <tr>
                        <td bgcolor="#FF6600" width="30%"><font color="#FFFFFF">2. 注册单位</td>
                        <td bgcolor="#FFFFFF">　</td>
                      </tr>
                      <tr bgcolor="#FFCC66">
                        <td width="30%" bgcolor="#FFCC66"> 2.2 单位名称：（中文）<br>
            如个人注册，填写姓名即可 </td>
                        <td bgcolor="#FFFFFF">
                          <input name="uname1" id="uname1" value="<%=uname1%>" size="30" maxlength="80">
如：XX公司                    </td>
                      </tr>
                      <tr>
                        <td width="30%" bgcolor="#FFCC66"> 2.3 单位名称：（英文）<br>
            如个人注册，填写姓名即可,姓和名之间必须有空格间隔</td>
                        <td bgcolor="#FFFFFF">
                          <input name="uname2" id="uname2" value="<%=uname2%>" size="30" maxlength="100">
                          如：StarOut Soft</td>
                      </tr>
                      <tr>
                        <td bgcolor="#FFCC66" width="30%">2.6 注册人：（中文）</td>
                        <td bgcolor="#FFFFFF">
                          <input name="rname1" type="text" id="rname1" value="<%=rname1%>" size="20">
                        如：王三四(不能写公司名)</td>
                      </tr>
                      <tr>
                        <td bgcolor="#FFCC66" width="30%">2.7 注册人：（英文）<br>
            英文的姓和名之间必须有空格间隔</td>
                        <td bgcolor="#FFFFFF">
                          <input name="rname2" type="text" id="rname2" value="<%=rname2%>" size="20">
                        如：Wang ShanShi</td>
                      </tr>
<%if Application("api7select")=2 Then%>					  
                      <tr>
                        <td bgcolor="#FFCC66" width="30%">2.80 国家：</td>

                        <td bgcolor="#FFFFFF">
<select name="country">
<option value="CN" selected>中国 CHINA</option>
<option value="AF">AFGHANISTAN</option>
<option value="AL">ALBANIA</option>
<option value="BW">BOTSWANA</option>
<option value="DZ">ALGERIA</option>
<option value="AS">AMERICAN SAMOA</option>
<option value="AD">ANDORRA</option>
<option value="AO">ANGOLA</option>
<option value="AI">ANGUILLA</option>
<option value="AQ">ANTARCTICA</option>
<option value="AG">ANTIGUA AND BARBUDA</option>
<option value="AR">ARGENTINA</option>
<option value="AM">ARMENIA</option>
<option value="AW">ARUBA</option>
<option value="AU">AUSTRALIA</option>
<option value="AT">AUSTRI</option>
<option value="AZ">AZERBAIJAN</option>
<option value="BS">BAHAMAS</option>
<option value="BH">BAHRAIN</option>
<option value="BD">BANGLADESH</option>
<option value="BB">BARBADOS</option>
<option value="BY">BELARUS</option>
<option value="BE">BELGIUM</option>
<option value="BZ">BELIZE</option>
<option value="BJ">BENIN</option>
<option value="BM">BERMUDA</option>
<option value="BT">BHUTAN</option>
<option value="BO">BOLIVIA</option>
<option value="BA">BOSNIA AND HERZEGOVINA</option>
<option value="BV">BOUVET ISLAND</option>
<option value="BR">BRAZIL</option>
<option value="IO">BRITISH INDIAN OCEAN TERRITORY</option>
<option value="BN">BRUNEI DARUSSALAM</option>
<option value="BG">BULGARIA</option>
<option value="BF">BURKINA FASO</option>
<option value="BI">BURUNDI</option>
<option value="KH">CAMBODIA</option>
<option value="CM">CAMEROON</option>
<option value="CA">CANADA</option>
<option value="CV">CAPE VERDE</option>
<option value="KY">CAYMAN ISLANDS</option>
<option value="CF">CENTRAL AFRICAN REPUBLIC</option>
<option value="TD">CHAD</option>
<option value="CL">CHILE</option>
<option value="CX">CHRISTMAS ISLAND</option>
<option value="CC">COCOS (KEELING) ISLANDS</option>
<option value="CO">COLOMBIA</option>
<option value="KM">COMOROS</option>
<option value="CG">CONGO</option>
<option value="CD">CONGO, THE DEMOCRATIC REPUBLIC OF THE</option>
<option value="CK">COOK ISLANDS</option>
<option value="CR">COSTA RICA</option>
<option value="CI">C?TE D' IVOIRE</option>
<option value="HR">CROATIA</option>
<option value="CU">CUBA</option>
<option value="CY">CYPRUS</option>
<option value="CZ">CZECH REPUBLIC</option>
<option value="DK">DENMARK</option>
<option value="DJ">DJIBOUTI</option>
<option value="DM">DOMINICA</option>
<option value="DO">DOMINICAN REPUBLIC</option>
<option value="TP">EAST TIMOR</option>
<option value="EC">ECUADOR</option>
<option value="EG">EGYPT</option>
<option value="SV">EL SALVADOR</option>
<option value="GQ">EQUATORIAL GUINEA</option>
<option value="ER">ERITREA</option>
<option value="EE">ESTONIA</option>
<option value="ET">ETHIOPIA</option>
<option value="FK">FALKLAND ISLANDS (MALVINAS)</option>
<option value="FO">FAROE ISLANDS</option>
<option value="FJ">FIJI</option>
<option value="FI">FINLAND</option>
<option value="FR">FRANCE</option>
<option value="GF">FRENCH GUIANA</option>
<option value="PF">FRENCH POLYNESIA</option>
<option value="TF">FRENCH SOUTHERN TERRITORIES</option>
<option value="GA">GABON</option>
<option value="GM">GAMBIA</option>
<option value="GE">GEORGIA</option>
<option value="DE">GERMANY</option>
<option value="GH">GHANA</option>
<option value="GI">GIBRALTAR</option>
<option value="GR">GREECE</option>
<option value="GL">GREENLAND</option>
<option value="GD">GRENADA</option>
<option value="GP">GUADELOUPE</option>
<option value="GU">GUAM</option>
<option value="GT">GUATEMALA</option>
<option value="GN">GUINEA</option>
<option value="GW">GUINEA-BISSAU</option>
<option value="GY">GUYANA</option>
<option value="HT">HAITI</option>
<option value="HM">HEARD ISLAND AND MCDONALD ISLANDS</option>
<option value="VA">HOLY SEE (VATICAN CITY STATE)</option>
<option value="HN">HONDURAS</option>
<option value="HK">HONG KONG</option>
<option value="HU">HUNGARY</option>
<option value="IS">ICELAND</option>
<option value="IN">INDIA</option>
<option value="ID">INDONESIA</option>
<option value="IR">IRAN, ISLAMIC REPUBLIC OF</option>
<option value="IQ">IRAQ</option>
<option value="IE">IRELAND</option>
<option value="IL">ISRAEL</option>
<option value="IT">ITALY</option>
<option value="JM">JAMAICA</option>
<option value="JP">JAPAN</option>
<option value="JO">JORDAN</option>
<option value="KZ">KAZAKSTAN</option>
<option value="KE">KENYA</option>
<option value="KI">KIRIBATI</option>
<option value="KP">KOREA, DEMOCRATIC PEOPLE'S REPUBLIC OF</option>
<option value="KR">KOREA, REPUBLIC OF</option>
<option value="KW">KUWAIT</option>
<option value="KG">KYRGYZSTAN</option>
<option value="LA">LAO PEOPLE'S DEMOCRATIC REPUBLIC</option>
<option value="LV">LATVIA</option>
<option value="LB">LEBANON</option>
<option value="LS">LESOTHO</option>
<option value="LR">LIBERIA</option>
<option value="LY">LIBYAN ARAB JAMAHIRIYA</option>
<option value="LI">LIECHTENSTEIN</option>
<option value="LT">LITHUANIA</option>
<option value="LU">LUXEMBOURG</option>
<option value="MO">MACAU</option>
<option value="MK">MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF</option>
<option value="MG">MADAGASCAR</option>
<option value="MW">MALAWI</option>
<option value="MY">MALAYSIA</option>
<option value="MV">MALDIVES</option>
<option value="ML">MALI</option>
<option value="MT">MALTA</option>
<option value="MH">MARSHALL ISLANDS</option>
<option value="MQ">MARTINIQUE</option>
<option value="MR">MAURITANIA</option>
<option value="MU">MAURITIUS</option>
<option value="YT">MAYOTTE</option>
<option value="MX">MEXICO</option>
<option value="FM">MICRONESIA, FEDERATED STATES OF</option>
<option value="MD">MOLDOVA, REPUBLIC OF</option>
<option value="MC">MONACO</option>
<option value="MN">MONGOLIA</option>
<option value="MS">MONTSERRAT</option>
<option value="MA">MOROCCO</option>
<option value="MZ">MOZAMBIQUE</option>
<option value="MM">MYANMAR</option>
<option value="NA">NAMIBIA</option>
<option value="NR">NAURU</option>
<option value="NP">NEPAL</option>
<option value="NL">NETHERLANDS</option>
<option value="AN">NETHERLANDS ANTILLES</option>
<option value="NC">NEW CALEDONIA</option>
<option value="NZ">NEW ZEALAND</option>
<option value="NI">NICARAGUA</option>
<option value="NE">NIGER</option>
<option value="NG">NIGERIA</option>
<option value="NU">NIUE</option>
<option value="NF">NORFOLK ISLAND</option>
<option value="MP">NORTHERN MARIANA ISLANDS</option>
<option value="NO">NORWAY</option>
<option value="OM">OMAN</option>
<option value="PK">PAKISTAN</option>
<option value="PW">PALAU</option>
<option value="PS">PALESTINIAN TERRITORY, OCCUPIED</option>
<option value="PA">PANAMA</option>
<option value="PG">PAPUA NEW GUINEA</option>
<option value="PY">PARAGUAY</option>
<option value="PE">PERU</option>
<option value="PH">PHILIPPINES</option>
<option value="PN">PITCAIRN</option>
<option value="PL">POLAND</option>
<option value="PT">PORTUGAL</option>
<option value="PR">PUERTO RICO</option>
<option value="QA">QATAR</option>
<option value="RE">RéUNION</option>
<option value="RO">ROMANIA</option>
<option value="RU">RUSSIAN FEDERATION</option>
<option value="RW">RWANDA</option>
<option value="SH">SAINT HELENA</option>
<option value="KN">SAINT KITTS AND NEVIS</option>
<option value="LC">SAINT LUCIA</option>
<option value="PM">SAINT PIERRE AND MIQUELON</option>
<option value="VC">SAINT VINCENT AND THE GRENADINES</option>
<option value="WS">SAMOA</option>
<option value="SM">SAN MARINO</option>
<option value="ST">SAO TOME AND PRINCIPE</option>
<option value="SA">SAUDI ARABIA</option>
<option value="SN">SENEGAL</option>
<option value="SC">SEYCHELLES</option>
<option value="SL">SIERRA LEONE</option>
<option value="SG">SINGAPORE</option>
<option value="SK">SLOVAKIA</option>
<option value="SI">SLOVENIA</option>
<option value="SB">SOLOMON ISLANDS</option>
<option value="SO">SOMALIA</option>
<option value="ZA">SOUTH AFRICA</option>
<option value="GS">SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS</option>
<option value="ES">SPAIN</option>
<option value="LK">SRI LANKA</option>
<option value="SD">SUDAN</option>
<option value="SR">SURINAME</option>
<option value="SJ">SVALBARD AND JAN MAYEN</option>
<option value="SZ">SWAZILAND</option>
<option value="SE">SWEDEN</option>
<option value="CH">SWITZERLAND</option>
<option value="SY">SYRIAN ARAB REPUBLIC</option>
<option value="TW">CHINAESE TAIBEI</option>
<option value="TJ">TAJIKISTAN</option>
<option value="TZ">TANZANIA, UNITED REPUBLIC OF</option>
<option value="TH">THAILAND</option>
<option value="TG">TOGO</option>
<option value="TK">TOKELAU</option>
<option value="TO">TONGA</option>
<option value="TT">TRINIDAD AND TOBAGO</option>
<option value="TN">TUNISIA</option>
<option value="TR">TURKEY</option>
<option value="TM">TURKMENISTAN</option>
<option value="TC">TURKS AND CAICOS ISLANDS</option>
<option value="TV">TUVALU</option>
<option value="UG">UGANDA</option>
<option value="UA">UKRAINE</option>
<option value="AE">UNITED ARAB EMIRATES</option>
<option value="GB">UNITED KINGDOM</option>
<option value="US">UNITED STATES</option>
<option value="UM">UNITED STATES MINOR OUTLYING ISLANDS</option>
<option value="UY">URUGUAY</option>
<option value="UZ">UZBEKISTAN</option>
<option value="VU">VANUATU</option>
<option value="VE">VENEZUELA</option>
<option value="VN">VIET NAM</option>
<option value="VG">VIRGIN ISLANDS, BRITISH</option>
<option value="VI">VIRGIN ISLANDS, U.S.</option>
<option value="WF">WALLIS AND FUTUNA</option>
<option value="EH">WESTERN SAHARA</option>
<option value="YE">YEMEN</option>
<option value="YU">YUGOSLAVIA</option>
<option value="ZM">ZAMBIA</option>
<option value="ZW">ZIMBABWE</option>	
</select>


</td>
                      </tr>
<%end if%>					  
                      <tr>
                        <td width="30%" bgcolor="#FFCC66">2.8 省份：</td>
                        <td bgcolor="#FFFFFF">
                          <input name="ust" type="hidden" id="ust" value="CN">
                          <select name="uprov" size="1">
                            <option value="Beijing">请选择</option>
                            <option value="Beijing" <%if uprov="Beijing" then%>selected<%end if%>>北京</option>
                            <option value="Hongkong" <%if uprov="Hongkong" then%>selected<%end if%>>香港</option>
                            <option value="Aomen" <%if uprov="Aomen" then%>selected<%end if%>>澳门</option>
                            <option value="Taiwan" <%if uprov="Taiwan" then%>selected<%end if%>>台湾</option>
                            <option value="Shanghai" <%if uprov="Shanghai" then%>selected<%end if%>>上海</option>
                            <option value="Guangdong" <%if uprov="Guangdong" then%>selected<%end if%>>广东</option>
                            <option value="Shandong" <%if uprov="Shandong" then%>selected<%end if%>>山东</option>
                            <option value="Sichuan" <%if uprov="Sichuan" then%>selected<%end if%>>四川</option>
                            <option value="Fujian" <%if uprov="Fujian" then%>selected<%end if%>>福建</option>
                            <option value="Jiangsu" <%if uprov="Jiangsu" then%>selected<%end if%>>江苏</option>
                            <option value="Zhejiang" <%if uprov="Zhejiang" then%>selected<%end if%>>浙江</option>
                            <option value="Tianjin" <%if uprov="Tianjin" then%>selected<%end if%>>天津</option>
                            <option value="Chongqing" <%if uprov="Chongqing" then%>selected<%end if%>>重庆</option>
                            <option value="Hebei" <%if uprov="Hebei" then%>selected<%end if%>>河北</option>
                            <option value="Henan" <%if uprov="Henan" then%>selected<%end if%>>河南</option>
                            <option value="Heilongjiang" <%if uprov="Heilongjiang" then%>selected<%end if%>>黑龙江</option>
                            <option value="Jinlin" <%if uprov="Jinlin" then%>selected<%end if%>>吉林</option>
                            <option value="Liaoning" <%if uprov="Liaoning" then%>selected<%end if%>>辽宁</option>
                            <option value="Neimenggu" <%if uprov="Neimenggu" then%>selected<%end if%>>内蒙古</option>
                            <option value="Hainan" <%if uprov="Hainan" then%>selected<%end if%>>海南</option>
                            <option value="Shanxi" <%if uprov="Shanxi" then%>selected<%end if%>>山西</option>
                            <option value="Shanxi3" <%if uprov="Shanxi3" then%>selected<%end if%>>陕西</option>
                            <option value="Anhui" <%if uprov="Anhui" then%>selected<%end if%>>安徽</option>
                            <option value="Jiangxi" <%if uprov="Jiangxi" then%>selected<%end if%>>江西</option>
                            <option value="Gansu" <%if uprov="Gansu" then%>selected<%end if%>>甘肃</option>
                            <option value="Xinjiang" <%if uprov="Xinjiang" then%>selected<%end if%>>新疆</option>
                            <option value="Hubei" <%if uprov="Hubei" then%>selected<%end if%>>湖北</option>
                            <option value="Hunan" <%if uprov="Hunan" then%>selected<%end if%>>湖南</option>
                            <option value="Yunnan" <%if uprov="Yunnan" then%>selected<%end if%>>云南</option>
                            <option value="Guangxi" <%if uprov="Guangxi" then%>selected<%end if%>>广西</option>
                            <option value="Ningxia" <%if uprov="Ningxia" then%>selected<%end if%>>宁夏</option>
                            <option value="Guizhou" <%if uprov="Guizhou" then%>selected<%end if%>>贵州</option>
                            <option value="Qinghai" <%if uprov="Qinghai" then%>selected<%end if%>>青海</option>
                            <option value="Xizang" <%if uprov="Xizang" then%>selected<%end if%>>西藏</option>
                          </select>
                        </td>
                      </tr>
                      <tr>
                        <td width="30%" bgcolor="#FFCC66">2.9 城市：（中文）</td>
                        <td bgcolor="#FFFFFF">
                          <input name="ucity1" id="ucity1" value="<%=ucity1%>" size="20" maxlength="20">
                          如：广州
                        </td>
                      </tr>
                      <tr>
                        <td width="30%" bgcolor="#FFCC66">2.10 城市：（英文）</td>
                        <td bgcolor="#FFFFFF">
                          <input name="ucity2" id="ucity2" value="<%=ucity2%>" size="20" maxlength="30">
                        如：GuangZhou</td>
                      </tr>
                      <tr>
                        <td width="30%" bgcolor="#FFCC66">2.11 街道地址：（中文）</td>
                        <td bgcolor="#FFFFFF">
                          <input name="uaddr1" id="uaddr1" value="<%=uaddr1%>" size="40" maxlength="100">
                        如：X区X路X号                        </td>
                      </tr>
                      <tr>
                        <td width="30%" bgcolor="#FFCC66">2.12 街道地址：（英文）</td>
                        <td bgcolor="#FFFFFF">
                          <input name="uaddr2" id="uaddr2" value="<%=uaddr2%>" size="40" maxlength="120">
                        如：Star Street                        </td>
                      </tr>
                      <tr>
                        <td width="30%" bgcolor="#FFCC66">2.14 邮政编码：</td>
                        <td bgcolor="#FFFFFF">
                          <input name="uzip" id="uzip" value="<%=uzip%>" size="6" maxlength="6">
                        如：100000                        </td>
                      </tr>
					  
					  <tr>
                        <td width="30%" bgcolor="#FFCC66">3.11 电话：</td>
                        <td bgcolor="#FFFFFF">
                          <input name="utelc" id="utelc" value="86" size="5" maxlength="7" readonly="true">
                          <b>-</b>
                          <input name="utela" id="utela" value="<%=utela%>" size="4" maxlength="4">
                          <b>-</b>
                          <input name="uteln" id="uteln" value="<%=uteln%>" size="8" maxlength="8">
                          <br>
            国家区号 - 地区区号 -电话号码</td>
                      </tr>
                      <tr>
                        <td width="30%" bgcolor="#FFCC66">3.12 传真：</td>
                        <td bgcolor="#FFFFFF">
                          <input name="ufaxc" id="ufaxc" value="86" size="5" maxlength="7" readonly="true">
                          <b>-</b>
                          <input name="ufaxa" id="ufaxa" value="<%=ufaxa%>" size="4" maxlength="4">
                          <b>-</b>
                          <input name="ufaxn" id="ufaxn" value="<%=ufaxn%>" size="8" maxlength="8">
                          <br>
            国家区号 - 地区区号 -传真号码</td>
                      </tr>
                      <tr>
                        <td width="30%" bgcolor="#FFCC66">3.13 电子邮件：</td>
                        <td bgcolor="#FFFFFF">
                          <input name="uemail" id="uemail" value="<%=uemail%>" size="40" maxlength="40">
                        </td>
                      </tr>
<!--				
                      <tr>
                        <td bgcolor="#FF6600" width="30%"><font color="#FFFFFF" size="2">4. 域名服务器</td>
                        <td bgcolor="#FFFFFF"> </td>
                      </tr>
  
                      <tr>
                        <td width="30%" bgcolor="#FFCC66">4.1 主域名服务器名字：</td>
                        <td bgcolor="#FFFFFF">
<input name="dns1" type="text" id="dns1" value="<%=dns1%>" size="30" maxlength="40">
                        </td>
                      </tr>
                      <tr>
                        <td width="30%" bgcolor="#FFCC66">4.5 辅域名服务器名字：</td>
                        <td bgcolor="#FFFFFF"> 
<input name="dns2" type="text" id="dns1" value="<%=dns2%>" size="30" maxlength="40">
                        </td>
                      </tr>
-->					  
                      <tr>
                        <td colspan="2" bgcolor="#FFFFFF" align="center">
                          <input name="istemplate" type="checkbox" id="istemplate" value="y" checked>
将注册信息保存为以后注册用的模板<br><br>
<input type="hidden" name="usercanselectapi" value="<%=Domain_API%>">　
<input type="submit" name="B1" value="到下一步">
                        <input type="reset" value="全部清除，重新填写" name="B2"><br>
                        <br></td>
                      </tr>
                  </table></td>
                </tr>
              </table>
              <br>
              <br>
              <br>
</form>
<%if session("agentusername")<>"" Then%>
<%=htmlwrite("html7")%>
<%else%>
<%=htmlwrite("html4")%>
<%End if%>
