Kontaktformular
var IE = document.all ? true : false;
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;
var tempX = 0;
var tempY = 0;
function getMouseXY(e) {
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;
}
if (tempX < 0) { tempX = 0; }
if (tempY < 0) { tempY = 0; }
return true;
}
document.onclick = onDocumentMouseClick;
function onDocumentMouseClick() {
if (!dynCal_mouseoverStatus) {
for (i = 0; i < dynCal_layers.length; i++) {
dynCal_layers[i].hideLayer();
}
}
}
dynCal_mouseoverStatus = false;
dynCal_layers = new Array();
function dynCal_mouseover(status) {
dynCal_mouseoverStatus = status;
return true;
}
function DynCal(objectName, callbackName, startYear, endYear)
{
this.objectName = objectName;
this.callbackName = callbackName;
this.currentDate = new Date();
this.previous = dynCal_previous;
this.next = dynCal_next;
this.changeDropMonth = dynCal_changeDropMonth;
this.changeDropYear = dynCal_changeDropYear;
this.InitCal = InitCal;
this.CreateCal = dynCal_CreateCal;
this.RefreshCal = dynCal_RefreshCal;
this.offsetX = 5;
this.offsetY = 5;
this.startYear = startYear;
this.endYear = endYear;
this.writeHtml = dynCal_writeHtml;
this.show = dynCal_show;
this.toggleCal = dynCal_toggleCal;
this.mouseover = dynCal_mouseover;
this.hideLayer = dynCal_hideLayer;
dynCal_layers[dynCal_layers.length] = this;
this.writeHtml();
}
function dynCal_writeHtml() {
document.write('<\/a>');
document.write('
//Initialisieren function InitCal() { //document.getElementById["dropMonth"].selectedIndex = currentDate.getMonth(); }
function ConvertCurrentDay(currentDay) { //Umrechnung für unser System if (currentDay == 0) currentDay = 6; else currentDay = currentDay - 1;
return currentDay; }
function dynCal_previous() { this.currentDate.setMonth(this.currentDate.getMonth() - 1); this.RefreshCal(); }
function dynCal_next() { this.currentDate.setMonth(this.currentDate.getMonth() + 1); this.RefreshCal(); }
function dynCal_changeDropMonth(month) { this.currentDate.setMonth(month); this.RefreshCal(); }
function dynCal_changeDropYear(year) { this.currentDate.setFullYear(year); this.RefreshCal(); }
function dynCal_RefreshCal() { document.getElementById(this.objectName + "_layer").innerHTML = this.CreateCal();
document.getElementById(this.objectName + "_dropMonth").selectedIndex = this.currentDate.getMonth();
option = document.getElementById(this.objectName + "_dropYear");
for (i = 0; i < option.length; i++) { currentYear = this.currentDate.getYear(); if (currentYear < 999) currentYear += 1900; if (option.options[i].value == currentYear.toString()) { option.selectedIndex = i; } } } function dynCal_CreateCal() { var html = "
";
html +="
|