searchPageName = "search.php"; //change page name here...

		if (searchWords = getURLvalue("searchTxt")) {
			// Do the search
			results = performSearch(searchWords, 3);
			
			// This means that there are search results to be displayed.
			// Loop through them and make it pretty! :)
			if (results[0]) {
				document.writeln("<a href=\"" + searchPageName + "\" class=\"modelgallerylink\">&raquo; Search Again</a>\n");
				document.writeln("&nbsp;<br>");
				document.writeln("&nbsp;<br>");				
			
				document.writeln("<ol class=\"modelcvinfo\">");
				for (r = 0; r < results.length; r++) {
					result = searchDB[results[r]];
					
					/////////////////////////////////////////////////////////////
					// This is where you modify the formatting of the results
					document.writeln("<li><b><a href=\"" + result.url + "\" class=\"modelgallerylink\">" + result.heading + "</a></b><br>");
					document.writeln(result.description + "<br><br>");
					/////////////////////////////////////////////////////////////
				}
				document.writeln("</ol>");
			}
			// If it's not an array, then we got an error message, so display that
			// rather than results
			else {
				document.writeln("<i>" + results + "</i>");
				document.writeln("<br>");
				document.writeln("&nbsp;<br>");
				document.writeln("&nbsp;<br>");
				document.writeln("&nbsp;<br>");
				document.writeln("&nbsp;<br>");
				document.writeln("&nbsp;<br>");
				document.writeln("&nbsp;<br>");
				document.writeln("&nbsp;<br>");
				document.writeln("&nbsp;<br>");
				document.writeln("&nbsp;<br>");
				document.writeln("&nbsp;<br>");
				document.writeln("&nbsp;<br>");
				document.writeln("&nbsp;<br>");
				document.writeln("&nbsp;<br>");
				document.writeln("&nbsp;<br>");
				document.writeln("&nbsp;<br>");				
			}
			
			document.writeln("<br>\n<a href=\""+ searchPageName + "\" class=\"modelgallerylink\">&raquo; Search Again</a>\n");
			document.writeln("&nbsp;<br>");
			document.writeln("&nbsp;<br>");			
		}
		else {
			/////////////////////////////////////////////////////////////
			// This is the search form, plus anything else to display when
			// the user hasn't searched yet. *MUST* use "GET" as the method
			document.writeln("Please enter some aspects of the model type you want to see, e.g. Blonde Female.");
			document.writeln("<form name=\"search\" action=\"" + searchPageName +"\" method=\"GET\">");
			document.writeln("Search For: <input type=\"text\" name=\"searchTxt\" class=\"modelstatstitle\">");
			document.writeln("<input type=\"submit\" value=\"Search!\" class=\"modelstatstitle\">");
			document.writeln("</form>");				
			document.writeln("&nbsp;<br>");
			document.writeln("&nbsp;<br>");
			document.writeln("&nbsp;<br>");
			document.writeln("&nbsp;<br>");
			document.writeln("&nbsp;<br>");
			document.writeln("&nbsp;<br>");
			document.writeln("&nbsp;<br>");
			document.writeln("&nbsp;<br>");
			document.writeln("&nbsp;<br>");
			document.writeln("&nbsp;<br>");
			document.writeln("&nbsp;<br>");
			document.writeln("&nbsp;<br>");
			document.writeln("&nbsp;<br>");
			document.writeln("&nbsp;<br>");
			document.writeln("&nbsp;<br>");
			document.writeln("&nbsp;<br>");
			document.search.searchTxt.focus();
			/////////////////////////////////////////////////////////////
		}		
