OLCpatches[OLCpatches.length] = ["createGroundOverlay(Titel, Url, a)", "createGroundOverlay.js"];
function createGroundOverlay(Titel, Url, a)
{
var Msg = "";
    Msg += "<?xml version='1.0' encoding='UTF-8'?>\r\n";
    Msg += "<kml xmlns='http://earth.google.com/kml/2.0'>\r\n";
    Msg += "<Document>\r\n";

    Msg += "  <name>" + Titel + "</name>\r\n";
    Msg += "  <open>1</open>\r\n";
    Msg += "  <description><![CDATA[created with OLClient]]></description>\r\n";

    Msg += "  <GroundOverlay>\r\n";
    Msg += "    <name>" + Titel + "</name>\r\n";
    Msg += "    <Icon>\r\n";
    Msg += "      <href>" + Url.replace(/&/g,"&amp;") + "</href>\r\n";
    Msg += "      <viewBoundScale>0.75</viewBoundScale>\r\n";
    Msg += "    </Icon>\r\n";
    Msg += "    <LatLonBox>\r\n";
    Msg += "      <north>" + a.top + "</north>\r\n";
    Msg += "      <south>" + a.bottom + "</south>\r\n";
    Msg += "      <east>" + a.right + "</east>\r\n";
    Msg += "      <west>" + a.left + "</west>\r\n";
    Msg += "    </LatLonBox>\r\n";
    Msg += "  </GroundOverlay>\r\n";

    Msg += "</Document>\r\n";
    Msg += "</kml>\r\n";

    return(Msg);
}


