var item = new Array();

// "Page Name","path","Page Title","Many,Key,Words","Descriptive Comments"

c=0; item[c]=new Array("/index.asp?ndID=1_10_12","","Συνεργάτες","bata, inblu, imac, βατα","");
c++; item[c]=new Array("/index.asp?ndID=1_4","","Τάσεις Μόδας","joyce, μόδα, μοδα, τασεις, collection, συλλογη, παπουτσια, υποδηματα","");
c++; item[c]=new Array("/index.asp?ndID=1_44","","Elite News","elite,news,bata, βατα, superstore,antistatic, energy,στοχος,στόχος, joyce ","");
c++; item[c]=new Array("/index.asp?ndID=1_3&CatID=1_3_53","","Women Collection","elite, joyce, γυναικεια, προιόντα, συλλογή, παπουτσια, υποδηματα, women, γυναικεία, shoes, collection","");
c++; item[c]=new Array("/index.asp?ndID=1_3&CatID=1_2_47","","Men Collection","elite, αντρικα, αντρικά, ανδρικά, ανδρικα, men, collection, man, προιόντα, συλλογή, παπουτσια, υποδηματα","");
c++; item[c]=new Array("/index.asp?ndID=1_5&CatID=1_3","","Κατάστηματα","αθήνα, σταδίου, σταδιου, ερμού, ερμού, πρατηριο, πρατήριο, bazaar, περιστέρι, περιστερι, μαρουσι, μαρουσι, avenue, bata","");
c++; item[c]=new Array("/index.asp?ndID=1_53_54","","tv spots","διαφήμιση, διαφημιση, energy, tv, advertising","");
c++; item[c]=new Array("/index.asp?ndID=1_53_55","","Catalogues","κατάλογος, καταλογος, καταλογοι, κατάλογοι, ενθετο, ένθετο, catalogue","");
c++; item[c]=new Array("/index.asp?ndID=1_53_56","","Magazines","περιοδικα,περιοδικά,magazines","");
c++; item[c]=new Array("/index.asp?ndID=1_45","","Franchise","franchise, franchising, δικαιόχρηση, δικαιοχρηση","");
c++; item[c]=new Array("/index.asp?ndID=1_2_51","","Franchising","franchise, franchising, δικαιόχρηση, δικαιοχρηση","");
c++; item[c]=new Array("/index.asp?ndID=1_2_50","","Products","smart, joyce, flex, fashion, lady, antistatic","");


page="<html><head><title>Elite Shoes - Search Results</title></head><body bgcolor=#ffffff link=#720000 vlink=#fe0000 alink=#255396><center><table border=0 cellspacing=10 width=100%>";

function search(frm) {
win = window.open("","","height=300,width=300,left=0,top=0,scrollbars=yes");
win.document.write(page);
win.document.write("<tr><td align=center><img src='images/search_logo.gif' height='54' width='167' border='0'></td></tr>");
txt = frm.srchval.value.split(" ");
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]].indexOf(txt[k].toLowerCase()) > -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);
fnd[w] = 0;
}
win.document.write("</table><br>Results found: "+total+"<br>");
win.document.write("<INPUT onfocus='blur();' type='button' style='background-color:#004080; border-color:#004080; color:#FFFFFF;' value='Close' onClick='self.close()'");
win.document.write("</center></body></html>");
win.document.close();
}
function show(which,wind,num) {
link = item[which][1] + item[which][0]; 
line = "<tr><td align='center'><a href="+link+" target='mwd'>"+item[which][2]
line += item[which][4]
wind.document.write(line);
return 1;
}
