
// search function

var item1 = new Array();

/* Here is where all the magic happens.  
    Just enter as many additional pages that
    that you want to search, then fill in the
    additional listings for each page.
*/

// "Page Name","path","Page Title","Many,Key,Words","Descriptive Comments"

c=0; item1[c]=new Array("index.html","","Chem Flowtronics","index,main,start,home,front,chem flow,chem flowtronics"," Chem-Flowtronics site.");
c++; item1[c]=new Array("about.html","","About","about,author,contact,email,who","Contact details and general information.");
c++; item1[c]=new Array("mixers_agitators/AgitatorslabTFE.html","","Agitators - Lab","Agitators,Lab,TFE,Mixers","Agitators - Lab Models");
c++; item1[c]=new Array("mixers_agitators/AgitatorsTFE.html","","Agitators - process","Agitators,process,TFE,Mixers","Agitators - Process Models");
c++; item1[c]=new Array("misc/AlloyCoil.html","","Alloy Coil Condensors","Alloy,Coil,condensors","Alloy Coil Condensors");
c++; item1[c]=new Array("bio/bioprocessreactor.html","","Bio Process Reactor","bio,process,reactors,Borosilicate","Bio Process Reactor");
c++; item1[c]=new Array("mixers_agitators/CFD-DirectDrive.html","","Mixers - Direct Drive ","Mixers, Direct Drive,propellers, impellers","CFD Series Direct Drive Mixers");
c++; item1[c]=new Array("mixers_agitators/CFI-Independent.html","","Mixers - Independent Mounting ","Mixers,independent,mounting,propellers, impellers","CFI Series Independent Mounting Mixers");
c++; item1[c]=new Array("mixers_agitators/CFL-Lab.html","","Mixers - Lab Series ","Mixers,Lab,Viscosity trends","CFL Series Lab Mixers");
c++; item1[c]=new Array("mixers_agitators/CFL-Raimous.html","","Mixers - Raimous Lab Series ","Mixers,Lab,Raimous,Viscosity Trends","CFL Series Raimous Lab Mixers");
c++; item1[c]=new Array("mixers_agitators/CFM-RollerMill.html","","Mixers - Roller Mill ","Mixers,roller mill,borosilicate","CFM Series Roller Mill Mixers");
c++; item1[c]=new Array("mixers_agitators/CFR-RigidMount.html","","Mixers - Rigid Mount ","Mixers,direct mounting,tank,rigid,mount","CFR Series Rigid Mount Mixers");
c++; item1[c]=new Array("bio/cromatography-column.html","","Cromatography Columns","bio,process,pharma,teflon,cromatography,columns","Cromatography Columns");
c++; item1[c]=new Array("sight_flow_indicators/CSFI_300_325.html","","Cylindrical Full View Sight Flow Indicators","Sight flow,indicators,cylindrical"," Models 300,325");
c++; item1[c]=new Array("sight_flow_indicators/FSFI_100_101.html","","Flanged Sight Flow Indicators","Sight flow,indicators,flanged"," Models 100,101");
c++; item1[c]=new Array("sight_flow_indicators/FSFI_102_103_104.html","","Flanged Sight Flow Indicators","Sight flow,indicators,flanged"," Models 102,103,104");
c++; item1[c]=new Array("sight_flow_indicators/FSFI_1125.html","","Sanitary Sight Flow Indicators","Sight Flow,indicators,sanitary"," Model 1125");
c++; item1[c]=new Array("sight_flow_indicators/SFI_350.html","","Smooth Bore Sight Indicators","Sight Flow,indicators,sanitary"," Model 350");
c++; item1[c]=new Array("sight_flow_indicators/SFI_375.html","","360 View Sight Indicators","Sight Flow,indicators,360 view"," 360 View");
c++; item1[c]=new Array("sight_flow_indicators/SiteFlowIndicator-Main.html","","Sight Indicators","Sight Flow,indicators","Sight Flow Indicator");
c++; item1[c]=new Array("sight_flow_indicators/SWBW_201_202.html","","Socket Weld, Butt Weld,Sight Indicators","Sight Flow,indicators,Sight Weld,Butt Weld","Sight Weld, Butt Weld Indicators");
c++; item1[c]=new Array("sight_flow_indicators/TSFI_200.html","","Threaded Sight Flow Indicators","Sight Flow,indicators","Threaded Sight Flow Indicators");
c++; item1[c]=new Array("valves/ValveCheckTeflonLined.html","","Check Valve Teflon&#xAE; Lined","valves,check,teflon","Check Valves Teflon&#xAE; Lined");
c++; item1[c]=new Array("valves/ValveChemicalGlassBall.html","","Chemical Glassball Valve","valves,chemical,glassball","Chemical Glassball Valve");
//c++; item1[c]=new Array("valves/ValveRefliefGlassTFE.html","","Relief Valve Glass TFE","valves,relief,glass","Relief Valve Glass TFE");
//c++; item1[c]=new Array("valves/ValveRefliefTeflonLined.html","","valves,Sight Flow,Sight Indicators","Sight Flow,indicators","Threaded Sight Flow Indicators");
c++; item1[c]=new Array("valves/ValvesActuation.html","","Actuation Valve","valves,actuation","Actuation Valves");
//c++; item1[c]=new Array("valves/ValvesCheckCorrosionResist.html","","Corrosion Resistant Check Valve","valves,corrosion,check,resistant","Corrosion Resistant Check Valves");
c++; item1[c]=new Array("valves/ValvesFlushBottomCorrosionResistant.html","","Flush Bottom Corrosion Resistant Valve","flush,bottom,corrosion,resistant,valves","Flush Bottom Corrosion Resistant Valves");
//c++; item1[c]=new Array("valves/ValvesFlushBottomGlassTFE.html","","Flush Bottom Glass TFE","flush,bottom,glass,TFE,valves","Flush Bottom Glass TFE Valves");
c++; item1[c]=new Array("valves/ValvesFlushBottomIntegral.html","","Flush Bottom Integral Valves","flush,bottom,integral,valves","Flush Bottom Integral Valves");
c++; item1[c]=new Array("valves/VBG-TFE.html","","Vaccum Breaker","glass,vaccum,breaker","Glass Vaccum Breaker - TFE");
c++; item1[c]=new Array("sight_flow_indicators/TEFZEL-501.html","","Tefzel Lined Dual Flow Indicators","tefzel,dual flow,indicators","Tefzel lined dual flow indicator - Model 501");
c++; item1[c]=new Array("valves/GlassRefluxSplit-Colline.html","","Reflux Splitters - Column Line","reflux,splitters,column line","Reflux Splitters - Column Line");
c++; item1[c]=new Array("valves/GlassRefluxSplit-Inline.html","","Reflux Splitters - Column Line","reflux,splitters,in-line","Reflux Splitters - In Line");
//c++; item1[c]=new Array("valves/GlassRefluxSplit-Inlinehyflo.html","","Reflux Splitters - Column Line","reflux,splitters,in-line,hyflow","Reflux Splitters - In Line Hyflow");
//c++; item1[c]=new Array("valves/GlassRefluxSplit-offsethyflo.html","","Reflux Splitters - Column Line","reflux,splitters,offset,hyflow","Reflux Splitters - Offset Hyflow");
c++; item1[c]=new Array("valves/GlassRefluxSplit-steel.html","","Reflux Splitters - Stainless Steel","reflux,splitters,stainless steel","Reflux Splitters - Stainless Steel");
c++; item1[c]=new Array("process_systems/simple_distillation_units.htm","","distillation unit","simple,distillation","Simple Distillation");
c++; item1[c]=new Array("process_systems/overhead_distillation_unit.htm","","distillation unit","overhead,distillation","Overhead Distillation");
c++; item1[c]=new Array("process_systems/reaction_units.htm","","reaction unit","reaction,distillation","Reaction Units");
c++; item1[c]=new Array("misc/ProcessGaskets.html","","Process Gaskets","process,gaskets","Process Gaskets");
c++; item1[c]=new Array("misc/Filters.html","","Filters","Filters,heat shock,chemical attack,filters,","Filters");

page = "<html><head><title>Search Results</title><base href='http://www.bza.com/clients/chemflow/build/' /><link rel='stylesheet' href='styles/cf_styles.css' type='text/css' /></head><body bgcolor='white'><center><p></p><p></p><div id='contentSearch'><h2>CHEM Flowtronics Search Results</h2><div class='product'><div class='feature'><p></p><table border=0 cellspacing=10 width=80%>";

// generate search results page

function search(frm) {
document.write(page);
txt = frm.split(" ");
fnd = new Array(); total=0;
for (i = 0; i < item1.length; i++) {
fnd[i] = 0; order = new Array(0, 4, 2, 3);
for (j = 0; j < order.length; j++)
for (k = 0; k < txt.length; k++)
if (item1[i][order[j]].toLowerCase().indexOf(txt[k]) > -1 && txt[k] != "")
fnd[i] += (j+1);
}
for (i = 0; i < fnd.length; i++) {
n = 0; w = -1;
for (j = 0;j < fnd.length; j++)
if (fnd[j] > n) { n = fnd[j]; w = j; };
if (w > -1) total += show(w, n);
fnd[w] = 0;
}
document.write("</table></div></div><p><br>Total found: "+total+"<br></p></div></body></html>");
document.close();
}
function show(which,num) {
link = item1[which][1] + item1[which][0]; 
line = "<tr><td><a href='"+link+"'>"+item1[which][2]+"</a> Score: "+num+"<br>";
line += item1[which][4] + "<br>"+link+"</td></tr>";
document.write(line);
return 1;
}

