function nurZahlen(el)
{
  var val = el.value.replace(/[^\.^,\d]/g, '');
  el.value = val;
}

function setValActiv(object)
{
	obj = document.getElementById(object);
	obj.checked = true;
}


function checkForm(formName)
{
 var bReturn = true;
 var obj2 = null;
 for(i = 0; i < document.forms[formName].elements.length ;i++)
 {
  obj = document.forms[formName].elements[i];
  
  if (document.setdonation.ic_spendenbetrag[3].checked == true)
{

  if(obj.name.indexOf("ic_man_") == 0 && (obj.value == "" || obj.value == " " || obj.value == "  " || obj.value == "   " ) )
  {
   
   bReturn = false;
   if(obj.name.indexOf("_help") != -1)
   {
    obj2 = document.getElementById(obj.name);
    obj2.setAttributeNode(document.createAttribute("style"));
    //obj2.style.border = "1px solid  #ffbb11"
    obj2.style.fontWeight="bold";
    obj2.style.backgroundColor = "#fbefcc";
   }
   else
   {
    obj.setAttributeNode(document.createAttribute("style"));
    obj.style.border = "1px solid red"
    obj.style.backgroundColor = "#ffffff";
document.getElementById("hiddendiv").style.display = "block"; 
   }
  }
  else
  {
   if(obj.style.border && obj.style.backgroundColor)
   {
    obj.style.border = "1px solid black";
    obj.style.backgroundColor="#ffffff";
   }
   if(obj.name.indexOf("_help") != -1 && obj2 != null && obj2.style.fontWeight && obj2.style.backgroundColor)
   {
    obj2 = document.getElementById(obj.name);
    obj2.style.backgroundColor="#ffffff";
   }
  }
  //alert(document.newCustomerAccount.elements[i].name.indexOf("*"))
 
 }
}
 //alert(bReturn);
 if(bReturn == false)
 {
  //alert("Unable to submit the form\nPlease ensure to fill out all mandatory fileds.\nMissing fields are accentuated.");
  
 } 
 
 
 return bReturn;
}