var item = new Array();

c=0; item[c]=new Array("http://www.omdcorp.com/index.htm","","OMD Corporation Home Page. Integrated Software Solutions for Your Business.","index,main,start,home,front","OMD Corporation Home Page.")
c++; item[c]=new Array("http://www.omdcorp.com/contact.htm","","Contact OMD","contact,phone,number,email,address,fax,mail","Information for contacting OMD Corporation.");
c++; item[c]=new Array("http://www.omdcorp.com/about.htm","","About OMD","about,history,information,mission","Information about OMD's history and corporate mission.");
c++; item[c]=new Array("http://www.omdcorp.com/employmentmain.htm","","Join Team OMD","job,hr,human resources,employment,opening,position,application,resume","Information about employment opportunities with OMD.");
c++; item[c]=new Array("http://www.omdcorp.com/products/accessoriesmain.htm","","OMD NetVision","netvision,fleet management,demo,requirement,system,server","Find more information about OMD's NetVision.");
c++; item[c]=new Array("http://www.omdcorp.com/news/newsmain.htm","","Newsletters, Press Releases, Events, and More.","news,event,calendar,trade show,exhibit,press,release,newsletter,archive","Upcoming events for OMD, newsletters, and press releases.");
c++; item[c]=new Array("http://www.omdcorp.com/products/productsmain.htm","","Products Offered by OMD.","vision,forms,electronic forms,NetVision,accessories,u/sql,usql,planet press,wireless,vsi fax,winbatch","Products available by and for OMD.");
c++; item[c]=new Array("http://www.omdcorp.com/support/supportservices.htm","","Information Concerning Support Services Offered by OMD.","support,implementation,class,training,services,support services,help,help desk,crm,customer relationship management","Support services and methods offered by OMD.");
c++; item[c]=new Array("http://www.omdcorp.com/vision/visionmain.htm","","OMD Vision.","vision,system,requirement,demo,upgrade","Find more information about OMD Vision.");
c++; item[c]=new Array("http://www.omdcorp.com/support/class.htm","","Schedule of OMD Software Education Courses and Seminars.","support,seminar,class,training,fundamentals,financial,sfa,service management,travel,hotels,rental,car,map,directions,schedule,calendar,accomodations","Information on Classes and Seminars at OMD.  Includes scheduling, descriptions, and traveling information.");

function search(frm) {

txtorig = frm.srchval.value;
txt = frm.srchval.value.toLowerCase().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);
}

document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN''http://www.w3.org/TR/html4/loose.dtd'>");
document.write("<html><head><title>Search Results</title>");
document.write("<style type='text/css' media='all'>@import 'css/NewCorp.css';</style><link rel='stylesheet' type='text/css' media='print' href='css/Print.css'/></head>");
document.write("<body><center><table cellspacing='0' cellpadding='0' border='0' width='100%'>");
document.write("<tr><td><img src='images/onepixel.gif' height='1px' width='779px' border='0px'></td></tr>");
document.write("<tr><td><div id='TopNavBar'>");
document.write("<div id='Banner'>\n");
document.write("<img src='http://www.omdcorp.com/images/bannerleftpns.gif' border='0' align='left'>\n");
document.write("<img src='http://www.omdcorp.com/images/bannerrightpns.gif' border='0' align='right'>\n");
document.write("</div>\n");
document.write("</div></td></tr>");
document.write("<tr><td><div id='PageDetail'><div id='ContentOnly'>");
document.write("<h3>Search Results for \""+txtorig+"\"</h3>");

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 += results(w, n);
fnd[w] = 0;
}

document.write("<p>Total Found: "+total+"<br><br>");
document.write("If you are an OMD customer, see also the <a href='cows/cowslogin.htm'>Customers Only Web Site</a> ");
document.write("and the software's online help documentation.<br>&nbsp;</p></div></div></td></tr></table>");
document.write("<img height='1px' width='1px' border='0px' src='http://www.omdcorp.com/corpphp/counter.php?PageName=SearchPage&SearchBoxEntry="+txtorig+"'>");
document.write("</body></html>");
document.close();

}

function results(which,num) {

link = item[which][1] + item[which][0]; 
line = "<p><a href='"+link+"'>"+item[which][2]+"</a> Score: "+num+"<br>";
line += item[which][4] + "<br>"+link+"<br>&nbsp;</p>";

document.write(line);
return 1;
}
