<link rel="stylesheet" href="ulstyles.css" type="text/css">
<table width="100%" border="0" cellspacing="0" cellpadding="5" align="center">
  <tr>
    <td colspan="2">
	  <p><font class="normal">{querytype}</font>
	  <br><font class="normal">{matches}</font>
	</td>
	<td align="right">

<!-- Start the Drop Down List for sorting the results -->
<!-- DO NOT REMOVE THE FOLLOWING LINE -->
{####}
       <select size="1" name="order" onChange="document.form1.submit()">
          <option value="" selected>Sort by...</option>
          <option value="name">Name</option>
          <option value="address1">Address</option>
          <option value="city">City</option>
          <option value="zip">Zip Code</option>
       </select>
<!-- End the Drop Down List for sorting results -->
<!-- DO NOT REMOVE THE FOLLOWING LINE -->
{####}           
	
	<p>
	<font class="normal"> {paget} {pages} </font></td>
  </tr>
   <tr>
   <td colspan="3">
     <hr>
   </td>
 </tr>
 
<!-- DO NOT REMOVE THE FOLLOWING LINE -->
{###}

  <!-- The following code gets repeated for each record that matches the query -->
  <tr> 
    <td><font class="bold">{displaynumber}</font></td>
    <td><a class="nameLink" href="results_details.php?id={id}&dist={distance}">{name}</a></td>
	<td align="right"><font class="normal">{distance} &nbsp;</font></td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
    <td><font class="normal">{address1}<br>{address2}</font></td>
	<td align="right">{maptext}</td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
    <td><font class="normal">{city} {state} {country} {zip} </font></td>
	<td>&nbsp;</td>
  </tr>
  <tr>
   <td colspan="3">
  <!-- BEGIN HIDING
  The following field placeholders can be placed anywhere in this area to be displayed:
  {telephone} {fax} {email} {website} {user1} {user2} {user3} {user4} user5}
  END HIDE  -->
     <hr>
   </td>
 </tr>
 
<!-- DO NOT REMOVE THE FOLLOWING LINE -->
{###}

</table>