Hallo,
ich habe ein Problem mit JS. Ich weiß nicht, warum das nicht geht:
ich habe ein Problem mit JS. Ich weiß nicht, warum das nicht geht:
Code:
<script language='JavaScript'>
function auszahlen(dbname)
{
var geld=prompt('{$staat['auszahlung_how_many']}{$staat['auszahlung_how_many2']}$treasury §{$staat['avaiable']}', '$treasury');
if (isNaN(geld))
{ alert('{$staat['fail_how_many']}'); }
else
{ document.location.replace('treasury.php?act=auszahlen'); }
if (geld == null)
{ document.location.replace('treasury.php'); }
}
</script>