document.writeln('<style type="text/css">@import url(/fileadmin/templates/js/jscalendar-1.0/calendar-haz.css);</style>');
document.writeln('<script type="text/javascript" src="/fileadmin/templates/js/calendar.js"></script>');
document.writeln('<script type="text/javascript" src="/fileadmin/templates/js/jscalendar-1.0/calendar-setup.js"></script>');

function changeImageFromParent(uri,_this)
{
	if (!uri) return false;

	if (_this && _this.firstChild && _this.firstChild.tagName && _this.firstChild.tagName.toLowerCase) //DOM ?
		{
			if (_this.firstChild.tagName.toLowerCase() == 'img') // <img... ?
			_this.firstChild.src = uri;//set src="...">
			return true;
		}

	//IE 4+ (?)
	if (!window || !window.event || !window.event.srcElement || !window.event.srcElement.tagName) return false;
	if (window.event.srcElement.tagName.toLowerCase() != 'img') return false;
	window.event.srcElement.src = uri;
	return true;
}
	
function changeImageFromSubmit(uri,_this)
	{
		if (uri && _this && _this.src) _this.src = uri;
	}

function openWin(uri,name,w,h,l,t,_options)
	{
		if (!uri) return false;
		if (!w) w=400;
		if (!h) h=500;
		if (!l) l=10;
		if (!t) t=10;
		if (!_options)	_options='scrollbars=no,resizable=1,status=1';
		popup = window.open(uri,name,"width="+w+",height="+h+",left="+l+",top="+t+","+_options) 
		popup.focus();
}
function showReservationFrame(cat) {
	
	if (cat == "index") {
		if (document.getElementById('reservationresult')) {
			obj 			= 	document.getElementById('reservationresult');
			obj.className 	=	'reservFrameHome';
		}
	} else {
		if (document.getElementById('reservationresult')) {
			obj 			= 	document.getElementById('reservationresult');
			obj.className 	=	'reservFrameMisc';
		}
	}
	
}