var item = new Array();

// "Page Name","path","Page Title","Many,Key,Words","Descriptive Comments"

c=0; item[c]=new Array("SHDhome.htm","","SchoolHouse Designs Home Page","index, main, start, home, front, SHD, SchoolHouse, School, House, Designs, Pencil, Point, Perfection, Non-Profit, Organization, YRA, York River Academy, CIW, Certified, Order, to, Build, Services, Developing, Web, Site, Page, Register, Domain, Name, Host, Assistance, Creating, Professional, Graphics, Flash, Movie, Clips, Manipulating, Digital, Photography, Pics, Pictures, Images, Trade, Marks, Copyright, Copyright, C, TM, Trademarks, cheap, personal, quality, Easy, Understand, Affiliates, Links, Sponsors","SHD is a nonprofit organization that creates web pages for a nominal price, and in easy to understand terms. SHD is a York River Academy, YRA, business, made by the students and sponsored by the school. This site includes an FAQ, Web Resources, a lot of helpfull sites, and templates that you can use. All donations are tax deductible.");
c++; item[c]=new Array("aboutus.htm","","About SHD","SchoolHouse, Krier, Tim, Sam, Carpenter, Collier, Mandy, Jerry, Hickman, Design, School, House, YRA, York River Academy, Students, Business, Information, Primary, Contacts, Officers, Board, Directors, Management, Mgmt, About","This page features contact information, the creators, and the location of our organization, as well as the Management for the site.");
c++; item[c]=new Array("donations.htm","","Donations Page","Conference, Data, Analysis,Story, Board, Storyboard, Proposal, Logo, Graphics, Images, Pics, Pictures, Flash, Movie, Clips, Design, Web, Pages, Site, XHTML, HTML, Domain, Name, Registration, Web, Hosting, Plans, Payment","Here you can view the rates for our Web pages, conferences, Domain Name Registration, Storyboard Proposal, Logo Design, Graphic creation and Flash creation. Everything we do has a Pencil Point Perfection quality and are fully tax deductible.");
c++; item[c]=new Array("SHDfaq.htm","","Frequantly Asked Questions","FAQ, Bullets, Scrollbars, Frequantly, Asked, Questions","In this part of the site you can view some frequantly asked questions we've had for this site, or you can ask some of your own. Only the top ten questions will be posted the rest will be in our archives which will be linked to from this site.");
c++; item[c]=new Array("templates.htm","","Templates","Templates, Free, Download, Proffesional, Quality, Any Occasion, Wedding, Vacation, Design, Ezine, Band, Department, Base Ball, Inn, K-5, Kids, Massage, Professor, School, Teachers, Yearbook","SHD offers many variaties of free templates you can use on your own site when you buy a web site from us. They help save you and us time and money, and offer you a proffesional quality.");
c++; item[c]=new Array("webresources.htm","","Web Resources","Adobe, Photoshop, Illustrator, Macromedia, Dreamweaver, Flash, Fireworks, Freehand, Microsoft, Word, Excell, Development, Resources, Sample, Work, Free, Images, Pics, Pictures, Graphics, Navigation, Navbars, Nav, Bars, Banners, Logos","SHD offers many web resources including: Adobe, Macromedia, and Microsoft suites, free images, logos, navigation bars, banners, and flash. We offer sample work for each area.");

page="<html><head><title>Search Results</title><link rel='stylesheet' type='text/css' href='SHDstyle.css'></head><body bgcolor='white'><center><table border=0 cellspacing=10 width=80%>";


function search(frm) {
win = window.open("","","scrollbars");
win.document.write(page);
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]].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>Total found: "+total+"<br></body></html>");
win.document.close();
}
function show(which,wind,num) {
link = item[which][1] + item[which][0]; 
line = "<tr><td><a href='"+link+"'>"+item[which][2]+"</a> Matches: "+num+"<br>";
line += item[which][4] + "<br>"+link+"</td></tr>";
wind.document.write(line);
return 1;
}
