// Page Scripts
// document.write("<SCRIPT LANGUAGE=javascript type='text/javascript' src='../scripts/tools.js'></SCRIPT>");

function buchen(url) {
	// posTop = window.screen.availHeight - 400;
	posTop = 5;
	posLeft = window.screen.availWidth - 410;
	wnd = window.open(url, "buchen", "width=380,height=480,menubar=0,toolbar=0,location=0,status=0,scrollbars=1,resizable=1,left="+posLeft+",top="+posTop);
	wnd.focus();
	return false;
}
function openMailForm(values) {
	// posTop = window.screen.availHeight - 400;
	posTop = 5;
	posLeft = window.screen.availWidth - 390;
	url = "mailform.htm?" + values; //escape(values);
	// alert(url);
	wnd = window.open(url, "mailform", "width=380,height=480,menubar=0,toolbar=0,location=0,status=0,scrollbars=1,resizable=1,left="+posLeft+",top="+posTop);
	wnd.focus();
	return false;
}

function document_onclick_def(e) {
	var el;
	if (e)	{ el = e.target; } // Mozilla
	else	{ el = window.event.srcElement; } // IE
	
	while (el && (el.tagName != "A")) {
		if (el.parentNode) el = el.parentNode; // Mozilla
		if (el.parentElement) el = el.parentElement; // IE
		else el = null;
	}
	if (el) {
		if (el.className == "Buchen")
			return buchen(el.href);
	}
	return true;
}
// document.onclick = document_onclick_def;



