function fec_delete(del_url) {
	if(confirm("Bist Du sicher, daß Du diesen Eintrag löschen willst?"))
	{
		window.location.href = del_url;
	}
	else
	{
		return;
	}
}
function showGreetingsKhol() {
	var middle, nHeight, nWidth
	nHeight = 560;
	nWidth = 570;
	middle = ",top=" + Math.floor((screen.height-nHeight)/2) + ",left=" + Math.floor((screen.width-nWidth)/2);
        window.open("/khol.asp","_blank","scrollbars=yes,toolbar=no,locationbar=no,status=no,menubar=no,width="+nWidth+",height="+nHeight+"," + middle);
}
function showGreetingsSpindelegger() {
	var middle, nHeight, nWidth
	nHeight = 560;
	nWidth = 570;
	middle = ",top=" + Math.floor((screen.height-nHeight)/2) + ",left=" + Math.floor((screen.width-nWidth)/2);
        window.open("/spindelegger.asp","_blank","scrollbars=yes,toolbar=no,locationbar=no,status=no,menubar=no,width="+nWidth+",height="+nHeight+"," + middle);
}
function showVideos() {
	var middle, nHeight, nWidth
	nHeight = 560;
	nWidth = 570;
	middle = ",top=" + Math.floor((screen.height-nHeight)/2) + ",left=" + Math.floor((screen.width-nWidth)/2);
	window.open("/schuessel.asp","_blank","scrollbars=yes,toolbar=no,locationbar=no,status=no,menubar=no,width="+nWidth+",height="+nHeight+"," + middle);
}
function showChat() {
	var middle, nHeight, nWidth
	nHeight = 400;
	nWidth = 500;
	middle = ",top=" + Math.floor((screen.height-nHeight)/2) + ",left=" + Math.floor((screen.width-nWidth)/2);
	window.open("/chat.asp","_blank","scrollbars=yes,toolbar=no,locationbar=no,status=no,menubar=no,width="+nWidth+",height="+nHeight+"," + middle);
}

function LoadPage(page,nWidth,nHeight) {
	var middle
	middle = ",top=" + Math.floor((screen.height-nHeight)/2) + ",left=" + Math.floor((screen.width-nWidth)/2);
	window.open(page,"progresswindow","scrollbars=yes,toolbar=no,locationbar=no,status=no,menubar=no,width="+nWidth+",height="+nHeight+"," + middle);
}

function LoadZoom(page,nWidth,nHeight) {
	var middle
	middle = ",top=" + Math.floor((screen.height-nHeight)/2) + ",left=" + Math.floor((screen.width-nWidth)/2);
	window.open(page,"progresswindow","width="+nWidth+",height="+nHeight+"," + middle);
}

function LoadGallery01(page,nWidth,nHeight) {
	var middle
	middle = "top=" + Math.floor((screen.height-nHeight)/2) + ",left=" + Math.floor((screen.width-nWidth)/2);
	window.open(page,"progresswindow","width="+nWidth+",height="+nHeight+"," + middle);
}

function LoadGallery(page,nWidth,nHeight) {
	var middle
	middle = "top=" + Math.floor((screen.height-nHeight)/2) + ",left=" + Math.floor((screen.width-nWidth)/2);
	window.open(page,"progresswindow","width="+nWidth+",height="+nHeight+"," + middle);
}

function setSelectToValue(thisSelect, thisValue) {
    var found = 0;
    for (i = 0; thisSelect[i]; i++) {
        if (thisSelect[i].value == thisValue) {
            thisSelect[i].selected = true;
            found = 1;
        }
    }
    if (found == 0) {
        alert("Error: Could not locate " + 
                thisValue + " in " + thisSelect + ".");
    }
}
