function openWin(imgSrc, imgWidth, imgHeight, imgTitle)
{
  var imgWindow = window.open('','','width='+imgWidth+',height='+imgHeight+',status=no,resizable=no,scrollbars=no');

  imgWindow.document.open();
  imgWindow.document.write('<html><head><title>' + imgTitle + '</title>');
  imgWindow.document.write('<style>#img { position: absolute; left: 4px; top: 4px; } </style></head>');
  imgWindow.document.write('<body bgcolor="#000000" marginheight="0" marginwidth="0">');
  imgWindow.document.write('<div id="img"><img src=' + imgSrc + '></div>');
  imgWindow.document.write('</body></html>');
  imgWindow.document.close();
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function openMap(xRef, yRef, mapType)
{
  var mapWindow = "";

  // Multimap 1:25,000
  if (mapType == 1) mapWindow = window.open('http://www.multimap.com/map/browse.cgi?X=' + xRef + '&Y=' + yRef + '&width=700&height=400&client=public&gride=' + xRef + '&gridn=' + yRef + '&scale=25000','','');

  // Multimap 1:10,000
  else if (mapType == 3) mapWindow = window.open('http://www.multimap.com/map/browse.cgi?X=' + xRef + '&Y=' + yRef + '&width=700&height=400&client=public&gride=' + xRef + '&gridn=' + yRef + '&scale=10000','','');

  // Street Map
  else if (mapType == 2) mapWindow = window.open('http://www.streetmap.co.uk/streetmap.dll?grid2map?X=' + xRef + '&amp;Y=' + yRef + '&amp;arrow=Y&amp;zoom=3','','');
}
