<!--#include file="../../conn/conn.asp" -->
<!--#include file="../../Inc/Commoncode.asp" -->
<!--#include file="../checkvalid.asp"-->
<%
If Not FRAdminLevel(112) Then
	Call ErrorMsg()
End If
SiteName=replace(request("nameid")," ","")
if SiteName&""="" then
	cc="<input name=""SiteId"" type=""text"" id=""SiteId"" readonly value=""查无此省会"">"
else
	sql="select * from JOB_provinceandcity where province_city like '%"&SiteName&"%'"
	set rsw=conn.execute(sql)
	if not rsw.eof then
		aa="<input maxlength=""100"" size=""20"" name=""SiteN"" type=""text"" id=""Site_sortname"" onChange=""HtmlDir.value=myConvert(this.value);"" value="&rsw("province_city")&">"
		cc="<input name=""Site"" type=""text"" id=""Site"" size=""10"" readonly value="&rsw("id")&">"
	else
		aa="<input maxlength=""100"" size=""20"" name=""SiteN"" type=""text"" id=""Site_sortname""  onChange=""HtmlDir.value=myConvert(this.value);"" value="&SiteName&">"
		cc="<input name=""Site"" type=""text"" id=""Site"" size=""10"" readonly value=""查无此省会"">"
	end if
	rsw.close
	set rsw=nothing
end if
%>
<script>
parent.load100.innerHTML='<%=aa%>';
parent.load300.innerHTML='<%=cc%>';
</script>