// (c)2004 CSE Kraus & Straubinger
// Script: 		openNavEditor.js
// Purpose: 	Opens the navigation editor or calls for deleting a navigation
// Last updated: 	26.01.2005/bk

function openNavEditor(id,fd_id,message) {
	var x = document.body.clientWidth / 3;
	var y = document.body.clientHeight / 4;
	if ((event.button == 0 && message == '') || (event.button == 0 && confirm(message))) {
		newwindow = window.open('/cse_admin/content/dsp_cmNavForm.cfm?fuseaction=' + id + ',dsp,navweb,' + fd_id + ',' + id + ',0,0,0', 'navEditor', 'width=700,height=600,top=' + y + ',left=' + x + ',toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=0');
		newwindow.focus();
	} else if (event.which == 1 && confirm('Möchten Sie diesen Navigationspunkt wirklich löschen?')) {
		alert('Die rechte Maustaste ist derzeit nicht belegt!');
	} else {
		return false;
	}
}