runOnLoad(function() {
	recon.on('markerClick', function(c) {
		var url = '?_func=sgmdet&_id=' + c.id + '&_mod=' + c.mod;
		Ext.Ajax.request({
			url : url,
			success : function(req) {
				var data = decode(req.responseText);
				if (isObject(data)) {
					var mapinfobox = Ext.get('mapinfobox');
					if (mapinfobox) {
						mapinfobox.setDisplayed(false);
						mapinfobox.dom.innerHTML = '<b>' + data['addr_title'] + '</b><br>' + data['addr_content'];
						mapinfobox.fadeIn();
					}
				}
			}
		});
	})
});
var clickdieadressean = function() {
Ext.MessageBox.show({
            title : 'Weitere Informationen',
            msg : Ext.getDom('dieIDvomDiv').innerHTML,
            modal : true,
            closable : true,
            width :  400
 });
}
Ext.onReady (function() {
	var Boxes = Ext.select('.boxfloat');
	var maxh = 0;
	Boxes.each(function(el) {
		if (maxh < el.getHeight()) {
			maxh = el.getHeight();
		}
	});
	Boxes.each(function(el) {
		el.setHeight(maxh);
	});
});
var moreTreesSelect = function() {
    count = 0;
    foreach(this.options, function(o) {
        if (o.selected) {
            count++;
            if (count > 3) {
                o.selected = false;
            }
        };
    });
};
var kompetenzenSelect = function() {
    count = 0;
    foreach(this.options, function(o) {
        if (o.selected) {
            count++;
            if (count > 3) {
                o.selected = false;
            }
        };
    });
};
