based on:
   (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
   (c) 2002-2003 osCommerce(ot_cod_fee.php,v 1.02 2003/02/24); www.oscommerce.com
   (C) 2001 - 2003 TheMedia, Dipl.-Ing Thomas Plänkers ; http://www.themedia.at & http://www.oscommerce.at
   (c) 2003 XT-Commerce - community made shopping http://www.xt-commerce.com ($Id: ot_cod_fee.php 1003 2005-07-10 18:58:52Z mz $)

   Released under the GNU General Public License
   ---------------------------------------------------------------------------------------*/
require_once 'includes/application_top.php';
// include language
require_once DIR_FS_EXTERNAL . 'payone/lang/' . $_SESSION['language'] . '.php';
require_once DIR_FS_EXTERNAL . 'payone/classes/PayoneModified.php';
$payone = new PayoneModified();
if ($payone->checkConfig() === false) {
    xtc_redirect(xtc_href_link('payone_config.php'));
}
// check start and end Date
$startDate = "";
$startDateG = 0;
if (isset($_GET['startD']) && xtc_not_null($_GET['startD'])) {
    $sDay = $_GET['startD'];
    $startDateG = 1;
} else {
    $sDay = 1;
}
if (isset($_GET['startM']) && xtc_not_null($_GET['startM'])) {
    $sMon = $_GET['startM'];
    $startDateG = 1;
} else {