<% 'This file is part of ProductCart, an ecommerce application developed and sold by Early Impact LLC. ProductCart, its source code, the ProductCart name and logo are property of Early Impact, LLC. Copyright 2001-2003. All rights reserved. You are not allowed to use, alter, distribute and/or resell any parts of ProductCart's source code without the written consent of Early Impact. To contact Early Impact, please visit www.earlyimpact.com. %> <% response.Buffer=true %> <% on error resume next '******************************* ' Page Name '******************************* Dim pcStrPageName pcStrPageName = "search.asp" %> <% Dim query, conntemp, rs, rstemp call openDb() %> <% '// Initialize the Prototype.js files Dim pcv_strPrototype Response.Write(pcf_InitializePrototype()) %> <%IF scStoreUseToolTip=1 THEN%> <%'**** Check MAC IE Browser ****************** UserBrowser=Request.ServerVariables("HTTP_USER_AGENT") MACIEBrowser=0 OperaBrowser=0 if UserBrowser<>"" then if instr(ucase(UserBrowser),"MAC")>0 AND instr(ucase(UserBrowser),"MSIE")>0 then MACIEBrowser=1 end if if instr(ucase(UserBrowser),"OPERA")>0 then OperaBrowser=1 end if end if '**** End of Check MAC IE Browser ******************%> <%IF MACIEBrowser=1 OR OperaBrowser=1 OR UserBrowser="" THEN%> <%session("store_useAjax")="1" ELSE%> <%session("store_useAjax")=""%> <%END IF%> <%END IF 'End of AJAX turns on%>

<%response.write dictLanguage.Item(Session("language")&"_advSrca_1")%>

<% ' Show search page description, if any pcStrSearchDesc = dictLanguage.Item(Session("language")&"_search_1") if trim(pcStrSearchDesc) <> "" then %>
<%=pcStrSearchDesc%>
<% end if %>
<% '// Set Submit Action Dim pcv_strSubmitAction If SRCH_WAITBOX="1" Then pcv_strSubmitAction = "pcf_OpenModal.open(); return FormValidator(this);" Else pcv_strSubmitAction = "return FormValidator(this);" End If %>
<% ' Show category drop-down, unless hidden if schideCategory=0 then %> <%else%> <% end if 'end of hide Categories %> <% 'Show brands, if any query="Select IDBrand, BrandName from Brands order by BrandName asc" set rs=Server.CreateObject("ADODB.Recordset") set rs=connTemp.execute(query) if not rs.eof then Dim brandArray, brandCount, brandTotal brandArray = rs.getRows() brandCount = 0 brandTotal = ubound(brandArray,2) %> <% end if set rs = nothing %> <% query="SELECT customfields.idcustom, customfields.custom, customfields.searchable FROM customfields ORDER BY customfields.custom;" set rs=server.CreateObject("ADODB.RecordSet") set rs=conntemp.execute(query) IF NOT rs.eof THEN pcv_tempFunc="" pcv_tempFunc=pcv_tempFunc & "" & vbcrlf %> <% ELSE %> <% END IF '// IF NOT rs.eof THEN %>

 

<%response.write dictLanguage.Item(Session("language")&"_advSrca_2")%>

<% cat_DropDownName="idcategory" cat_Type="1" cat_DropDownSize="1" cat_MultiSelect="0" cat_ExcBTOHide="1" cat_StoreFront="1" cat_ShowParent="1" cat_DefaultItem=dictLanguage.Item(Session("language")&"_advSrca_4") cat_SelectedItems="0," cat_ExcItems="" cat_ExcSubs="0" if scStoreUseToolTip="1" then cat_EventAction="onchange='javascript:runXML();'" else cat_EventAction="" end if %> <%call pcs_CatList()%>

<%response.write dictLanguage.Item(Session("language")&"_advSrca_5")%>

<%response.write dictLanguage.Item(Session("language")&"_advSrca_6")%> onblur="javascript:if (FormValidator(document.getElementById('ajaxSearch'))) {runXML();} else {return(false);}"<%end if%>> <%response.write dictLanguage.Item(Session("language")&"_advSrca_7")%> onblur="javascript:if (FormValidator(document.getElementById('ajaxSearch'))) {runXML();} else {return(false);}"<%end if%>>

<%response.write dictLanguage.Item(Session("language")&"_advSrca_8")%>

onclick="javascript:runXML();"<%end if%> class="clearBorder">

<%response.write dictLanguage.Item(Session("language")&"_advSrca_11")%>

onblur="javascript:runXML();"<%end if%>>

<%=dictLanguage.Item(Session("language")&"_advSrca_13")%>

<%response.write dictLanguage.Item(Session("language")&"_advSrca_9")%>

onblur="javascript:runXML();"<%end if%>> onclick="javascript:runXML();"<%end if%> class="clearBorder"><%response.write dictLanguage.Item(Session("language")&"_advSrca_14")%>

<%response.write dictLanguage.Item(Session("language")&"_advSrca_22")%>

<%response.write dictLanguage.Item(Session("language")&"_advSrca_12")%>

<%=pcv_tempFunc%> <%=pcv_tempList%>  

<%=dictLanguage.Item(Session("language")&"_advSrca_15")%>

<%=dictLanguage.Item(Session("language")&"_advSrca_16")%>

" name="Submit" id="submit" value="<%response.write dictLanguage.Item(Session("language")&"_advSrca_10")%> ">
<% '// Loading Window ' >> Call Method with pcf_OpenModal.open(); response.Write(pcf_ModalWindow(dictLanguage.Item(Session("language")&"_advSrca_23"), "", 200)) %>
<% call closeDb() set rstemp= nothing %>