X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=objednavka.js;h=71ae746073aa57bf5381d9e630b9b3d5b11cdf10;hb=9143b52febe605c5e192a78e1e398815394968ac;hp=761946a7781daa707e06ba7b401d2ee3139107be;hpb=38f5ef1202797c838ad3109950eb9da24e8d1f39;p=www.energie.vellum.cz.git diff --git a/objednavka.js b/objednavka.js index 761946a..71ae746 100644 --- a/objednavka.js +++ b/objednavka.js @@ -1,5 +1,5 @@ // $Id$ -// <-see index.php:/if (!($s=trim($s)))/ +// <-see common.php:/if (!($s=trim($s)))/ var want_price=new Array(); want_price['phys_2002']=480; want_price['phys_2001']=360; @@ -48,5 +48,5 @@ var element=form.elements[elementi]; price+=element.value * want_price[element.name.substr(5)]; } - field.form.elements['price'].value=price; + form.elements['price'].value=price; }