	var item = new Array();
	
	c=0; item[c]=new Array("index.html","","Home","index,main,start,home","The Learn, Share, Prosper home page.");
	c++; item[c]=new Array("services.html","","Services","content,main,focus,service,offer","View the services offered by Learn, Share, Prosper.");
	c++; item[c]=new Array("productsoverview.html","","Products","content,main,focus,product,offer","Products offered by Learn, Share, Prosper.");
	c++; item[c]=new Array("newslettersignup.html","","Newsletter Signup","content, free, newsletter, article","Sign up for our free newsletter");
	c++; item[c]=new Array("newsletterarchive.html","","Newsletter Archive","content, free, newsletter, archive, article","Access the free online archive of past newsletters");
	c++; item[c]=new Array("freetools.html","","Free Tools","content, free, product, tool","Access the free tools offered by Learn, Share, Prosper.");
	c++; item[c]=new Array("freearticles.html","","Free Articles","content, free, product, article","Access the free articles offered by Learn, Share, Prosper.");
	c++; item[c]=new Array("about.html","","About Us","about, author, who, experience, adele, associate, collaborator, team","Find out about who we are.");
	c++; item[c]=new Array("contact.html","","Contact Us","author, contact, email, who","How to get in touch with Learn, Share, Prosper.");

	page = "<html><head><title>Learn, Share, Prosper: Search Results</title></head><body bgcolor='white'><center><table border=0 cellspacing=10 width=80%>";
	
	function search(searchForm) {
		var total = 0;
		var win = window.open("", "", "height=600, location=0, resizable=1, scrollbars=1, toolbar=1, width=450");
		if (win) {
			win.document.write(page);
			if (searchForm.srchval.value) {
				var txt = searchForm.srchval.value.split(" ");
				var fnd = new Array();
				for (i = 0; i < item.length; i++) {
					fnd[i] = 0; 
					var 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++) {
					var n = 0; 
					var w = -1;
					for (j = 0;j < fnd.length; j++)
						if (fnd[j] > n) { n = fnd[j]; w = j; };
							if (w > -1) total += writeDiv(w, win, n);
								fnd[w] = 0;
				}
			} // if (txt)
			win.document.write("</table><br/>Total found: "+total+"<br/></body></html>");
			win.document.close();
		} // if (win)
	}
	
	function writeDiv(which,wind,num) {
		link = item[which][1] + item[which][0]; 
		line = '<tr><td><a href="'+link+'" target="_blank">'+item[which][2]+'</a>  &nbsp&nbsp&nbsp Score: '+num+'<br/>';
		line += item[which][4] + "<br/>"+link+"</td></tr>";
		wind.document.write(line);
		return 1;
	}

