/**
*
* @param index the value that thesubmit field should have
*/
function RadioButton(feld,index,maxindex)
{
	//alert("Radiobutton auf feld"+feld);
	// this sets the value of the submitted field to the correct value
	document.formular[feld].value = index; 
 
 for(i=1;i<maxindex;i++)
 {
  // Bilder austauschen
  if(index != i){//uncheck 
  	document.images[feld+''+i].src = 'img/radio1.jpg';
  }
  else{//check
  	document.images[feld+''+i].src = 'img/radio2.jpg';
  }
 }
}