<select name="Solution">
<option>select Solution</option>
<%
if request("reason")<> "" then
dim rs5,sql5
sql5="select distinct solution.*,item.* from Solution,item where solution.reasonid="&cint(trim(request("reason")))&" and solution.itemid=item.itemid and solution.productid="&cint(trim(request("product")))&""
set rs5=server.CreateObject("adodb.recordset")
rs5.open sql5,conn,3,3
do while not rs5.eof%>
<option value="<%=rs5("Solutionid")%>" select <%
if rs5("reasonid")=cint(trim(request("reason"))) then
response.Write("select")
titem=rs5("itemid")
end if%>><%=trim(rs5("ino"))%></option>
<% rs5.movenext
loop
end if
%>
</select>
<% if request("reason")<>"" then %>
<input name="button" type="button" onClick="window.open('checkstore.asp?item=<%=titem%>','','width=600,height=150')" value="check store">
<% end if%> </td>