<!--
	var obj; 	// Target of div Container
	var field; 	// Source and Destination of date
	function changeCalendarContainer()
	{	
		if( xmlhttp.readyState == 4 )
		{
			var result = xmlhttp.responseText;
			obj.innerHTML = result;
		}
	}
	function getCalendar()
	{
		xmlhttp = false;
		try {
			xmlhttp = new XMLHttpRequest();
		} 
		catch (trymicrosoft) {
			try {
				xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
			} 
			catch (error) {
				try {
					xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
				} 
				catch (error) {
					xmlhttp = false;
				}
			}
		}
	
		if( xmlhttp )
		{
			var param = 'curdate=' + field.value;
			xmlhttp.open('get', '/calendar.php?'+param, true);
			xmlhttp.onreadystatechange = changeCalendarContainer;
			xmlhttp.send(null);
		}
	}
	function OpenCalendar( object, fieldname )
	{
		obj = document.getElementById(object);
		field = document.getElementById(fieldname);
		
		if( !obj.style.display || obj.style.display=='none' )
		{
			getCalendar();
			obj.style.display='inline';
			obj.style.zIndex = '100';			
			obj.style.left=(tempX+5)+'px';
			obj.style.top=(tempY+5)+'px';
		}
		else
			obj.style.display='none';
	}
	
	document.onmousemove = getMouseXY;
	var tempX = 0;
	var tempY = 0;
	
	function getMouseXY(e) 
	{
	  var IE = document.all?true:false;
	  if (!IE) document.captureEvents(Event.MOUSEMOVE);
	 
	  if (IE) { // grab the x-y pos.s if browser is IE
	    tempX = event.clientX + document.body.scrollLeft;
	    tempY = event.clientY + document.body.scrollTop;
	  } else {  // grab the x-y pos.s if browser is NS
	    tempX = e.pageX;
	    tempY = e.pageY;
	  }  
	}
	function CalendarReturn( incomming )
	{
		field.value = incomming;
		obj.style.display='none';

		// Spezieller Vergleich der Hin und Rückfahrt
		try {
			checkDate();
		} catch( e ) {
			
		}
	}
	function CalendarMoveMonth( newDate )
	{
		field.value = newDate;
		getCalendar();
	}
-->