function p(href, name, width, height, posX, posY, scrolling, toolbar)
{
    posX = (posX) ? posX : 200;
    posY = (posY) ? posY : 200;
    scrolling = (scrolling) ? scrolling : "yes";
    toolbar = (toolbar) ? toolbar : "yes";
    
    var baum = open(href, name, "scrollbars="+scrolling+", top="+posX+", left="+posY+", width="+ width +", height="+ height +", toolbar="+ toolbar +", status=no, location=no, menubar=no, resizable=yes");
    baum.focus();
    return baum;
}

function cl(target, msg)
{
  msg = decodeURI(encodeURI(msg));
    
  if(confirm(msg)){ location.href = '/www/'+target; }
  else { return false };
}

function l(target)
{  
  location.href = target;
}

function CheckFormInput()
{
   var i=0, temp = false, contentHTML="Folgende Fehler sind aufgetreten:<br /><br /><ul class=\"errorList\">", content="Es sind folgende Fehler aufgetreten:\n", data=CheckFormInput.arguments;

   for (var j=0; j<data.length; j++)
   {
      if(temp)
      {
         temp = false;
         continue;
      }
      
      if(data[j] && data[j+1])
      {      
         contentHTML += "<li>"+data[j+1]+"</li>";
         content     += "     - "+data[j+1]+"\n";
         i = i+1;
         temp         = true;
      }
      else i = i-1;
   }
   if(i > 0)
   {
      alert(content);
      getElem("id", "errorLayer").innerHTML      = contentHTML + "</ul>";
      getElem("id", "errorBody").style.display   = "";
      getElem("id", "errorBorder").style.display = "";
      return false;
   }
   else
   {
      setCont("id", "errorLayer", null, "");
      getElem("id", "errorBody").style.display   = "none";
      getElem("id", "errorBorder").style.display = "none";
      return true;
   }
}
