function offen()
{
 var aktuell = window.open('/aktuell.htm','remote','width=350,height=350','top=0,screenX=0,screenY=0,left=0,toolbar=0,location=0,directories=0,menubar=1,status=0,scrollbars=0,resizeable=0');
if(aktuell.closed == true) aktuell;
        else  aktuell.focus()
}

function los()
                {
                 document.search.submit();
                }
function FocusCol(obj)
      {
        if (document.getElementById || document.all)
        {
          obj.style.color="#000000";
          obj.style.backgroundColor="#ffffff";

        }
      }
      //normale Ansicht
      function BlurCol(obj)
      {
        if (document.getElementById || document.all)
        {
          obj.style.color="#000000";
          obj.style.backgroundColor="#f9fdc4";

        }
      }
      
      function storeCaret (textEl) {
			//alert ("Hallo");
         if (textEl.createTextRange){
            textEl.caretPos = document.selection.createRange().duplicate();
         }
}
function bold (textEl) {
       if (textEl.createTextRange && textEl.caretPos) {
          var caretPos = textEl.caretPos;
          caretPos.text ="<b>"+caretPos.text+"</b>";
       }
       else {
         textEl.value  = "<b></b>";
       }
}

function italic (textEl) {

       if (textEl.createTextRange && textEl.caretPos) {
         var caretPos = textEl.caretPos;
         caretPos.text ="<i>"+caretPos.text+"</i>";
       }
       else {
         textEl.value  = "<i></i>";
       }
}

function underline (textEl) {

       if (textEl.createTextRange && textEl.caretPos) {
         var caretPos = textEl.caretPos;
         caretPos.text ="<u>"+caretPos.text+"</u>";
       }
       else {
         textEl.value  = "<u></u>";
       }
}

function cr (textEl) {
         if (textEl.createTextRange && textEl.caretPos) {
            var caretPos = textEl.caretPos;
            caretPos.text =caretPos.text+"<br>";
         }
         else {
              textEl.value  = "<br>";
         }
}
