Source code
<?php
/*
Opening streetmap
*/
?>
<html>
<head>
<script type="text/javascript">
/*javascript function to open a window. The settings can be changed*/
function mapDisplay(locationRef) {
    var zoom = 115;/* Zoom ratios 106,110,115,120,126,130,140,150*/
    var link = "http://streetmap.co.uk/grid/" + locationRef + "&A=Y&Z=" + zoom;
    window.open(link,"","scrollbars=no,menubar=no,height=700,width=600,resizable=yes,toolbar=no,location=no,status=no");
}
</Script>
</head>

<body>
<a  href="http://snippets.bluejon.co.uk/index.php"/>MENU</a> <br />

<center>
<?php
$mapRef= "'tq810540'";/*Variable with landranger grid reference to open streetmap*/
print"With the current settings street map will open in a window with os 1:25 000 scale.<br>";
print"streetmap link will open with $mapRef grid reference in a window";
?>

<br /><br />
<! map link ##########################################################>
<a href="javascript:mapDisplay(<?php print $mapRef?>);">streetmap</a>

</center>
<br /><br />
<a  href="http://snippets.bluejon.co.uk/streetmap/streetmap-v1-phpcode.php">Display php source code </a> 
</body>
</html>