function LoginConfirm()
{
  if (confirm("Um diese Funktion nützen zu können müssen Sie Sich einloggen. Wollen Sie Sich nun einloggen ? ") == true) self.location.href="index.php";
}

function IsBetrag(text)
{
  text = text.replace(/,/,".");
  text = text.replace(/-/,"");
  for(i=0;i<text.length;i++) if ((text.substr(i,1) != '.') && ((text.substr(i,1) < '0') || (text.substr(i,1) > '9'))) return "err";
  text = text.replace(/ /,"");
  return text;
}