function check_obligationfield()
{
 var check = true;

 for(var i=1; i<=3; i++)
 {
  if(document.getElementById("obligationfield" + i).value == "")
  {
   document.getElementById("obligationfield" + i).focus();
   check = false;
   i=100;
  }
 }

 if(check == false)
 {
  alert("Bitte füllen Sie alle Pflichtfelder aus!");
 }

return check;
}