function actionInit() {
    // speichert sich global den orginalzustand des action-panels 	
    if (typeof orgActionPanelInnerHtml=="undefined" ) {
        var actionPanel = document.getElementById("actionPanel");				   
        orgActionPanelInnerHtml = actionPanel.innerHTML
    }
}

function actionMessage() { 
    actionInit();

    var messagePanel = document.getElementById("messagePanel");
    var actionPanel = document.getElementById("actionPanel");	

    actionPanel.innerHTML = messagePanel.innerHTML
    window.location.href = "#bottom_line";
    document.getElementById('idMessageSubject').focus();
}

// Aktion abrechen 'urspruenglicher' Action-Panel Conent wieder darstellen.
function cancelAction() {
   	  var actionPanel = document.getElementById("actionPanel");		  
  	  actionPanel.innerHTML = orgActionPanelInnerHtml;
      window.back();
}

function focusContent() {
    document.getElementById('idMessageContent').focus();
}