      <!--
      var scrollCounter = 0;
      var scrollText    = "     Welcome to DesperateBuyer.co.uk..............DesperateBuyer.co.uk.............If you looking to find your next car then let us help you by giving you direct access tothe best car databases on the web. Click on ABOUT US to find out more.............                  ";
      var scrollDelay   = 70;
      var i = 0;
  
      while (i ++ < 140)
        scrollText = " " + scrollText;

      //Scroll a message across the bottom of the browser
      function Scroller(){
        //This function is to dispay some scolling text in the status bar of the browser
        
        window.status = scrollText.substring(scrollCounter++, scrollText.length);
        if (scrollCounter == scrollText.length)
          scrollCounter = 0;

        setTimeout("Scroller()", scrollDelay);
      }
  
      Scroller();

      function validateForm(){
        var form = document.forms['searchForm'];
        var pos

        //If no values have been entered into the free text fields, then fill them with 'ANY'
        if(form.model.value == "")
          form.model.value = "ANY";
        
        if(form.minPrice.value == "")
          form.minPrice.value = "ANY";

        if(form.maxPrice.value == "")
          form.maxPrice.value = "ANY";

        //Make sure that the price fields are numeric
        if(form.minPrice.value != 'ANY' && isNaN(form.minPrice.value)){
          //Remove any commas in the number
          do{
            form.minPrice.value = form.minPrice.value.replace(',', '');
            pos = form.minPrice.value.indexOf(',');
          }while(pos > 0)

          //If the string is still not numeric, then return falase
          if(isNaN(form.minPrice.value)){
            alert('Please make sure that the minimum price is numeric');
            form.minPrice.focus();
            return false;
          }
        }
        if(form.maxPrice.value != 'ANY' && isNaN(form.maxPrice.value)){
          //Remove any commas in the number
          do{
            form.maxPrice.value = form.maxPrice.value.replace(',', '');
            pos = form.maxPrice.value.indexOf(',');
          }while(pos > 0)

          //If the string is still not numeric, then return falase
          if(isNaN(form.maxPrice.value)){
            alert('Please make sure that the maximum price is numeric');
            form.maxPrice.focus();
            return false;
          }
        }

        if(form.newCars.checked == false && form.usedCars.checked == false){
          alert('Please choose either New or Used Cars');
          return false;
        }

        form.submit();
      }


      //Funcion to sort the array by the chosen column
      function sortByValue(sortedValue){
        //This function allows the user to sort the search results by clicking on the appropriate 
        //column header
        //If the field is a new sort field, then default to Ascending
        if(document.forms['recordsPage'].sortBy.value != sortedValue)
          document.forms['recordsPage'].AscDesc.value = "";
        //Put in the field to be sorted
        document.forms['recordsPage'].sortBy.value = sortedValue;
        //Submit the form to itself
        document.forms['recordsPage'].submit();
      }
      
      function nextPage(){
        //This function allows the user to scroll to the next page of search results
        
        var difference = document.forms['recordsPage'].endRecord.value - document.forms['recordsPage'].startRecord.value;
        document.forms['recordsPage'].startRecord.value = parseInt(document.forms['recordsPage'].startRecord.value) + difference;
        document.forms['recordsPage'].endRecord.value = parseInt(document.forms['recordsPage'].endRecord.value) + difference;
        document.forms['recordsPage'].submit();
      }
      function previousPage(){
        //This function allows the user to scroll to the previous page of search results
        
        var difference = document.forms['recordsPage'].endRecord.value - document.forms['recordsPage'].startRecord.value;
        document.forms['recordsPage'].startRecord.value = parseInt(document.forms['recordsPage'].startRecord.value) - difference;
        document.forms['recordsPage'].endRecord.value = parseInt(document.forms['recordsPage'].endRecord.value) - difference;
        document.forms['recordsPage'].submit();
      }
      
      function showCar(vendor, orderID){
        //This function will open up the window pointing to the Vendors unique product ID
        //so that the user can go to the Vendors actual web site and display the chosen car
        
        window.open("showCar.asp?Vendor=" + vendor + "&orderID=" + orderID, "", "width=650,height=600,resizeable=yes");
      }
      
      function openVendorWindow(URL){
        //This function opens a new window which displays the list of Insurers
        window.open(URL, '', 'width=650,height=480,scrollbars=yes');
      }

      //function validate the submitting of a form
      function submitForm(){
        //Validate that all of the required fields are filled in
        var form = document.forms['sendEmail'];
        var valid = 0;
        //Validate that at least one email address has been entered
        if(form.email1.value == '' && form.email2.value == '' && form.email3.value == ''){
          alert('Please enter at least one Email address');
          form.email1.focus();    
          return false;     
        }
        //Validate that the users name has been enterd
        if(form.yourName.value == ''){
          alert('Please enter your name');
          form.yourName.focus();
          return false;     
        }
        
        //Validate that the users Email address has been entered
        if(form.yourEmail.value == ''){
          alert('Please enter your Email address'); 
          form.yourEmail.focus();
          return false;     
        }
        
        //Validate that a subject has been entered
        if(form.subject.value == ''){
          alert('Please enter a subject');
          form.subject.focus();
          return false;     
        }
        //Submit the form
        form.submit();
      }

      //Function to set the search criteria in the search results page to that which was 
      //originally selected, so that the user does not have to re-enter the search criteria
      function setSearchCriteria(make, regYear, county, mileage, newCars, usedCars){
        //Set the value of each of the select options to be the values passed through
        //Make of car

        var options
        var searchForm = document.forms['searchForm'];
        
        options = searchForm.make;
        for(i=0; i<options.length; i++){
          if(options.options[i].value == make){
            options.selectedIndex = i;
            i = options.length;
          }
        }
        //Registration Year
        options = searchForm.regYear;
        for(i=0; i<options.length; i++){
          if(options.options[i].value == regYear){
            options.selectedIndex = i;
            i = options.length;
          }
        }
        //County
        options = searchForm.county;
        for(i=0; i<options.length; i++){
          if(options.options[i].value == county){
            options.selectedIndex = i;
            i = options.length;
          }
        }
        //Mileage
        options = searchForm.mileage;
        for(i=0; i<options.length; i++){
          if(options.options[i].value == mileage){
            options.selectedIndex = i;
            i = options.length;
          }
        }
        //new cars
        if(newCars == 'on')
          searchForm.newCars.checked = true;
        //used cars
        if(usedCars == 'on')
          searchForm.usedCars.checked = true;
      }


      //-->

