<!-- // Funzione ricerca nel Sito - Adapted by Gian 2002

var item = 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; item[c]=new Array("index.html","http://www.cs-strumentazione.com/","Home","index, main, start, home","CS WebSite Homepage.");
c++; item[c]=new Array("handset_testing.html","http://www.cs-strumentazione.com/++++applications/","Handset testing","handset,Handset, test, automatic, receiving, sending, testing, head, flng, marker, simulator, pneumatic, adapter, acoustic, cs8030, loudness, receiver, coupler, hearing, aids, Hearing,HA,ha, mouth","");
c++; item[c]=new Array("voip_speech_testing.htm","http://www.cs-strumentazione.com/++++applications/","VoIP speech testing","voip, speech, interface, gateway, pabx","");
c++; item[c]=new Array("links.htm","http://www.cs-strumentazione.com/company/","Links page","telecom, telecommunications, standards, links, etsi, itu, italia, british, international, institute, australian, standardization, european, operator, sweden, telekom, telenet, belgacom, spain, bellcore, france, ascom, swisscom, deutsche, portugal, dutch, greek, national","");
c++; item[c]=new Array("gsm_voice_testing.html","http://www.cs-strumentazione.com/++++applications/","GSM voice testing","gsm, GSM, testing, voice, system, test, cs8030, CS803, fast, receiving, sending, telephones, equipment, telephonometric, sidetone, simulator, frequency, artificial, measurements, sensitivity, loudness, head, mobile, acoustic","");
c++; item[c]=new Array("isdn_conformance_testing.html","http://www.cs-strumentazione.com/++++applications/","ISDN conformance testing","isdn, ISDN, conformance, interface, digital, pabx, interface, ctr8, pcm, pstn, PSTN, network","");
c++; item[c]=new Array("sms_conformance_testing.html","http://www.cs-strumentazione.com/++++applications/","SMS conformance testing","short, message, conformance, messages, sms, SMS, cs8014, service, deliver, submit, centre, protocols, transceiver, win8014, caller","");
c++; item[c]=new Array("8014_telephone_test_system.htm","http://www.cs-strumentazione.com/products/cs8014/","CS8014 Telephone test system"," telephone, testing, cs8014, system, tester, isdn, ISDN, sms, SMS, VoIP, voip, etsi, pstn, PSTN, dect, telephones, fft, tbr21, ctr21, tbr38, ctr38, wireless, telecom, phone","");
c++; item[c]=new Array("development.htm","http://www.cs-strumentazione.com/products/","Development","testing, semiautomatic, pneumatic, equipment, cs8014, cs8101, manufacturing, cs8102,handset,Handset, cs8002, cs8100, tester, mechanical, keyboard, head, boards, circuit","");
c++; item[c]=new Array("telephone_test_system_composition(1).htm","http://www.cs-strumentazione.com/products/cs8014/","Electroacoustic devices"," head, acoustic,handset,Handset, testing, universal, magnetic,handsets,Handsets, electroacoustic, telephone, orifice, adapter, bra, gsm, GSM, cordless, cs8014, ph18, fcc, earcap, buzzers, loudspeaker, microphone, Microphone, mouth","");
c++; item[c]=new Array("telephone_test_system_composition(2).htm","http://www.cs-strumentazione.com/products/cs8014/","Electrical coupling"," electrical, telephone, wires, cs8014, coupling, circuits, coupler, ae1, impedance, transducers, microphones, Microphones, terminals, electret,handsets,Handsets, feeding, boards","");
c++; item[c]=new Array("telephone_test_system_composition(3).htm","http://www.cs-strumentazione.com/products/cs8014/","Accessories"," cs8014, telephone, isdn, ISDN, etsi, remote, line, interface, cs2035w, cs2037, cs2035, terminals, tbr21, ctr21, tbr38, ctr38, impedance, actuators, fcc, win8014, ctr8, pstn, PSTN, pabx","");
c++; item[c]=new Array("signalclip_option.htm","http://www.cs-strumentazione.com/products/cs8014/sign-opt-clip/","Options"," called, caller, calling, cli, clip, CLIP, CLI, cs8014, dtmf, etsi, fsk, identification, identifier, line, pstn, telephone, tone, v23, win8014","");
c++; item[c]=new Array("8030_test_system_for_telephonometry.htm","http://www.cs-strumentazione.com/products/cs8030/","CS8030 Test system for Telephonometry"," cs8030, tester, Tester, Telephone, telephone,handsets,Handsets, gsm, GSM, cordless, telephonometry, pstn, cs2040, wireless, loudspeakers, aids","");
c++; item[c]=new Array("ac-4_test_head.htm","http://www.cs-strumentazione.com/products/ac-4/","AC-4 Extended Range Test Head"," head, Head,handset,Handset, acoustic, cs8030, artificial, ear, mouth, Mouth, telephone, cs8014, hearing, aids,HA,ha, bra, ac4003, ac4002, simulator, adapter,handsets,Handsets","");
c++; item[c]=new Array("cs2040_pressure_calibrator.htm","http://www.cs-strumentazione.com/products/cs2040/","CS2040  Extended range Pressure Calibrator"," calibration, cs2040, pressure, calibrator, microphone, Microphone, acoustic, extended, sound, cs8014, cavity, calibrations, sensitivity, cs8030, en45001","");
c++; item[c]=new Array("isdn-4.html","http://www.cs-strumentazione.com/products/isdn_4/","ISDN-4 ISDN interface for CS8014"," isdn, ISDN, interface, cs8014, telephone, pabx, termination, subscriber, ctr8, feeding, etsi","");
c++; item[c]=new Array("sms-4.html","http://www.cs-strumentazione.com/products/sms_4/","SMS-4 Short Message Service for CS8014"," message, sms, service, short, centre, protocol, cs8014, telephone, etsi, protocols, pstn, cli, fsk, gsm, GSM, submitted, delivery, deliver, submit, submission, submitting, delivering, delivered, subscriber, win8014, dtmf, delivers, email, clip","");

//Formato tabella dei risultati......
page="<html><head><title>Search Results in CS WebSite</title></head><body bgcolor='white'><center><a></a><table border=0 bgcolor='white' cellspacing=0 width=80%>";

function search(frm) {

//win = window.open("","","scrollbars,width=400,heigth=300");
win = window.open("","","scrollbars,width=400,heigth=300");
win.document.write(page);

txt = frm.srchval.value.split(" ");
//aggiunta x visualizzare le keyword di ricerca
keyword=txt

fnd = new Array(); total=0;
for (i = 0; i < item.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 (item[i][order[j]].toLowerCase().indexOf(txt[k]) > -1 && txt[k] != "")
if (item[i][order[j]].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, win, n);
if (w > -1) total += show(w, win, n, keyword);
fnd[w] = 0;
}
win.document.write("</table><br>Total found: "+total+" for Keyword(s): "+"<font face=verdana color=red size=+1>"+keyword+"<br></font></body></html>");
win.document.close();
}
//function show(which,wind,num) {
function show(which,wind,num,keyw) {
link = item[which][1] + item[which][0]; 
//line = "<tr><td><a href='"+link+"'>"+item[which][2]+"</a> Score: "+num+"<br>";
line = "<tr><td><img border='0' src='http://www.cs-strumentazione.com/images/sphere02.gif' align='middle'><a href='"+link+"' target='_TOP'>"+item[which][2]+"</a><br>";
//line += item[which][4] + "<br>"+link+"</td></tr>";
//line += item[which][4] + "<br></td></tr>";
line += item[which][4] + "<HR>";
wind.document.write(line);
return 1;
}

//-->
