function initArray() {
this.length = initArray.arguments.length
for (var i = 0; i < this.length; i++)
this[i] = initArray.arguments[i]
}
var searchVal = "";
var goPressed = false;

// Search Options ** DO NOT MODIFY **
// Page Titles
var titles = new initArray("Summit Accounts","Agrenet & Seednet e-Commerce Portals","Agri Business","Application Service Provision (ASP)","Bespoke Solutions","Bespoke Web Development","Product Developments","Technical News","Employees & Career Opportunities","Commodetrade","Compac Gold","Contact Us","Customer Case Studies","Customer Case Studies","Customer Case Studies","Customer Case Studies","Customer Case Studies","Customer Case Studies","Directions","e-Business","e-Business Solutions","Enabling Technology","Feed Manufacture","Financial, Payroll & HR Software","Generation","Grain Trading","About Cal Software","Infrastucture Design","Inteletrade","Inteletrade","IT Industry News","Management Information","","Planning","Press Releases","Process Control","Process Manufacture","Products and Services","Progress Software","Project Management & Consultancy","Registration","Registration","Search Results","Seed Industry","Seedwise","Seedwise","Skills and Tools","Software Products","Stocks and Traceability","Supply Chain Management","System Integration","TopiCal","Web Hosting","Weighing and Measuring","XML");

// Page Descriptions
var descriptions = new initArray("Financial software features in our accounting product","Our new Hub and Portal products","Agricultural Business Solutions","Hosted Software Rental","Tailored Software Developments","Tailored Internet Software","Features, modifications and enhancements","The latest technical products used by Cal Software","Jobs and vacancies","Trading over the web","Package software for feed, seed, crop protection, supplements, flour and grain","Contact Us","Client / customer profiles","Client / customer profiles","Client / customer profiles","Client / customer profiles","Client / customer profiles","Client / customer profiles","How to find us","B2B and B2C","B2B and B2C","Web security","Feed production and milling","Accounting and human resource solutions","Seed production and manufacture","Commodity package","About the company","Topology, ASP Internet Hosting","Agricultural web development","Agricultural web development","New IT tools","Reports and executive decision support","How to find us","Capacity planning","News and headlines","Agricultural manufacturing","Capacity process control","Products and Services","Embedded database tools","Professional services","Information","Registration","Search Results","Wholsale grower retail","Seed software rented over the internet","Seed software rented over the internet","Web products used in development","Agricultural business software solutions","Quality control and product tracking","sop/pop/distribution/manufacture","Interfacing software","Cal Software newsletter, headlines","Renting software over the internet","Weighbridges and quality control","BASDA standards, hub information transfer protocol");

// Page Links
var links = new initArray("accounts.htm","agrenet.htm","agribusi.htm","aspservice.htm","bespokes.htm","bespokeweb.htm","calprodev.htm","caltechnews.htm","career.htm","commod.htm","compacgold.htm","contact.htm","custcase1.htm","custcase2.htm","custcase3.htm","custcase4.htm","custcase5.htm","custcase6.htm","directions.htm","ebusiness.htm","ebussol.htm","enabltech.htm","feedman.htm","finsoft.htm","generation.htm","graintra.htm","index.htm","infrades.htm","inteletrade1.htm","inteletrade2.htm","itnews.htm","management.htm","map.htm","planning.htm","pressrel.htm","proccont.htm","processm.htm","prodserv.htm","progsoft.htm","promancon.htm","registration.htm","registrationsuccess.htm","search.htm","seedind.htm","seedwise1.htm","seedwise2.htm","skillstools.htm","softprod.htm","stocks.htm","supplych.htm","systemin.htm","topical.htm","webhost.htm","weighing.htm","xml.htm");

function searchf()
{
var search=unescape(location.search.substr(location.search.indexOf("=") + 1).toLowerCase());
var sarray=search.split("+");
outpage = '';
found = 0;
for(var sitems=0;sitems<sarray.length;sitems++)
{
nsearch=sarray[sitems];
for(var entries = 0;titles[entries] != null;++entries);
{
for(var counter = 0;counter != entries;counter++)
{
var d = descriptions[counter].toLowerCase()+titles[counter].toLowerCase();
if(d.search(nsearch) != -1)
{
outpage = outpage + '<B><A HREF="'+links[counter]+'">'+titles[counter]+'</A></B><BR><I>'+descriptions[counter]+'</I><BR><BR>';
found++;
}
}
}
}
if(found==0) { outpage="No matching entries were found.";}
ns=navigator.appName==("Netscape");
if(ns)
{
document.indexr5c6.document.write(outpage);
}
else
{
document.clear();
document.write(outpage);
}
return false;
}

function goSearch()
{
 ns=navigator.appName==("Netscape");
 if(ns)
  document.location = "search.htm?Search=" + searchVal;
 else
  document.location = "search.htm?Search=" + document.forms[0].search.value;
}

function setSearch(val)
{
 searchVal = val;
}

function getKey(evt)
{
 ns=navigator.appName==("Netscape");
 if(ns)
 {
  if(evt.which==13)
   return true;
  else 
   return false;
 }
 else
 {
  if(window.event.keyCode==13)
   return true;
  else 
   return false;
 }
}