echo "</legend>";
 // Begin setting out the table
 echo "<table width=\"100%\" cellpadding=\"2\">";
 // Email address
 echo "<tr><td style=\"width: 20px;\" class=\"color\">W</td><td class=\"color\">";
 if ($company_web != NULL) {
     echo "<a href=\"http://{$company_web}\">{$company_web}</a>";
 } else {
     echo "--";
 }
 echo "</td>";
 echo "<td rowspan=\"3\" style=\"width: 20px;\">A</td>";
 echo "<td rowspan=\"3\" style=\"width: 55%;\" class=\"color\">";
 $print_address = NULL;
 if ($company_postcode != NULL) {
     $postcode = PostcodeFinder($company_postcode);
 }
 if ($company_address != NULL) {
     $print_address = nl2br($company_address);
 }
 if ($company_city != NULL) {
     $print_address = $print_address . "<br />" . $company_city;
 }
 if ($company_county != NULL) {
     $print_address = $print_address . "<br />" . $company_county;
 }
 echo $print_address;
 if ($company_postcode != NULL) {
     echo "<br /><a href=\"{$postcode}\">" . $company_postcode . "</a>";
 }
 echo "</td></tr>";
$country_printable_name = $array_country['country_printable_name'];
print "<h1>{$company_name}&nbsp;<a href=\"index2.php?page=contacts_company_edit&amp;company_id={$company_id}&amp;status=edit\"><img src=\"images/button_edit.png\" alt=\"Edit Entry\" /></a></h1>";
print "<fieldset><legend>Company Details</legend>";
print "<table width=\"100%\">";
print "<tr><td class=\"color\" style=\"width: 12px; text-align: center;\">A</td><td>";
if ($company_address != NULL) {
    print nl2br($company_address) . "<br />";
}
if ($company_city != NULL) {
    print $company_city . "<br />";
}
if ($company_county != NULL) {
    print $company_county . "<br />";
}
if ($company_postcode != NULL) {
    print "<a href=\"" . PostcodeFinder($company_postcode) . "\">" . $company_postcode . "</a><br />";
}
if ($company_country != NULL) {
    print $country_printable_name . "<br />";
}
print "</td></tr>";
if ($company_phone != NULL) {
    print "<tr><td class=\"color\" align=\"center\">T</td><td class=\"color\">" . $company_phone . "</td></tr>";
}
if ($company_fax != NULL) {
    print "<tr><td class=\"color\" align=\"center\">F</td><td class=\"color\">" . $company_fax . "</td></tr>";
}
if ($company_web != NULL) {
    print "<tr><td class=\"color\" align=\"center\">W</td><td class=\"color\"><a href=\"http://{$company_web}\">" . $company_web . "</a></td></tr>";
}
print "</table>";
 } else {
     print "<tr><td colspan=\"4\" bgcolor=\"#{$relation_color}\">Private</td></tr>";
 }
 // Email address
 print "<tr><td width=\"20\" class=\"color\">E</td><td class=\"color\">";
 if ($contact_email != NULL) {
     print "<a href=\"mailto:{$contact_email}\">{$contact_email}</a>";
 } else {
     print "--";
 }
 print "</td>";
 print "<td rowspan=\"5\" width=\"55%\" class=\"color\">";
 // Insert company details
 // Work out the streetmap location URL
 if ($display_postcode != NULL) {
     $postcode = PostcodeFinder($display_postcode);
 }
 if ($display_address != NULL) {
     print nl2br($display_address);
 }
 if ($display_city != NULL) {
     print "<br />" . $display_city;
 }
 if ($display_county != NULL) {
     print "<br />" . $display_county;
 }
 if ($display_postcode != NULL) {
     print "<br /><a href=\"{$postcode}\">" . $display_postcode . "</a>";
 }
 print "</td></tr>";
 // Print the Phone Number
    echo $proj_address_1 . "<br />";
}
if ($proj_address_2 != "") {
    echo $proj_address_2 . "<br />";
}
if ($proj_address_3 != "") {
    echo $proj_address_3 . "<br />";
}
if ($proj_address_town != "") {
    echo $proj_address_town . "<br />";
}
if ($proj_address_county != "") {
    echo $proj_address_county . "<br />";
}
if ($proj_address_postcode != "") {
    $proj_address_postcode_link = PostcodeFinder($proj_address_postcode);
    echo "<a href=\"" . $proj_address_postcode_link . "\">" . $proj_address_postcode . "</a><br />";
}
if ($country_printable_name != "") {
    echo $country_printable_name . "<br />";
}
echo "</td></tr>";
if ($proj_date_start > 0) {
    echo "<tr><td  >Project Start Date</td><td  >{$proj_date_start}</td></tr>";
}
if ($proj_date_complete > 0) {
    echo "<tr><td  >Project Completion Date</td><td  >{$proj_date_complete}</td></tr>";
}
if ($proj_desc != "") {
    echo "<tr><td  >Project Description</td><td  >{$proj_desc}</td></tr>";
}