+EaP 3/2008 (139)
[www.energie.vellum.cz.git] / objednavka.js
index 761946a..963c08e 100644 (file)
@@ -1,12 +1,18 @@
 // $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;
-want_price['phys_2000']=150;
-want_price[  'cd_2000']=280;
-want_price[  'cd_1999']=280;
-want_price[  'cd_1998']=280;
+want_price['phys_2008']=550;
+want_price['phys_2007']=480;
+want_price[  'cd_2007']=480;
+want_price[  'cd_2006']=480;
+want_price[  'cd_2005']=280;
+want_price[  'cd_2004']=280;
+want_price[  'cd_2003']=280;
+want_price[  'cd_2002']=120;
+want_price[  'cd_2001']=120;
+want_price[  'cd_2000']=120;
+want_price[  'cd_1999']=120;
+want_price[  'cd_1998']=120;
 want_price[  'cd_1997']=120;
 want_price[  'cd_1996']=120;
 
@@ -48,5 +54,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;
 }