Commercial products have been discontinued.
[www.jankratochvil.net.git] / product / hotelgate / Order.js
diff --git a/product/hotelgate/Order.js b/product/hotelgate/Order.js
deleted file mode 100644 (file)
index f0e0e93..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-/* $Id$
- * HotelGate Order helper.
- * Copyright (C) 2005 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
- * 
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; exactly version 2 of June 1991 is required
- * 
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- * 
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-
-// Double-run protection due to the My::Web "text/javascript" compatibility hack.
-if (!window.var_product_hotelgate_Order_done) {
-       var var_product_hotelgate_Order_done=1;
-
-function Order_validate(form)
-{
-       var e_types_array=form.elements["type"];
-       var checked=0;
-       for (var typei=0;typei<e_types_array.length;typei++)
-               if (e_types_array[typei].checked)
-                       checked++;
-       if (1!=checked) {
-               // FIXME: Unify with: $product::hotelgate::Order::error{"type_missing"}
-               alert("Please fill in the {Device casing type} field!");
-               return false;
-               }
-       return true;
-}
-
-function Order_error_check()
-{
-       var e_error;
-       if (document.getElementById)
-               e_error=document.getElementById("error");
-       if (e_error && e_error.textContent)
-               alert(e_error.textContent);
-}
-
-function Order_error_check_delayed()
-{
-       // HACK: 0ms - wait for 'css_inherit.js' finalization.
-       setTimeout('Order_error_check();',0);
-}
-
-/* Origin: http://simon.incutio.com/archive/2004/05/26/addLoadEvent */
-function addLoadEvent(func)
-{
-       var onload_orig=window.onload;
-       if (typeof(onload_orig)!='function')
-               window.onload = func;
-       else
-               window.onload = function()
-               {
-                       onload_orig();
-                       func();
-               };
-}
-
-addLoadEvent(Order_error_check_delayed);
-
-}