function initForm(){
  collapsediv = $$('.collapse');
  
  collapsediv.each( function(div){
    div.contentdiv = div.down('.cbcontent');
    div.handleCB = div.down('.handle');
    div.handleCB.observe('click', toogleDivEvent);
    div.handleCB.contentdiv = div.contentdiv;
    toogleDiv(div.handleCB);
  });
}

function toogleDivEvent(event){
	//if-Anweisung da der (bescheuerte!!) IE event.target nicht kennt sondern nur event.srcElement
	if (event.target) {
  	toogleDiv(event.target);
  }
	else {
		toogleDiv(event.srcElement);
	}
}
function toogleDiv(handle){
    //Event.observe('anfrageform', 'submit', function(){ handle.contentdiv.hide(); });
    if(handle.checked){
      //$$('input').each(function(elem){
				//if(elem.orgval)
				 //elem.value = elem.orgval;
      //});
      handle.contentdiv.show();
    }else{
      handle.contentdiv.hide();
			//$$('input').each(function(elem){
				//elem.orgval = elem.value;
				//elem.value = '';
			//});
    }
}

addEvent(window,'DOMContentLoaded', initForm);