/**
 * Einblenden der Auswahl eines Zeitraumes
 *
 * Autor: Lars Kemnah - Werbewind KG 12/2005
 * Version: 1.0
 */
/********** TOOLTIP **********/
timeTable = null;
/*document.onmousemove = updateMyTooltip;
// Position des Tooltips aktualisieren
function updateMyTooltip(i) {
	if (document.all) { // IE
		x = window.event.x + document.body.scrollLeft;
		y = window.event.y + document.body.scrollTop;
	}
	else { // alle anderen Browser
		x = i.pageX;
		y = i.pageY;
	}
	if (timeTable != null) {
		timeTable.style.left = (x + 15) + "px";
		timeTable.style.top 	= (y + 5) + "px";
	}
}*/
// Tooltip anzeigen
function showTimeTable(id) {
	/*if (document.all) { // IE
		x = window.event.x + document.body.scrollLeft;
		y = window.event.y + document.body.scrollTop;
	}
	else { // alle anderen Browser
		x = i.pageX;
		y = i.pageY;
	}
	timeTable = document.getElementById(id);
	timeTable.style.left = (x - 10) + "px";
	timeTable.style.top 	= (y - 10) + "px";*/
	timeTable = document.getElementById(id);
	timeTable.style.display = "block"
}
// Tooltip ausblenden
function hideMyTimeTable() {
	timeTable.style.display = "none";
}
function BgColor1(td) {
	td.style.backgroundColor = "#FEDB4B";
}
function BgColor2(td) {
	td.style.backgroundColor = "#FFFFFF";
}
function SetTime(timename, time) {
	document.getElementById("zeitname").value = timename;
	document.getElementById("zeit").value = time;
	hideMyTimeTable();
}
