hmm, Roenving kommer nok med en kort en :/ - her er en lang en:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1"><title>Ingen titel</title>
<script type="text/javascript">
function udregn(){
f=document.forms.minformular;
fa=new Array(f.kurs.value,f.antal.value,f.prisstk.value);
tmpv=0;
for(i=0;i<fa.length;i++){
if((fa[i].charAt(fa[i].length-3)==",")||(fa[i].charAt(fa[i].length-3)=="."))fa[i]=fa[i].substr(0,(fa[i].length-3))+"x"+fa[i].substr(fa[i].length-2);
fa[i]=fa[i].replace(/\./g,"");fa[i]=fa[i].replace("x",".");
if(tmpv==0)tmpv=fa[i];else tmpv=tmpv*fa[i];
}
f.udregnet.value=tmpv;
}
</script>
</head>
<body>
<form name="minformular">
<input type="text" name="kurs">
<input type="text" name="antal">
<input type="text" name="prisstk"><br><br>
<input type="text" name="udregnet">
<input type="button" onclick="udregn();" value="Udregn">
</form>
</body></html>