﻿    function getQuote() {
      // Create the arrays
      quotes = new Array(5);
      sources = new Array(5);
  
      // Initialize the arrays with quotes
      quotes[0] = "As always, staff at your service centre on Thorpe Road were unfailingly helpful.  Joe deserves a special mention." ;
      sources[0] = "Ms G of Norwich Norfolk";
      quotes[1] = "Delighted with service from very helpful lady on service reception and prompt engineers";
      sources[1] = "Mrs G of Holt, Norfolk";
      quotes[2] = "The most professional yet friendly experience of a car purchase I have ever experienced.  Thank you.";
      sources[2] = "Mr H of Beccles, Suffolk";
      quotes[3] = "Usual efficient and courteous service from your Swaffham branch";
      sources[3] = "Mr A of Swaffham Norfolk";
      quotes[4] = "I would like to say a thank you to all your staff as they make me feel as a friend and not just a customer";
      sources[4] = "Mr B of Bowthorpe Norwich";
      quotes[5] = "The staff at Busseys Attleborough are very nice, and eager to help with any problem";
      sources[5] = "Mrs M of Attleborough Norfolk";
      quotes[6] = "Completely satisfied. Very professional staff";
      sources[6] = "Mrs S of Great Snoring, Norfolk";
      quotes[7] = "First Rate service and excellent attitude from front of house (Deborah) and mechanic.  Well done!  Very helpful.";
      sources[7] = "Mr C of Horsford, Norwich.";
      quotes[8] = "Had no intention of buying another car, but yet again too impressed to say no. Very good sales people.";
      sources[8] = "Mrs I of Norwich Norfolk";
      quotes[9] = "Extremely happy with both the blokes and the service provided";
      sources[9] = "Mr J of Thetford, Norfolk";
  
      // Get a random index into the arrays
      i = Math.floor(Math.random() * quotes.length);
  
      // Write out the quote as HTML
      document.write("<dl class='text'>\n");
      document.write("<dt>" + "\"<i>" + quotes[i] + "</i>\"\n");
      document.write("<dd>" + "- " + sources[i] + "\n");
      document.write("<dl>\n");
    }

   function externalLinks() {
  if (!document.getElementsByTagName)
    return;

  var anchors = document.getElementsByTagName("a");
  for (var i=0; i<anchors.length; i++) {
    var anchor = anchors[i];
    if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")
      anchor.target = "_blank";
  }
}
window.onload = externalLinks;
