function openContactWindow(text) 
	{
	var page= "<HTML><HEAD><TITLE></TITLE><LINK rel='stylesheet' href='../css/formate.css'/></HEAD><BODY >" + text + "</BODY></HTML>"

		altsound = window.open("","","height=300,width=400, top=450, left=40, scrollbars=1,toolbar=0,location=0,directories=0,status=0,menubar=0")
			if (!altsound.opener)
				{
				altsound.opener = window
				}

		altsound.document.write(page);
		altsound.document.close();
		
	}
	

function openMapWindow(mapURL)
//----------------------------------------------------
// When     Who What
// xx.12.03 vw  Created
// 15.04.04 dh  Width changed from 400 to 470
// 29.06.04 dh  Width changed from 490 to xxx for Gipf
//----------------------------------------------------
{
	w = 670
	if (screen.width) {
		xPosOfWin=screen.height-550 //600
		yPosOfWin=screen.width-w-20  //450		
	} else {
		xPosOfWin=400
		yPosOfWin=600		
	}
	
	
	parameterString="height=470,width="+w+", top="+xPosOfWin+", left="+yPosOfWin+", scrollbars=0,toolbar=0,location=0,directories=0,status=0,menubar=0"
	
	map = window.open(mapURL,"mapWindow",parameterString)
	if (!map.opener)
		{
		map.opener = window
		}
	map.focus();
	
}


function openPopupWindow(title,text,width,height,top,left) 
	{
	var page= "<HTML><HEAD><TITLE>"+title+"</TITLE><LINK rel='stylesheet' href='../css/formate.css'/></HEAD><BODY bgcolor='#FFCC00' text='#000000' link='#000000' vlink='#999999' alink='#999999'>" + text + "</BODY></HTML>"

		myWindow = window.open("","popupWindow","height="+height+",width="+width+", top="+top+", left="+left+", scrollbars=1,toolbar=0,location=0,directories=0,status=0,menubar=0")
			if (!myWindow.opener)
				{
				myWindow.opener = window
				}

		myWindow.document.write(page);
		myWindow.document.close();
		myWindow.focus();
		
	}

//----------------------------------------
// Checks if the contents of an input
// element does not exceed a specified
// maximum size.
//
// No = and § allowed.
//----------------------------------------
// Call example: 
// onKeyUp="CheckInput(this,100)
//----------------------------------------
// When Who What
// 07.04.04 dh Created
//----------------------------------------
function CheckInput (objCaller, intMax) {
  var strAbbreviationSymbol = "..."
  var strText = objCaller.value
  var intLength = strText.length
  /*
  // dont allow equal sign
  if (strText.indexOf("=")>-1) {
    alert ("Gleichheitszeichen (\=) sind nicht erlaubt.") 
  }

  // dont allow § sign
  if (strText.indexOf("§")>-1) {
    alert ("Gleichheitszeichen (\§) sind nicht erlaubt.")
  }
  
  // max length 
  if (intLength > intMax) {
    alert ("Der eingegebene Text ist zu lang.\n\nÜberlegen Sie, wie Sie ihn kürzen könnten.");
    objCaller.value = strText.substr (0, intMax - strAbbreviationSymbol.length) + strAbbreviationSymbol
  }*/
}
