function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function textCounter(field, countfield, maxlimit) {
	if (field.value.length > maxlimit){
		field.value = field.value.substring(0, maxlimit);
	}else{
		countfield.value = maxlimit - field.value.length;
	}
}

function confirmDelete(url, bericht){
	var a = confirm(bericht);
	if ( a == true ){

		location.href=url;
	}
}

function flash(swf, w, h, wmode, id)
{
	if(!wmode) wmode="opaque";
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" id="'+id+'" width="'+w+'" height="'+h+'">');
	document.write('<param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="'+swf+'" /><param name="wmode" value="'+wmode+'" /><embed src="'+swf+'" id="'+id+'" name="'+id+'" wmode="'+wmode+'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'" swLiveConnect=true allowScriptAccess="sameDomain" /></object>');
}



function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.top = "-125px";
document.getElementById(d).style.background = "url(img/maptypeClosed.png) no-repeat";
}
function ShowContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.top = "0px";
document.getElementById(d).style.background = "url(img/maptype.png) no-repeat";
}
function ReverseContentDisplay(d) {
	if(d.length < 1)
	{
		return;
	}
	if( document.getElementById(d).style.top == "-125px")
	{
		document.getElementById(d).style.top = "0px";
		document.getElementById(d).style.background = "url(img/maptype.png) no-repeat";
	}
	else
	{
		document.getElementById(d).style.top = "-125px";
		document.getElementById(d).style.background = "url(img/maptypeClosed.png) no-repeat";
	}
}