
<!--
function OpenCalendar(strZiel, strName, intWidth) { // If txteintag has a value, the lookup window starts in month of the date 
    if (document.all) {
		var ClickX = window.event.x+window.screenLeft+5;
		var ClickY = window.event.y+window.screenTop-50;
		var position=', left='+ClickX+', top='+ClickY+'';
	    fenster = window.open('../include/dtlookup.php?ZielFeld='+strZiel+' ', strName,position+', width='+intWidth+',height=150,scrollbars=no');
	} else {
		fenster = window.open('../include/dtlookup.php?ZielFeld='+strZiel+' ', strName, 'width='+intWidth+',height=150,scrollbars=no');
	}
}
// Sicherheitsabfrage vor dem Löschen von Content
function frage_loeschen_content(nav_objectid,content_id){
	var frage = confirm("Soll das Dokument mit ID " + content_id + " unwiderruflich gelöscht werden?");
	if (frage){
		window.location.href = "../admin/adm_liste.php?action=loeschen&content_id=" + content_id + "&nav_objectid=" + nav_objectid;
	}
	return frage;
} // Ende frage_loeschen_content

// Sicherheitsabfrage vor dem Löschen von Bildern
function frage_loeschen_bilder(bildname){
	var frage = confirm("Soll das Bild " + bildname + " unwiderruflich gelöscht werden?");
	if (frage){
		window.location.href = "../admin/adm_pic.php?action=del&bild=" + bildname;
	}
	return frage;
} // Ende frage_loeschen_bilder


// Noch nicht implementierter Versuch, den Navigationsframe zu refreshen
function refreshnav(){
	parent.nav.location.href = "../admin/nav.php";
	return;
} // Ende refreshnav

//////////////////////
// Sicherheitsabfrage vor dem Löschen
function bestaetigen(name,id,ziel){
	var frage = confirm("Soll das Objekt '" + name + "' (ID" + id + ") unwiderruflich gelöscht werden?");
	if (frage){
		window.location.href = ziel;
	}
	return frage;
} // Ende bestaetigen	
	
// Sicherheitsabfrage vor dem Löschen von Dingen
function frage_del(frage,aktion) {
    var frageuser = confirm(frage);
    if (frageuser) {
          window.location.href = aktion;
	}
	return frageuser;
} // Ende frage_loeschen

function setPointer(theRow, thePointerColor) {
    if (typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined') {
        return false;
    }
 
    var row_cells_cnt = theRow.cells.length;
    for (var c = 0; c < row_cells_cnt; c++) {
        theRow.cells[c].bgColor = thePointerColor;
    }
 
    return true;
} // end of the 'setPointer()' function

// Bilder Auswahl Funktionen
function ChoosePicture (strForm, strField, strName, intWidth, intHeight) {  
    Test = window.open('adm_pictures.php?action=katalog&ziel_verzeichnis=contentimage&form='+strForm+'&field='+strField+' ', strName, 'width='+intWidth+', height='+intHeight+',scrollbars=yes');
    if (document.all) {
		var ClickX = window.event.x;
		var ClickY = window.event.y;
		if (navigator.appVersion.indexOf("MSIE 5")>0 ) {
			Test.moveTo(ClickX+window.screenLeft+5, ClickY+window.screenTop-50);
		}
	}
}
// Bilder Auswahl Funktionen
function ManagePictures (strAction, strForm, strField, strName, intWidth, intHeight) {  
    Test = window.open('adm_pictures.php?action='+strAction+'&form='+strForm+'&field='+strField+'&ziel_verzeichnis=contentimage&returnto='+strAction+' ', strName, 'width='+intWidth+', height='+intHeight+',scrollbars=yes');
    if (document.all) {
		var ClickX = window.event.x;
		var ClickY = window.event.y;
		if (navigator.appVersion.indexOf("MSIE 5")>0 ) {
			Test.moveTo(ClickX+window.screenLeft+5, ClickY+window.screenTop-50);
		}
	}
}

// Öffnet ein beliebiges Fenster mit einem Script als Inahtl
function OpenWindow (strScript, strForm, strField, strName, intWidth, intHeight) {
    Test = window.open(strScript+'&form='+strForm+'&field='+strField+'&curval=', strName, 'width='+intWidth+', height='+intHeight+',scrollbars=yes');
	if (document.all) {
		var ClickX = window.event.x;
		var ClickY = window.event.y;
		if (navigator.appVersion.indexOf("MSIE 5")>0 ) {
			Test.moveTo(ClickX+window.screenLeft+5, ClickY+window.screenTop-50);
		}
	}
}
function testing(strWert) {
	alert(strWert);
}
//-->
