﻿function loadGoogleMaps()
{
    var objPostCode = document.getElementById("txtPostCode");
    var strURL = 'http://maps.google.co.uk/maps?f=d&source=s_d&saddr='+escape(objPostCode.value)+'&daddr=53.91245,-2.273569&hl=en&geocode=&mra=ls&sll=53.800651,-4.064941&sspn=12.709674,28.125&ie=UTF8&z=12';    
    windowOpen(strURL);
}
           
function windowOpen(strURL, intWidth, intHeight)
{
    objWindow = window.open("","","width=" + intWidth + ",height=" + intHeight + ",status=yes,scrollbars=yes,resizable=yes");
    objWindow.location.href = strURL;
    if (!objWindow.opener) objWindow.opener = self;
}