function zoom(url, width, height) { 
	popup = window.open (url, 'Zoom', 'width='+width +' height='+height); 
}

function image_popup(url) {
	popup = window.open ('/includes/image_popup.php?file='+url, 'image_popup', 'locationbar=no,menubar=no');
}

function confirmAction(url, message) {
  if (!message) message = 'Soll dieser Eintrag wirklich gelöscht werden ?';
  if (confirm(message)) {
    window.location.href = url;
  }
}  

var htmlelement;

function openeditor(e) {
  htmlcode = e;
  editor = window.open ( 'htmleditor/'
                        ,'htmleditor'
                        ,'width=600,height=450,locationbar=no,menubar=no,resizable=yes');  
}

function getHTMLCode() {
  return htmlcode.value;
}

function setHTMLCode(text) {
  htmlcode.value = text;
}  

// fügt ein Bild aus dem BilderUpload in den HTML-Editor ein
function insertImage(img) {
  opener.insertImageIntoEditor(img);
  opener.window.focus();
  window.close();
}

function insertImageIntoEditor(url) {
  document.all.HTMLEditor1.ExecCommand(DECMD_IMAGE,OLECMDEXECOPT_DONTPROMPTUSER, url);
}

function openImageUpload() {
  iu = window.open('imageupload.php', 'iu', 'resizable=1,width=500,height=580,scrollbars=1'); 
}