var item = new Array();

// "Page Name","path","Page Title","Many,Key,Words","Descriptive Comments"

c=0; item[c]=new Array("accessibility.html","","Accessibility Statement","accessibility, statement, special, needs","This Website caters for individuals with specific disabilities");
c++; item[c]=new Array("activities.html","","Activities","visits, activities, regana, president, december, 2004, carnival, christmas","This Page is updated with activities photos held by munxar council");
c++; item[c]=new Array("contactus.html","","Contact Us","contact, address, telephone, fax, contact form","This section has contact details of Munxar Local Council");
c++; item[c]=new Array("copyright.html","","Copyright","copyright act, legal, law","In this section one can finds the copyright act notice of this website");
c++; item[c]=new Array("disclaimer.html","","Disclaimer","information","In this section one can finds the disclaimer notice of this website");
c++; item[c]=new Array("flour_mill.html","","Flour Mill","emergency, flour, mill, xlendi, Mr. John Walsh, british, wheat, 1989","In this page one can find information and photos about the Xlendi Emergency Mill Room");
c++; item[c]=new Array("index.html","","Home","home, frontpage, bay,main","The Main Page of Website");
c++; item[c]=new Array("links.html","","Links","links, gov, mepa, com, local councils, cimu, central, planning","Links to goverment's websites");
c++; item[c]=new Array("local_council.html","","Local Council","munxar, mark bajada, deputy mayor, councillors, executive secretary, robert mallia, carmen said, robert mallia, raymond cini, anthony grech","On this section one can find local council members and information on council");
c++; item[c]=new Array("munxar_falcons.html","","Munxar Falcons","football, fc, club, team","One can find information on the football club Munxar Falcons");
c++; item[c]=new Array("munxar_map.html","","Munxar Map","munxar, map, tourist","Munxar Map online");
c++; item[c]=new Array("munxar_postcards.html","","Munxar Postcards","photos, photogallery","Munxar Postcards is a section were one can view photos of Munxar Village");
c++; item[c]=new Array("nicec.html","","Nicec","nicec, saint","Photos taken of nicec found in the village of Munxar");
c++; item[c]=new Array("old_photos.html","","Old Photos","old photos, antique, photogallery, xlendi, munxar","Old Photos taken from the villages of Munxar and Xlendi");
c++; item[c]=new Array("organisations.html","","Organisations","munxar local council, presbyterium, parish, legion of mary, catholic action, eucharistic community, m.a.s. group, stage, football club,  bird and cage society","Organisations held in Munxar ");
c++; item[c]=new Array("privacy.html","","Privacy Policy","privacy","Private Policy statement");
c++; item[c]=new Array("the_parish.html","","Munxar Parish","church, religious, chapel, saint paul, 10, february","History about the Munxar Church");
c++; item[c]=new Array("the_village.html","","Munxar Village","munxar, centre","Brief information about Munxar Village");
c++; item[c]=new Array("twinning.html","","Twinning","ragalna, sicily","Photos and information about twinning between Munxar and Ragalna Sicily");
c++; item[c]=new Array("xlendi.html","","Xlendi Bay","keywords, xlendi, bay, tourism, tourist","Brief information about the village of Xlendi");
c++; item[c]=new Array("xlendi_map.html","","Xlendi Map","xlendi, map","Xlendi Map online");
c++; item[c]=new Array("xlendi_postcards.html","","Xlendi Postcards","xlendi, postcards, photos, photogallery","Xlendi Postcards is a section were one can view photos of Xlendi Area");


page="<html><head><title>Search Results</title><link href='style.css' rel='stylesheet' type='text/css'></head><body bgcolor='#C0C0C0' leftmargin='0' topmargin='0'><center><table border=0 cellspacing=10 width=80%>";


function search(frm) {
win = window.open("","",'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,maximize=1');
win.document.write(page);
txt = frm.srchval.value.split(" ");
win.document.write("<tr><td><div class='titles'>Search Results:</div></td></tr>");
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] != "")
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>");
win.document.write("<span class='txt-white'>Total results found: "+total+"</span>");
win.document.write("<br></body></html>");
win.document.close();
}
function show(which,wind,num) {
link = item[which][1] + item[which][0];
line = "<tr><td> <div class='txt-white'><a href='"+link+"'>"+item[which][2]+" </a> ";      // Score: "+num+"<br>";
//line += item[which][4] + "<br>"+link+"</td></tr>";
line += item[which][4] + "</div></td></tr>";
wind.document.write(line);
return 1;
}