<!--#include file="../siteconfig/conn.asp"-->
var keyword
keyword="";
if(document.ksform.ksinput.value!=""){

<%
dim key,i,j
key=Request("key")
i=0
j=1
set rs=server.createobject("adodb.recordset")
   rs.open"select Url_Url,Url_Name from Url where Url_Name like '%"&key&"%'",conn,1,3
do while not rs.eof and not rs.bof
if j>7 then
   exit do
end if
if i<6 then
   i=i+1
else
   i=1
   j=j+1
end if
%>
if(keyword=="")
{
keyword="<li><a href=<%=rs("Url_Url")%>  title=<%=rs("Url_Name")%>><%=left(rs("Url_Name"),7)%></a></li>";
}else{
keyword=keyword+"<li><a href=<%=rs("Url_Url")%>  title=<%=rs("Url_Name")%>><%=left(rs("Url_Name"),7)%></a></li>";
}
<%
rs.movenext
loop
rs.close

%>
document.getElementById("nav").innerHTML="<ul>"+keyword+"</ul>";

}
if(document.ksform.ksinput.value==""){
	 document.getElementById("nav").innerHTML=document.getElementById("keynav").innerHTML;
}