function listingObject(company,address1,address2,city,tel,fax,contact,mail,website,category,description,wholesale,specialty,empty14,empty15,empty16,empty17,empty18) 
{
  this.company = company;
  this.address1 = address1;
  this.address2 = address2;
  this.city = city;
  this.tel = tel;
  this.fax = fax;
  this.contact = contact;
  this.mail = mail;
  this.website = website;
  this.category = category;
  this.description = description;
  this.wholesale = wholesale;
  this.specialty = specialty;
  this.empty14 = empty14;
  this.empty15 = empty15;
  this.empty16 = empty16;
  this.empty17 = empty17;
  this.empty18 = empty18;
  

  this.COMPANY = company.toUpperCase();
  this.ADDRESS1 = address1.toUpperCase();
  this.ADDRESS2 = address2.toUpperCase();
  this.CITY = city.toUpperCase();
  this.TEL = tel.toUpperCase();
  this.FAX = fax.toUpperCase();
  this.CONTACT = contact.toUpperCase();
  this.MAIL = mail.toUpperCase();
  this.WEBSITE = website.toUpperCase();
  this.CATEGORY = category.toUpperCase();
  this.DESCRIPTION = description.toUpperCase();
  this.WHOLESALE = wholesale.toUpperCase();
  this.SPECIALTY = specialty.toUpperCase();
  this.EMPTY14 = empty14.toUpperCase();
  this.EMPTY15 = empty15.toUpperCase();
  this.EMPTY16 = empty16.toUpperCase();
  this.EMPTY17 = empty17.toUpperCase();
  this.EMPTY18 = empty18.toUpperCase();
}

var listingIndex = 0;

var listingArray = new Array();

function setListing(company,address1,address2,city,tel,fax,contact,mail,website,category,description,wholesale,specialty,empty14,empty15,empty16,empty17,empty18) 
{
  listingArray[listingIndex++] =
    new listingObject(company,address1,address2,city,tel,fax,contact,mail,website,category,description,wholesale,specialty,empty14,empty15,empty16,empty17,empty18);
}

<!--THIS IS WHERE THE SEARCH TEXT IS HIGHLIGHTED, BUT ONLY FOR THE COMPANY NAME SO I HAVE DISABLED IT
function show(property) {
//  for (var j=0; j < splitUp.length; j++) {
//    property = property.replace(
//                 new RegExp(splitUp[j], 'g'),
//                 '{' + splitUp[j] + '}'
//               );
//  }
//
//  property = property.replace(
//               new RegExp('{','g'),
//               '<i><font color="#0000FF" size="+1">'
//             );
//  property = property.replace(
//               new RegExp('}','g'),
//               '<\/font><\/i>'
//             );

  return property;
}

function output() {
  var company = listingArray[i].company;
  var address1 = listingArray[i].address1;
  var address2 = listingArray[i].address2;
  var city = listingArray[i].city;
  var tel = listingArray[i].tel;
  var fax = listingArray[i].fax;
  var contact = listingArray[i].contact;
  var mail = listingArray[i].mail;
  var website = listingArray[i].website;
  var category = listingArray[i].category;
  var description = listingArray[i].description;
  var wholesale = listingArray[i].wholesale;
  var specialty = listingArray[i].specialty;
  var empty14 = listingArray[i].empty14;
  var empty15 = listingArray[i].empty15;
  var empty16 = listingArray[i].empty16;
  var empty17 = listingArray[i].empty17;
  var empty18 = listingArray[i].empty18;

  var output = '';
  output += '<p><font face="Verdana, Arial" size=2 color="#006633"><b>'+show(company)+'</b></font><BR>';
  output += '<font face="Verdana, Arial" size=1 color="#000080">'+show(address1)+'<BR>';
  output += show(city)+ '<BR>';
  output += show(tel)+ '<BR>';
  output += show(category) +'<BR>';
  if (website.length > 0) {
 	output += '<a href="http://' + website + '" target="_new">' + show(website) +'<\/a>' + '</font><BR>';
	}
  if (description.length > 0) {
  	output += '<font face="Verdana, Arial" size=1 color="#000080">'+show(description)+ '</font></p>';
  }
  

if (category.match("Retail"))
{  
  document.write(output);
  }
}


var townArray = new Array();

var searchtext = window.location.search;
//searchtext = unescape(searchtext);
searchtext = searchtext.substring(12); //NEEDED TO STRIP OUT ?searchtext= FROM THE SEARCH TERM (12 CHARACTERS)
var splitUp = searchtext.toUpperCase().split(' ');  //tHIS SEPARATES THE SEARCH TEXT INTO MULTIPLE STRINGS

var searchArray = splitUp;