<!--

function init()
{
  var baer;
}

function zaehle()
{ 
zahl=window.document.zeige.Text.value.length/55;
zahl=Math.round(zahl*10)/10;
window.document.zeige.anzeigen.value=zahl;
}

function chkFormular()
{
  basis=document.formular;
 if(basis.name.value != "" && basis.strasse.value != "" && basis.ort.value != "" && basis.telefon.value != "" && basis.summe.value != "" && basis.agb.checked)  {
 }
  }
  
function sendBMail()
{
  open_window('win', 'mail_confirm.php', 300, 300, 300, 200, 0, 0, 0, 0, 0);
}


function open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
  }


function changebgc(id,color) {
  object_root=document.getElementById(id);
  object_root.style.backgroundColor = color;
}

function changefc(id,color) {
  object_root=document.getElementById(id);
  object_root.style.color = color;
}

function changeline(id,color) {
  object_root=document.getElementById(id);
  object_root.style.borderLeftWidth=1;
  object_root.style.borderLeftColor=red;
  object_root.style.borderLeftStyle=solid;
  object_root.style.borderRightWidth=1;
  object_root.style.borderRightColor=blue;
  object_root.style.borderRightStyle=solid;
}

function outline(id)
{
  for (var zaehler=1; zaehler <= 10; zaehler++) {
     if (document.getElementById(id+zaehler).style.display == 'none') {
       aktiv=zaehler;
       break;
     }
  }
  document.getElementById(id+aktiv).style.display = 'block';
  document.getElementById('zahl').innerHTML=zaehler+1;
}

function exline(id)
{
  var zaehler = 9;
  while (zaehler > 0) {
     if (document.getElementById(id+zaehler).style.display == 'block') {
       naktiv=zaehler;
       break;
     }
     zaehler--;
  }
  document.getElementById(id+naktiv).style.display = 'none';
  zaehler--;
  if (zaehler<0) {
    zaehler=0;
  }
  document.getElementById('zahl').innerHTML=zaehler+1;
}

function change_value(id1,id2) {
  object_root1=document.getElementById(id1);
  object_root2=document.getElementById(id2);
  aux=object_root1.value;
  object_root1.value=object_root2.value;
  object_root2.value=aux;
}

function add(wert) {
  document.forms["formular"].elements["summe"].value=wert;
}

function sub(wert) {
  document.forms["formular"].elements["summe"].value=wert;
}

-->
