function doSubmit (prefix)
{
  document.form_aa.POSTVAL.value = prefix;
  document.form_aa.submit();
}
function delayer()
{
  document.form_aa.POSTVAL.value = "exit";
  document.form_aa.submit();
}
function Sicherheitsabfrage(frage, prefix)
{
  var Check1=confirm (frage);
  if (Check1==true)
  {
     document.form_aa.POSTVAL.value = prefix;
     document.form_aa.submit();
  }
}

function checkkeycode(prefix)
{
    if(window.event.keyCode == 13)
    {
       document.form_aa.POSTVAL.value = prefix;
       document.form_aa.submit();
    }
}

function setMeldung (txt)
{
  document.getElementById("Meldung").innerHTML = txt;
  document.getElementById("Meldung").style.display='block';
}

function markFalseField (label)
{
    document.form_aa.getElementById(label).className = 'ErrorInput';
}


function calendar()
{
    var cal_frame = document.getElementById('cal_frame');
    var oElement = document.getElementById('calpic');
    var left = 0;
    while(oElement != null)
    {
        left += parseInt(oElement.offsetLeft);
        oElement = oElement.offsetParent;
    }
    if(cal_frame.style.display != 'inline')
    {
        if(cal_frame.src == 'about:blank')
            cal_frame.src = '/webnews/files/calendar/index.php';
        //cal_frame.style.left = String(parseInt(left + 15) + 'px');
        cal_frame.style.left = String(parseInt(left + 10) + 'px');
        cal_frame.style.display = 'inline';
    }
    else
        cal_frame.style.display = 'none';
}
