<?php
/*=======================================================================
 *
 * job_tour.php
 *
 * Autor: Carsten Annacker
 *
 =======================================================================*/

include_once("../include/global.inc.php");
include_once("../include/caglobal.inc.php");
list ($hq_id_job) = getHttpVars(array("hq_id_job"));
include_once("../include/auth.inc.php");
include_once("../jobs/job_accesskeys.inc.php");
include_once ("../admin/menu.php");

//list ($csc_id_orderer) =
  getSecHttpVars("1", array("csc_id_orderer"));
if ($csc_id_orderer == "" && $csc_id_orderer != '0') reportDie ("$PHP_SELF: Parameter 'csc_id_orderer' fehlt!", false);
$cs_id = getFieldValueFromId("costcenter", "csc_id", "$csc_id_orderer", "cs_id");
$csc_id_sel = $csc_id_orderer;
$von_csc_id_options = addOptionsFromTable("costcenter, costcenteraddress",
  "costcenter.csc_id", "costcenter.csc_name", "costcenter.csc_name",
  "costcenter.csc_id = costcenteraddress.csc_id AND " .
  "costcenter.cs_id = '$cs_id' AND costcenteraddress.adt_id = '4'", $csc_id_sel);
$nach_csc_id_options = addOptionsFromTable("costcenter, costcenteraddress",
  "costcenter.csc_id", "costcenter.csc_name", "costcenter.csc_name",
  "costcenter.csc_id = costcenteraddress.csc_id AND " .
  "costcenter.cs_id = '$cs_id' AND costcenteraddress.adt_id = '4'");

$_von_csc_id_options_ = $von_csc_id_options;
$_nach_csc_id_options_ = $nach_csc_id_options;
if (getParameterValue($emp_id, "MODE_LATER_JOB") == "1"):
  $EMP_MODE_LATERJOB_START = "";
  $EMP_MODE_LATERJOB_END = "";
else:
  $EMP_MODE_LATERJOB_START = "<!--";
  $EMP_MODE_LATERJOB_END = "-->";
endif;

if (MASK_CASH_PAYER_SELECT != "1"):
  $PAYER_TEXT = "Rechnungszahler";
  $COSTSPLIT_TEXT = "Kosten werden aufgeteilt";
  $COSTSPLIT_TITLE = "Kosten splitten";
else:
  $PAYER_TEXT = "Bezahler";
  $COSTSPLIT_TEXT = "Rechnungszahlung";
  $COSTSPLIT_TITLE = "Rechnung an Bezahler";
endif;

$JB_CASHPAYER_MAIL_DISABLED_START = "<!--";
$JB_CASHPAYER_MAIL_DISABLED_END = "-->";
$sqlquery = "SELECT cs.cs_jbstatusmail, cs.cs_jbstatusmail2, cs.cs_jbstatusmail3"
          . " FROM costcenter AS csc, customer AS cs"
          . " WHERE csc.csc_id = " . getParameterValue("0", "CSC_ID_PAYER_CASH", $hq_id) . " AND csc.cs_id = cs.cs_id";
$res = $db->query($sqlquery);
//$fileHandle = @fopen("../log/job_tour_" . $today['year'] . sprintf("%02d", $today['mon']) . ".log", 'a');
//@fwrite($fileHandle, "[" . date("Y-m-d H:i:s") . "] \$sqlquery = " . $sqlquery . "\n");
//@fclose($fileHandle);
if (DB::isError($res)) reportDie ("$PHP_SELF: '$sqlquery': " . $res->getMessage());
$cs_jbstatusmailstr = "";
if ($row =($phpVersion >= "8.0" ? $res->fetch_assoc() : $res->fetchRow())):
  if ($row["cs_jbstatusmail3"] == "1")
    $cs_jbstatusmailstr .= "Erf.";
  if ($row["cs_jbstatusmail2"] == "1")
    $cs_jbstatusmailstr .= ($cs_jbstatusmailstr == "" ? "" : "/") . "Abh.";
  if ($row["cs_jbstatusmail"] == "1")
    $cs_jbstatusmailstr .= ($cs_jbstatusmailstr == "" ? "" : "/") . "Erl.";
  if ($cs_jbstatusmailstr != "") {
    $cs_jbstatusmailstr = "Mail (" . $cs_jbstatusmailstr . ")";
    $JB_CASHPAYER_MAIL_DISABLED_START = "";
    $JB_CASHPAYER_MAIL_DISABLED_END = "";
  }
endif;
$res->free();

$CUSTOMER_DISABLED_START = "";
$CUSTOMER_DISABLED_END = "";

$PHOTO_DISABLED_START = "";
$PHOTO_DISABLED_END = "";
if (MASK_TR_PHOTO != "1"):
  $PHOTO_DISABLED_START = "<!--";
  $PHOTO_DISABLED_END = "-->";
endif;

$MASK_CUSTOMER_PRICEQUERY_DISABLED_START = "";
$MASK_CUSTOMER_PRICEQUERY_DISABLED_END = "";
if (MASK_CUSTOMER_SHOW_PRICEQUERY != "1"):
  $MASK_CUSTOMER_PRICEQUERY_DISABLED_START = "<!--";
  $MASK_CUSTOMER_PRICEQUERY_DISABLED_END = "-->";
endif;

$_TOURNOVALSIZE_ = (MASK_MAXTOUR > 10 ? 2 : 1);

// *** TABINDICES ***
$_origin1_tabindex_ = "";
$_origin2_tabindex_ = "";
$_origin3_tabindex_ = "";
$_origin4_tabindex_ = "";
$_origin5_tabindex_ = "";
$_origin6_tabindex_ = "";
$_origin7_tabindex_ = "";
$ti = 0;
$_von_cs_comp_tabindex_ = ++$ti;
$_von_tr_person_tabindex_ = ++$ti;
$_von_ad_street_tabindex_ = ++$ti;
$_von_tr_hsno_tabindex_ = ++$ti;
$_von_ad_country_tabindex_ = "";
$_von_ad_zipcode_tabindex_ = ++$ti;
$_von_ad_city_tabindex_ = ++$ti;
$_von_tr_remark_tabindex_ = ++$ti;
$_nach_cs_comp_tabindex_ = ++$ti;
$_nach_tr_person_tabindex_ = ++$ti;
$_nach_ad_street_tabindex_ = ++$ti;
$_nach_tr_hsno_tabindex_ = ++$ti;
$_nach_ad_country_tabindex_ = "";
$_nach_ad_zipcode_tabindex_ = ++$ti;
$_nach_ad_city_tabindex_ = ++$ti;
$_nach_tr_remark_tabindex_ = ++$ti;
$_von_tr_commission_no_tabindex_ = ++$ti;
$_von_tr_commission_no_accesskey_ = _VON_TR_COMMISSION_NO_ACCESSKEY_;
$_nach_tr_commission_no_tabindex_ = ++$ti;
$_nach_tr_commission_no_accesskey_ = _NACH_TR_COMMISSION_NO_ACCESSKEY_;
$_jb_orderer_tabindex_ = ++$ti;
$_jb_commission_no_tabindex_ = ++$ti;
$_nach_tr_tracking_tabindex_ = ++$ti;
$_von_tr_tracking_tabindex_ = ++$ti;
$_tr_photo_von_tabindex_ = ++$ti;
$_tr_ware_from_von_tabindex_ = ++$ti;
$_tr_ware_to_von_tabindex_ = ++$ti;
$_tr_ware_from_nach_tabindex_ = ++$ti;
$_tr_ware_to_nach_tabindex_ = ++$ti;
$_tr_photo_nach_tabindex_ = ++$ti;
$_payer_from_tabindex_ = ++$ti;
$_payer_to_tabindex_ = ++$ti;
$_vonFirmaButton_tabindex_ = ++$ti;
$_vonFirmaButton_accesskey_ = _VONFIRMABUTTON_ACCESSKEY_;
$_vonAdressButton_tabindex_ = ++$ti;
$_vonAdressButton_accesskey_ = _VONADRESSBUTTON_ACCESSKEY_;
$_von_tr_mediationarea_id_Button_tabindex_ = "";
$_von_tr_remark_Button_tabindex_ = ++$ti;
$_von_tr_remark_Button_accesskey_ = _VON_TR_REMARK_BUTTON_ACCESSKEY_;
$_hide_von_tr_remark_tabindex_ = ++$ti;
$_nachFirmaButton_tabindex_ = ++$ti;
$_nachFirmaButton_accesskey_ = _NACHFIRMABUTTON_ACCESSKEY_;
$_nachAdressButton_tabindex_ = ++$ti;
$_nachAdressButton_accesskey_ = _NACHADRESSBUTTON_ACCESSKEY_;
$_nach_tr_mediationarea_id_Button_tabindex_ = "";
$_hide_nach_tr_remark_tabindex_ = ++$ti;
$_nach_tr_remark_Button_tabindex_ = ++$ti;
$_nach_tr_remark_Button_accesskey_ = _NACH_TR_REMARK_BUTTON_ACCESSKEY_;
$_Berichte_tabindex_ = "";
$_Dokumente_tabindex_ = "";
$_bezahlerFirmaButton_tabindex_ = ++$ti;
$_bezahlerFirmaButton_accesskey_ = _BEZAHLERFIRMABUTTON_ACCESSKEY_;
$_jb_cash_tabindex_ = ++$ti;
$_jb_cash_accesskey_ = "";
$_jb_costsplit_tabindex_ = ++$ti;
$_jb_costsplit_accesskey_ = "";
$_accept_all_addresses_tabindex_ = ++$ti;
$_accept_all_addresses_accesskey_ = _ACCEPT_ALL_ADDRESSES_ACCESSKEY_;
$_jb_cashpayer_mail_tabindex_ = ++$ti;
$_jb_offer_mail_tabindex_ = ++$ti;
$_prevButton_tabindex_ = ++$ti;
$_prevButton_accesskey_ = _PREVBUTTON_ACCESSKEY_;
$_waste1Button_tabindex_ = ++$ti;
$_waste1Button_accesskey_ = _WASTE1BUTTON_ACCESSKEY_;
$_switchButton_tabindex_ = ++$ti;
$_switchButton_accesskey_ = _SWITCHBUTTON_ACCESSKEY_;
$_waste2Button_tabindex_ = ++$ti;
$_waste2Button_accesskey_ = _WASTE2BUTTON_ACCESSKEY_;
$_nextButton_tabindex_ = ++$ti;
$_nextButton_accesskey_ = _NEXTBUTTON_ACCESSKEY_;
$_searchOldJobButton_tabindex_ = ++$ti;
//$_searchOldJobButton_accesskey_ = _SEARCHOLDJOBBUTTON_ACCESSKEY_;
$_duplicateJobButton_tabindex_ = ++$ti;
$_getLastJobButton_tabindex_ = ++$ti;
$_duplicateJobButton_accesskey_ = _DUPLICATEJOBBUTTON_ACCESSKEY_;
$_jb_freetextButton_tabindex_ = ++$ti;
$_jb_freetextButton_accesskey_ = _JB_FREETEXTBUTTON_ACCESSKEY_;
$_jb_hiddenFreetextButton_tabindex_ = ++$ti;
// *** ***

//include("..\jobs\shrink.inc.php");
//$html_code = $tpl->get();
//echo htmlShrink($html_code, true);

?>

<html>
<head>
<title>AUFTRAGSERFASSUNG - DATENEINGABE</title>
<link rel="stylesheet" type="text/css" href="../css/phoenix.css.php">
<?php include_once ("../include/js_framework.inc.php"); ?>
<style>
.cmp_remark
  { border: 0; width: 40em; height: 20em; background: rgba(0, 0, 0, 0); font-size: 9pt }
.cmp_remark_payer
  { border: 0; width: 40em; height: 20em; background: rgba(0, 0, 0, 0); font-size: 9pt }
.cmp_remark_small
  { border: 0; width: 40em; height: 10em; background: rgba(0, 0, 0, 0); font-size: 9pt }
.cmp_remark_payer_small
  { border: 0; width: 40em; height: 10em; background: rgba(0, 0, 0, 0); font-size: 9pt }
</style>
<script src="../include/lib_global.js" type="text/javascript"></script>
<script src="../include/key_events_content.js" language="JavaScript1.2" type="text/javascript"></script>
<script for="document" event="onkeydown()" language="JScript" type="text/jscript">
<!--
{
if(window.event.altKey&&event.keyCode>=49&&event.keyCode<=57){
actionMapEvent(window.event,event.keyCode);
}
}
//-->
</script>
<script type="text/javascript">
<!--
var job_tour_isLoading=true;
var cmp_remark_style="cmp_remark";
var cmp_remark_payer_style="cmp_remark_payer";
if (screen.height < 1080){
  cmp_remark_style="cmp_remark_small";
  cmp_remark_payer_style="cmp_remark_payer_small";
}
-->
</script>
<script src="../include/maps.googleapis.com_maps_api_js_places.php" async defer></script>
<script>
let autocomplete1;
let autocomplete2;
function initAutocomplete1(i) {
  if (typeof google == 'undefined') {
    if (i < 10)
      self.setTimeout('initAutocomplete1(' + (i+1) + ')', 100);
    return;
  }
  autocomplete1 = new google.maps.places.Autocomplete(
    document.getElementById('von_autocomplete'),
    {
      types: ['address'],
//      componentRestrictions: {'country': ['DE']},
      fields: ["geometry", "address_components", "types"]
    });

//    autocomplete.setFields('address_components');
  autocomplete1.addListener('place_changed', fillInAddress1);
  initAutocomplete2();
}

function initAutocomplete2() {
  autocomplete2 = new google.maps.places.Autocomplete(
    document.getElementById('nach_autocomplete'),
    {
      types: ['address'],
//      componentRestrictions: {'country': ['DE']},
      fields: ["geometry", "address_components", "types"]
    });

//    autocomplete.setFields('address_components');
  autocomplete2.addListener('place_changed', fillInAddress2);
}

// JQuery.Request (GET)
function ajaxRequestGetAsync(url, data) {
  $.ajax({
     type: "GET",
     url: url,
     data: data,
     async: true,
     cache: false,
     success: function(msg){eval(msg);}
  });
}

function fillInAddress1() {
  fillInAddress(1);
}

function fillInAddress2() {
  fillInAddress(2);
}

function fillInAddress(side) {
  // Get the place details from the autocomplete object.
  let place;
  if (side == 1)
    place = autocomplete1.getPlace();
  if (side == 2)
    place = autocomplete2.getPlace();
  if (!place.geometry)
    return;

//console.log(place.types);
  let accuracy = 0;
  const sufficient_types = ["intersection", "street_address", "premise", "subpremise"];
  const sufficient_types_accuracy = [7, 8, 9, 9];

  let type_index = -1;
  for (const type of place.types) {
    type_index = sufficient_types.indexOf(type);
    if (type_index > -1) {
      if (accuracy < sufficient_types_accuracy[type_index])
        accuracy = sufficient_types_accuracy[type_index];
    }
  }
//  let address1 = "";
//  let postcode = "";
  let route = "";
  let street_number = "";
  let country = "";
  let postal_code = ""
  let locality = "";
  let lat = 0;
  let lng = 0;

  if (type_index > -1) {
//console.log(place.geometry.location.lat());
//console.log(place.geometry.location.lng());
    lat = place.geometry.location.lat();
    lng = place.geometry.location.lng();
  }

  // Get each component of the address from the place details,
  // and then fill-in the corresponding field on the form.
  // place.address_components are google.maps.GeocoderAddressComponent objects
  // which are documented at http://goo.gle/3l5i5Mr
  for (const component of place.address_components) {
    let postal_code_dirty = false;
    // @ts-ignore remove once typings fixed
//console.log(component);
    for (const componentType of component.types) {
//console.log(componentType);
      switch (componentType) {
        case "route": {
          route = component.short_name;
          if (side == 1)
            document.getElementsByName('von_ad_street')[0].value = component.short_name;
          if (side == 2)
            document.getElementsByName('nach_ad_street')[0].value = component.short_name;
          break;
        }

        case "street_number": {
          street_number = component.short_name;
          if (side == 1)
            document.getElementsByName('von_tr_hsno')[0].value = component.short_name;
          if (side == 2)
            document.getElementsByName('nach_tr_hsno')[0].value = component.short_name;
          break;
        }

        case "country": {
          country = component.short_name;
          if (side == 1)
            document.getElementsByName('von_ad_country')[0].value = component.short_name;
          if (side == 2)
            document.getElementsByName('nach_ad_country')[0].value = component.short_name;
          break;
        }
  
        case "postal_code": {
          if (!postal_code_dirty) {
            postal_code = component.short_name;
            if (side == 1)
              document.getElementsByName('von_ad_zipcode')[0].value = component.short_name;
            if (side == 2)
              document.getElementsByName('nach_ad_zipcode')[0].value = component.short_name;
          }
          break;
        }
        
        // Bei unvollständigen Eingaben (Straße ohne Hausnummer) wird manchmal nur die ersten beiden Ziffern der PLZ zurückgegeben, erkennbar an "postal_code_prefix"
        case "postal_code_prefix": {
          if (country == "DE") {
            postal_code_dirty = true;
            postal_code = "";
            if (side == 1)
              document.getElementsByName('von_ad_zipcode')[0].value = "";
            if (side == 2)
              document.getElementsByName('nach_ad_zipcode')[0].value = "";
          }
          break;
        }
          
        case "locality": {
          locality = component.long_name;
          if (side == 1)
            document.getElementsByName('von_ad_city')[0].value = component.short_name;
          if (side == 2)
            document.getElementsByName('nach_ad_city')[0].value = component.short_name;
          break;
        }
      }
    }
  }

  // After filling the form with address components from the Autocomplete
  // prediction, set cursor focus on the second address line to encourage
  // entry of subpremise information such as apartment, unit, or floor number.
  parent.frames[2].saveFormFields();
  if (side == 1)
    document.getElementsByName('von_tr_remark')[0].focus();
  if (side == 2)
    document.getElementsByName('nach_tr_remark')[0].focus();

  if (accuracy > 6) {
    ajaxRequestGetAsync('../include/ajaxReqKmPrice.php', "mode=coords&a=" + route + ";" + street_number + ";" + postal_code + ";" + locality + ";" + country + ";" + lat + ";" + lng + ";" + accuracy);
  }
}
self.setTimeout('initAutocomplete1(0)', 100);
</script><noscript>
<center>
<b><br>JavaScript ist nicht verf&uuml;gbar. Bitte aktivieren Sie JavaScript<br><br>
in Ihrem Browser, damit diese Seite ordnungsgem&auml;&szlig; funktioniert!</b><br><br>
</center>
</noscript>
</head>
<body>
<table border=0 width=100% align=center cellspacing=0 cellpadding=0 vspace=0 hspace=0>
<form name="tourNoForm" action="dummy.htm">
<tr>
<td width=2%>
&nbsp;
</td>
<td width=7% align=center>
<img name="start_gif" src="../images/start.gif" height=25 border=0 alt="Start">
</td>
<td width=7% align=right valign=bottom>
&nbsp;
</td>
<td width=29% align=right valign=bottom colspan=2>
<input name="von_csc_name" type="text" value="" size="57" maxlength="57" class="hideSmall" readonly>
</td>
<td width=10% align=center valign=bottom>
<div class=headline2a>
Etappe&nbsp;<input name="tourNoVal" type="text" value="1"
size="<?php echo $_TOURNOVALSIZE_;?>" maxlength="<?php echo $_TOURNOVALSIZE_;?>" class="hideBiga" readonly>
</div>
</td>
<td width=29% align=left valign=bottom colspan=2>
<input name="nach_csc_name" type="text" value="" size="57" maxlength="57" class="hideSmall" readonly>
</td>
<td width=7% align=right valign=bottom>
&nbsp;
</td>
<td width=7% align=center>
<img name="goal_gif" src="../images/goal.gif" height=25 border=0 alt="Ziel">
</td>
<td width=2%>
&nbsp;
</td>
</tr>
</form>
<tr>
<form name="tourForm" action="dummy.htm">
<td>
&nbsp;
</td>
<td colspan=4 align=right>
<input type="button" name="vonFirmaButton" value="..."
class="button_enabled"
tabindex="<?php echo $_vonFirmaButton_tabindex_;?>" title="Suchen: von Firma (alt+<?php echo $_vonFirmaButton_accesskey_;?>)" accesskey="<?php echo $_vonFirmaButton_accesskey_;?>" onclick="parent.frames[2].searchCsCsc(0)">
<input name="von_cs_comp" type="text" value="" size="21" maxlength="50" class="input"
tabindex="<?php echo $_von_cs_comp_tabindex_;?>" onchange="parent.frames[2].saveFormFields()">
<input name="von_tr_person" type="text" value="" size="20" maxlength="50" class="input"
tabindex="<?php echo $_von_tr_person_tabindex_;?>" onchange="parent.frames[2].saveFormFields()">
<select name="select_von_tr_person" class="input" style="width:20px;display:none" tabindex="" onchange="parent.frames[2].set_tr_person(0)">
</select>
<input type="hidden" name="von_csc_id" value="">
</td>
<td align=center>
Firma, Person
</td>
<td colspan=2 align=left>
<input name="nach_cs_comp" type="text" value="" size="21" maxlength="50" class="input"
tabindex="<?php echo $_nach_cs_comp_tabindex_;?>" onchange="parent.frames[2].saveFormFields()">
<input name="nach_tr_person" type="text" value="" size="20" maxlength="50" class="input"
tabindex="<?php echo $_nach_tr_person_tabindex_;?>" onchange="parent.frames[2].saveFormFields()">
<select name="select_nach_tr_person" class="input" style="width:20px;display:none" tabindex="" onchange="parent.frames[2].set_tr_person(1)">
</select>
<input type="button" name="nachFirmaButton" value="..."
class="button_enabled"
tabindex="<?php echo $_nachFirmaButton_tabindex_;?>" title="Suchen: nach Firma (alt+<?php echo $_nachFirmaButton_accesskey_;?>)" accesskey="<?php echo $_nachFirmaButton_accesskey_;?>" onclick="parent.frames[2].searchCsCsc(1)">
<input type="hidden" name="nach_csc_id" value="">
</td>
<td rowspan=5 colspan=2 align=left valign=top>
Auftragseingang&nbsp;per<br>
<table border=0 align=left cellspacing=0 cellpadding=0 vspace=0 hspace=0>
<tr>
<td align=left width=50%>
<!--
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<br>
Auftragseingang&nbsp;per&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
-->
<input type="radio" name="jb_origin" value="1" tabindex="<?php echo $_origin1_tabindex_;?>"
onclick="parent.frames[2].checkOrigin()" title="Auftragseingang per Telefon"
<?php if (isset($jb_origin) && $jb_origin == "1") echo " checked"; ?>>
<b>Telefon</b><br>
</td>
<td align=left>
<input type="radio" name="jb_origin" value="5" tabindex="<?php echo $_origin5_tabindex_;?>"
onclick="parent.frames[2].checkOrigin()" title="Auftragseingang per Dauerauftrag"
<?php if (isset($jb_origin) && $jb_origin == "5") echo " checked"; ?> disabled>
<b>Dauerauftrag</b><br>
</td>
</tr>
<tr>
<td align=left>
<input type="radio" name="jb_origin" value="2" tabindex="<?php echo $_origin2_tabindex_;?>"
onclick="parent.frames[2].checkOrigin()" title="Auftragseingang per Mail"
<?php if (isset($jb_origin) && $jb_origin == "2") echo " checked"; ?>>
<b>Mail</b><br>
</td>
<td align=left>
<input type="radio" name="jb_origin" value="7" tabindex="<?php echo $_origin7_tabindex_;?>"
onclick="parent.frames[2].checkOrigin()" title="Auftragseingang per Listenbuchung"
<?php if (isset($jb_origin) && $jb_origin == "7") echo " checked"; ?>disabled>
<b>Listenbuchung</b><br>
</td>
</tr>
<tr>
<td align=left>
<input type="radio" name="jb_origin" value="3" tabindex="<?php echo $_origin3_tabindex_;?>"
onclick="parent.frames[2].checkOrigin()" title="Auftragseingang per Schnittstelle"
<?php if (isset($jb_origin) && $jb_origin == "3") echo " checked"; ?> disabled>
<b>Schnittstelle</b><br>
</td>
<td align=left>
<input type="radio" name="jb_origin" value="8" tabindex="<?php echo $_origin8_tabindex_;?>"
onclick="parent.frames[2].checkOrigin()" title="Auftragseingang per Höherversicherung"
<?php if (isset($jb_origin) && $jb_origin == "8") echo " checked"; ?> disabled>
<b>Höherversicherung</b><br>
</td>
</tr>
<tr>
<td align=left>
<input type="radio" name="jb_origin" value="4" tabindex="<?php echo $_origin4_tabindex_;?>"
onclick="parent.frames[2].checkOrigin()" title="Auftragseingang per KAE"
<?php if (isset($jb_origin) && $jb_origin == "4") echo " checked"; ?> disabled>
<b>KAE</b><br>
</td>
<td align=left>
<input type="radio" name="jb_origin" value="6" tabindex="<?php echo $_origin6_tabindex_;?>"
onclick="parent.frames[2].checkOrigin()" title="Auftragseingang sonstiges"
<?php if (isset($jb_origin) && $jb_origin == "6") echo " checked"; ?>>
<b>Sonstiges</b><br>
</td>
</tr>
<tr>
<td align=left colspan=2>
<div id="div_jb_origin_other" style="display:none">
<input name="jb_origin_other" type="text" size="20" maxlength="40"
class="inputRed" tabindex="<?php echo $_origin6_tabindex_;?>" onchange="parent.frames[2].checkOrigin()" value="<?php echo (isset($jb_origin_other) ? $jb_origin_other : "");?>">
</div>
<br>
Besteller:&nbsp;&nbsp;&nbsp;&nbsp;
<input name="jb_orderer" type="text" size="20" maxlength="50" class="input" tabindex="<?php echo $_jb_orderer_tabindex_;?>" onchange="parent.frames[2].check_jb_orderer()">
<br>
Rg.-Ko.-Nr.:
<input name="jb_commission_no" type="text" size="20" maxlength="50" class="input" tabindex="<?php echo $_jb_commission_no_tabindex_;?>" title="Erscheint als Kommission auf der Rechnung"  onchange="parent.frames[2].check_jb_commission_no()">
<div id="div_jb_offer_mail" style="display: none; margin:0; padding:0; border: 0px solid green;">
<br>
Angebotsmail senden an:
<input name="jb_offer_mail" type="text" size="27" class="input" tabindex="<?php echo $_jb_offer_mail_tabindex_;?>" onchange="parent.frames[2].saveEmailAddressOffer()">
</div>
</td>
</tr>
</table>
</td>
<td>
&nbsp;
</td>
</tr>
<tr>
<td>
&nbsp;
</td>
<td colspan=4 align=right>
<input type="button" name="vonAdressButton" value="..."
class="button_enabled"
tabindex="<?php echo $_vonAdressButton_tabindex_;?>" title="Suchen: von Adresse (alt+<?php echo $_vonAdressButton_accesskey_;?>)" accesskey="<?php echo $_vonAdressButton_accesskey_;?>" onclick="parent.frames[2].searchAddress(0);">
<input name="von_ad_street" id="von_autocomplete" type="text" value="" size="38" maxlength="50" class="input"
tabindex="<?php echo $_von_ad_street_tabindex_;?>" onchange="parent.frames[2].saveFormFields()">
<input name="von_tr_hsno" type="text" value="" size="3" maxlength="10" class="input"
tabindex="<?php echo $_von_tr_hsno_tabindex_;?>" onchange="parent.frames[2].saveFormFields()">
</td>
<td align=center>
Stra&szlig;e, Nr.
</td>
<td colspan=2 align=left>
<input name="nach_ad_street" id="nach_autocomplete" type="text" value="" size="38" maxlength="50" class="input"
tabindex="<?php echo $_nach_ad_street_tabindex_;?>" onchange="parent.frames[2].saveFormFields()">
<input name="nach_tr_hsno" type="text" value="" size="3" maxlength="10" class="input"
tabindex="<?php echo $_nach_tr_hsno_tabindex_;?>" onchange="parent.frames[2].saveFormFields()">
<input type="button" name="nachAdressButton" value="..."
class="button_enabled"
tabindex="<?php echo $_nachAdressButton_tabindex_;?>" title="Suchen: nach Adresse (alt+<?php echo $_nachAdressButton_accesskey_;?>)" accesskey="<?php echo $_nachAdressButton_accesskey_;?>" onclick="parent.frames[2].searchAddress(1);">
</td>
<td>
&nbsp;
</td>
</tr>
<tr>
<td>
&nbsp;
</td>
<td colspan=4 align=right>
<?php echo $CUSTOMER_DISABLED_START;?>
<input type="button" name="von_tr_mediationarea_id_Button" value="Rg.-Plz"
class="button_enabled"
tabindex="<?php echo $_von_tr_mediationarea_id_Button_tabindex_;?>" title="Abrechnungs-PLZ eingeben" onclick="parent.frames[2].mk_tr_mediationarea_id(0)">
<input type="hidden" name="von_tr_mediationarea_id">
<?php echo $CUSTOMER_DISABLED_END;?>
<select class="input" name="von_ad_country" tabindex="<?php echo $_von_ad_country_tabindex_;?>"
onchange="parent.frames[2].saveFormFields()">
<?php echo addOptionsFromTable("phoenix_special.country","cou_iso_2","cou_iso_2","cou_iso_2","cou_continent = '1'","DE"); ?>
</select>
<input name="von_ad_zipcode" type="text" value="" size="7" maxlength="10" class="input"
tabindex="<?php echo $_von_ad_zipcode_tabindex_;?>" onchange="parent.frames[2].saveFormFields()">
<input name="von_ad_city" type="text" value="" size="26" maxlength="50" class="input"
tabindex="<?php echo $_von_ad_city_tabindex_;?>" onchange="parent.frames[2].saveFormFields()">
</td>
<td align=center>
PLZ, Ort
</td>
<td colspan=2 align=left>
<select class="input" name="nach_ad_country" tabindex="<?php echo $_nach_ad_country_tabindex_;?>"
onchange="parent.frames[2].saveFormFields()">
<?php echo addOptionsFromTable("phoenix_special.country","cou_iso_2","cou_iso_2","cou_iso_2","cou_continent = '1'","DE"); ?>
</select>
<input name="nach_ad_zipcode" type="text" value="" size="7" maxlength="10" class="input"
tabindex="<?php echo $_nach_ad_zipcode_tabindex_;?>" onchange="parent.frames[2].saveFormFields()">
<input name="nach_ad_city" type="text" value="" size="26" maxlength="50" class="input"
tabindex="<?php echo $_nach_ad_city_tabindex_;?>" onchange="parent.frames[2].saveFormFields()">
<?php echo $CUSTOMER_DISABLED_START;?>
<input type="button" name="nach_tr_mediationarea_id_Button" value="Rg.-Plz"
class="button_enabled"
tabindex="<?php echo $_nach_tr_mediationarea_id_Button_tabindex_;?>" title="Abrechnungs-PLZ eingeben" onclick="parent.frames[2].mk_tr_mediationarea_id(1)">
<input type="hidden" name="nach_tr_mediationarea_id">
<?php echo $CUSTOMER_DISABLED_END;?>
</td>
<td>
&nbsp;
</td>
</tr>
<tr>
<td colspan=5 align=right>
<input type="button" name="_von_tr_remark_Button" value="..."
class="button_enabled"
tabindex="<?php echo $_von_tr_remark_Button_tabindex_;?>" title="Bemerkung (alt+<?php echo $_von_tr_remark_Button_accesskey_;?>)" accesskey="<?php echo $_von_tr_remark_Button_accesskey_;?>" onclick="parent.frames[2].mk_tr_remark_Text(0)">
<input type="checkbox" name="hide_von_tr_remark" value="1"
tabindex="<?php echo $_hide_von_tr_remark_tabindex_;?>" onclick="parent.frames[2].saveFormFields()">
<textarea name="von_tr_remark" class="input" tabindex="<?php echo $_von_tr_remark_tabindex_;?>" cols="43" rows="3"
onchange="parent.frames[2].saveFormFields()"></textarea>
</td>
<td align=center>
Bemerkung
</td>
<td colspan=2 align=left>
<textarea name="nach_tr_remark" class="input" tabindex="<?php echo $_nach_tr_remark_tabindex_;?>"
cols="43" rows="3" onchange="parent.frames[2].saveFormFields()"></textarea>
<input type="checkbox" name="hide_nach_tr_remark" value="1"
tabindex="<?php echo $_hide_nach_tr_remark_tabindex_;?>" onclick="parent.frames[2].saveFormFields()">
<input type="button" name="_nach_tr_remark_Button" value="..."
class="button_enabled"
tabindex="<?php echo $_nach_tr_remark_Button_tabindex_;?>" title="Bemerkung (alt+<?php echo $_nach_tr_remark_Button_accesskey_;?>)" accesskey="<?php echo $_nach_tr_remark_Button_accesskey_;?>" onclick="parent.frames[2].mk_tr_remark_Text(1)">
</td>
<td>
&nbsp;
</td>
</tr>
<tr>
<td colspan=5 align=right>
<input name="von_tr_commission_no" type="text" size="30" maxlength="30" class="input" tabindex="<?php echo $_von_tr_commission_no_tabindex_;?>" title="Erscheint im Rechnungstext" onchange="parent.frames[2].saveFormFields()">
</td>
<td align=center>
Ko.-Nr.
</td>
<td colspan=2 align=left>
<input name="nach_tr_commission_no" type="text" size="30" maxlength="30" class="input" tabindex="<?php echo $_nach_tr_commission_no_tabindex_;?>" title="Erscheint im Rechnungstext" onchange="parent.frames[2].saveFormFields()">
</td>
<td>
&nbsp;
</td>
</tr>
<tr id="tr_tracking_row" style="visibility:collapse">
<td colspan=5 align=right id="tr_tracking_von" style="visibility:collapse">
<input name="von_tr_tracking" type="text" size="43" maxlength="60" class="input" tabindex="<?php echo $_von_tr_tracking_tabindex_;?>" onchange="parent.frames[2].saveFormFields()">
</td>
<td align=center>
Tracking-eMail
</td>
<td colspan=5 align=left id="tr_tracking_nach" style="visibility:collapse">
<input name="nach_tr_tracking" type="text" size="43" maxlength="60" class="input" tabindex="<?php echo $_nach_tr_tracking_tabindex_;?>" onchange="parent.frames[2].saveFormFields()">
</td>
</tr>
<tr>
<td>
<span class="verysmall">&nbsp;</span>
</td>
<td align=center>
<button name="prevButton" type="button" value="zur&uuml;ck" style="height: 20px;"
class="button_disabled"
tabindex="<?php echo $_prevButton_tabindex_;?>" onClick="parent.frames[2].prevTour()" title="zur&uuml;ck (alt+<?php echo $_prevButton_accesskey_;?>)" accesskey="<?php echo $_prevButton_accesskey_;?>" disabled>
<img name="prev_gif" src="../images/prev_dis.gif" height="10" width="26" border="0">
</button>
</td>
<td align=center>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<button name="waste1Button" type="button" value="l&ouml;schen"  style="height: 20px;"
class="button_enabled"
tabindex="<?php echo $_waste1Button_tabindex_;?>" onClick="parent.frames[2].delTour(0)" title="links l&ouml;schen (alt+<?php echo $_waste1Button_accesskey_;?>)" accesskey="<?php echo $_waste1Button_accesskey_;?>">
<img name="waste_left_gif" src="../images/waste.png" border=0 height=16 width=16>
</button>
&nbsp;&nbsp;
</td>
<td align=right colspan=2>
<?php echo $PHOTO_DISABLED_START;?>
<input type="checkbox" name="tr_photo_von" value="1"
tabindex="<?php echo $_tr_photo_von_tabindex_;?>" onclick="parent.frames[2].saveFormFields()">&nbsp;<span id="span_photo_von">Pflichtfoto</span>&nbsp;&nbsp;
<?php echo $PHOTO_DISABLED_END;?>
<input type="checkbox" name="tr_ware_from_von" value="1"
tabindex="<?php echo $_tr_ware_from_von_tabindex_;?>" onclick="parent.frames[2].saveFormFields()">An&nbsp;
<input type="checkbox" name="tr_ware_to_von" value="1"
tabindex="<?php echo $_tr_ware_to_von_tabindex_;?>" onclick="parent.frames[2].saveFormFields()">Ab
</td>
<td align=center>
<span class="verysmall"><br></span>
<button name="switchButton" type="button" value="vertauschen" style="height: 20px;"
class="button_enabled"
tabindex="<?php echo $_switchButton_tabindex_;?>" onClick="parent.frames[2].switchJobList()" title="vertauschen (alt+<?php echo $_switchButton_accesskey_;?>)" accesskey="<?php echo $_switchButton_accesskey_;?>">
<img name="switch_gif" src="../images/switch.gif" height="10" width="26" border="0">
</button>
</td>
<td align=left colspan=2>
<input type="checkbox" name="tr_ware_from_nach" value="1"
tabindex="<?php echo $_tr_ware_from_nach_tabindex_;?>" onclick="parent.frames[2].saveFormFields()">An
<input type="checkbox" name="tr_ware_to_nach" value="1"
tabindex="<?php echo $_tr_ware_to_nach_tabindex_;?>" onclick="parent.frames[2].saveFormFields()">Ab
&nbsp;&nbsp;
<?php echo $PHOTO_DISABLED_START;?>
&nbsp;<input type="checkbox" name="tr_photo_nach" value="1"
tabindex="<?php echo $_tr_photo_nach_tabindex_;?>" onclick="parent.frames[2].saveFormFields()">&nbsp;<span id="span_photo_nach">Pflichtfoto</span>
<?php echo $PHOTO_DISABLED_END;?>
</td>
<td align=center>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<button name="waste2Button" type="button" value="l&ouml;schen" style="height: 20px;"
class="button_enabled"
tabindex="<?php echo $_waste2Button_tabindex_;?>" onClick="parent.frames[2].delTour(1)" title="rechts l&ouml;schen (alt+<?php echo $_waste2Button_accesskey_;?>)" accesskey="<?php echo $_waste2Button_accesskey_;?>">
<img name="waste_right_gif" src="../images/waste.png" border=0 height=16 width=16>
</button>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td align=center>
<button name="nextButton" type="button" value="vor" style="height: 20px;"
class="button_enabled"
tabindex="<?php echo $_nextButton_tabindex_;?>" onClick="parent.frames[2].nextTour()" title="vor (alt+<?php echo $_nextButton_accesskey_;?>)" accesskey="<?php echo $_nextButton_accesskey_;?>">
<img name="next_gif" src="../images/next.gif" height=10 width=26 border=0>
</button>
</td>
<td>
<span class="verysmall">&nbsp;</span>
</td>
</tr>
<tr>
<td>
&nbsp;
</td>
<td colspan=9>
&nbsp;
</td>
<td>
&nbsp;
</td>
</tr>
<tr>
<td height=10>
&nbsp;
</td>
<td align=left valign=top colspan=3>
<table border=0 width=100% align=center cellspacing=0 cellpadding=0 vspace=0 hspace=0>
<tr>
<td height=40>
<input type="checkbox" name="accept_all_addresses" value="1" tabindex="<?php echo $_accept_all_addresses_tabindex_;?>"
onclick="parent.frames[2].checkAccept_all_addresses()" title="Adressen&nbsp;ungepr&uuml;ft&nbsp;&uuml;bernehmen (alt+<?php echo $_accept_all_addresses_accesskey_;?>)"
accesskey="<?php echo $_accept_all_addresses_accesskey_;?>">&nbsp;
Adressen&nbsp;ungepr&uuml;ft&nbsp;&uuml;bernehmen
</td>
<td align=right>
<div id="div_jb_cashpayer_mail" style="display: none; margin:0; padding:0; border: 0px solid green;">
<?php echo $JB_CASHPAYER_MAIL_DISABLED_START;?>
<?php echo $cs_jbstatusmailstr;?>&nbsp;an:&nbsp;
<input name="jb_cashpayer_mail" type="text" size="27" class="input" tabindex="<?php echo $_jb_cashpayer_mail_tabindex_;?>" onchange="parent.frames[2].saveEmailAddress()">
<?php echo $JB_CASHPAYER_MAIL_DISABLED_END;?>
</div>
</td>
</tr>
<tr>
<td colspan=2>
<input type="button" name="searchOldJobButton" value="Suche Job(s)"
class="button_enabled"
tabindex="<?php echo $_searchOldJobButton_tabindex_;?>" title="Suchen: nach Jobs" onclick="parent.frames[2].searchJbList()">
&nbsp;
<input type="button" name="duplicateJobButton" value="Kopieren"
class="button_disabled"
tabindex="<?php echo $_duplicateJobButton_tabindex_;?>" title="Auftrag kopieren (alt+<?php echo $_duplicateJobButton_accesskey_;?>)" accesskey="<?php echo $_duplicateJobButton_accesskey_;?>" onclick="parent.frames[2].duplicateJob()" disabled>
<?php echo $EMP_MODE_LATERJOB_START;?>
&nbsp;
<input type="button" name="getLastJobButton" value="Letzter Auftrag"
class="button_enabled"
tabindex="<?php echo $_duplicateJobButton_tabindex_;?>" title="Letzten Auftrag kopieren" onclick="parent.frames[2].getLastJob()">
<?php echo $EMP_MODE_LATERJOB_END;?>
<div id="div_optimize" style="float:right;display:none">
<input type="button" name="OptimizeButton" value="Optimieren"
class="button_enabled"
 title="Optimieren" accesskey="" onclick="javascript:parent.frames[2].openDistanceprice('optimize');">
<input type="checkbox" name="dont_optimize_last" value="1" tabindex="" title="Endstation bleibt bei der Optimierung bestehen" checked
accesskey="<?php echo $_accept_all_addresses_accesskey_;?>">&nbsp;au&szlig;er Endstation
</div>
</td>
</tr>
</table>
</td>
<td colspan=3 valign=top>
<table border=0 width=100% align=center cellspacing=0 cellpadding=0 vspace=0 hspace=0>
<tr>
<td align=right width=35%>
<?php echo $CUSTOMER_DISABLED_START;?>
<input type="radio" name="payer_from" value="von" class="input"
tabindex="<?php echo $_payer_from_tabindex_;?>" onclick="parent.frames[2].checkPayer(0)">
<?php echo $CUSTOMER_DISABLED_END;?>
</td>
<td align=center width=30%>
<?php echo $CUSTOMER_DISABLED_START;?>
<?php echo $PAYER_TEXT;?>
<?php echo $CUSTOMER_DISABLED_END;?>
</td>
<td align=left width=35%>
<?php echo $CUSTOMER_DISABLED_START;?>
<input type="radio" name="payer_to" value="nach" class="input"
tabindex="<?php echo $_payer_to_tabindex_;?>" onclick="parent.frames[2].checkPayer(1)">
<?php echo $CUSTOMER_DISABLED_END;?>
</td>
</tr>
<tr>
<td colspan=3 align=center><br>
<?php echo $CUSTOMER_DISABLED_START;?>
<input type="radio" name="jb_cash" value="1"
tabindex="<?php echo $_jb_cash_tabindex_;?>" title="Barzahlung (alt+<?php echo $_jb_cash_accesskey_;?>)" accesskey="<?php echo $_jb_cash_accesskey_;?>" onclick="parent.frames[2].checkCash(true)">
Barzahlung
<input type="radio" name="jb_costsplit" value="1"
tabindex="<?php echo $_jb_costsplit_tabindex_;?>" title="<?php echo $COSTSPLIT_TITLE;?> (alt+<?php echo $_jb_costsplit_accesskey_;?>)" accesskey="<?php echo $_jb_costsplit_accesskey_;?>" onclick="parent.frames[2].checkCostsplit(true)">
<?php echo $COSTSPLIT_TEXT;?>&nbsp;
<?php echo $CUSTOMER_DISABLED_END;?>
<input type="button" name="jb_freetextButton" value="Text"
class="button_enabled"
tabindex="<?php echo $_jb_freetextButton_tabindex_;?>" title="Rechnungstext (alt+<?php echo $_jb_freetextButton_accesskey_;?>)" accesskey="<?php echo $_jb_freetextButton_accesskey_;?>" onclick="parent.frames[2].mkRechnungsText('normal')">
&nbsp;&nbsp;&nbsp;
<div id="div_jb_hiddenFreetextButton" style="display:none">
<input type="button" name="jb_hiddenFreetextButton" value="Text nur Rg"
class="button_enabled"
tabindex="<?php echo $_jb_hiddenFreetextButton_tabindex_;?>" title="Rechnungstext nur für den Rechnungsempfänger" onclick="parent.frames[2].mkRechnungsText('hidden')">
&nbsp;&nbsp;&nbsp;
</div>
<?php echo $MASK_CUSTOMER_PRICEQUERY_DISABLED_START;?>
<input type="button" name="jb_priceQueryButton" value="Preisanfrage"
class="button_enabled"
tabindex="" title="Rechnungstext (alt+)" accesskey="" onclick="parent.frames[2].mkPriceQuery()">
&nbsp;&nbsp;&nbsp;
<?php echo $MASK_CUSTOMER_PRICEQUERY_DISABLED_END;?>
<?php echo $CUSTOMER_DISABLED_START;?>
<input type="button" name="jb_dispoInfoButton" value="Dispo Info"
class="button_enabled"
tabindex="" title="Dispo Info" accesskey="" onclick="parent.frames[2].mkDispoInfo()">
&nbsp;&nbsp;&nbsp;
<?php echo $CUSTOMER_DISABLED_END;?>
</td>
</tr>
</table>
</td>
<td align=left valign=top colspan=3>
<table border = 1 align=center cellspacing=0 cellpadding=0 vspace=0 hspace=0>
<tr><td valign=center>
<table border=0 width=100% align=center cellspacing=0 cellpadding=0 vspace=0 hspace=0>
<tr><td valign=center align=left>
&nbsp;Standardpreis:
</td><td valign=center align=right>
&nbsp;<input name="currentPrice" type="text" value="" size="23" maxlength="23" class="hideRed" readonly>
</td></tr>
<?php echo (MASK_CR_PRICE_MODE == "1" ? "" : "<!--");?>
<tr><td valign=center align=left>
&nbsp;Standard-Frachtverg.:
</td><td valign=center align=right>
&nbsp;<input name="currentCrPrice" type="text" value="" size="23" maxlength="23" class="hideRed" readonly>
</td></tr>
<?php echo (MASK_CR_PRICE_MODE == "1" ? "" : "-->");?>
<tr><td valign=top align=left>
&nbsp;<i><a href="javascript:parent.frames[2].openDistanceprice();">Kilometerpreis:</a></i><br>
</td><td valign=center align=left>
<div id="div_distanceprice"></div>
</td></tr>
<tr id="tr_zoneprice" style="visibility:collapse"><td valign=top align=left>
&nbsp;<i><a href="javascript:parent.frames[2].openDistanceprice('zone');">PZM-Preis:</a></i><br>
</td><td valign=center align=left>
<div id="div_zoneprice"></div>
</td></tr>
</table>
</td>
</tr>
<tr><td>
<table border=0 width=100% align=center cellspacing=0 cellpadding=0 vspace=0 hspace=0>
<tr><td valign=center align=left>
&nbsp;Rechnung an:<br>
<div id="maskDisplayBerichteButton" name="maskDisplayBerichteButton" style="float:left">
<input type="button" name="BerichteButton" value="[B]"
class="button_enabled"
tabindex="<?php echo $_Berichte_tabindex_;?>" title="Berichte" accesskey="" onclick="parent.frames[2].getReports()">
</div>
<div id="maskDisplayDokumenteButton" name="maskDisplayDokumenteButton" style="float:left">
<input type="button" name="DokumenteButton" value="[D]"
class="button_enabled"
tabindex="<?php echo $_Dokumente_tabindex_;?>" title="Dokumente" accesskey="" onclick="parent.frames[2].getDocuments()">
</div>
<input name="nameOfPayer" type="text" value="" size="25" maxlength="25" class="hideRed" readonly>
<?php echo $CUSTOMER_DISABLED_START;?>
<input type="button" name="bezahlerFirmaButton" value="..."
class="button_enabled"
tabindex="<?php echo $_bezahlerFirmaButton_tabindex_;?>" title="Suchen: Drittzahler (alt+<?php echo $_bezahlerFirmaButton_accesskey_;?>)" accesskey="<?php echo $_bezahlerFirmaButton_accesskey_;?>" onclick="parent.frames[2].searchCsCsc(2)">
<?php echo $CUSTOMER_DISABLED_END;?>
</td></tr>
<tr><td valign=bottom align=left>
&nbsp;Rechnungs-Email:
<img name="info_svg" src="../images/Info_i_yellow.svg" height=12 border=0 alt="info" title="Gemäß Wachstumschancengesetz vom 27.3.2024 (BGBl 2024 I Nr. 108) sind wir zum digitalen Rechnungsversand im B2B - Bereich verpflichtet.">
<br>
<input name="invmailOfPayer" type="text" value="" size="25" maxlength="200" class="hideRed" onchange="parent.frames[2].saveInvmail()" readonly>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td height=10>
&nbsp;
</td>
</form>
</tr>
<tr>
<td>
&nbsp;
</td>
<td colspan=9>
<table border=0 width=100% align=center cellspacing=0 cellpadding=0 vspace=0 hspace=0>
<td align=center valign=top>
<div id="von_cmp_remark_div" style="width: 50em; border-style:none;">&nbsp;</div>
</td>
<td align=center valign=top>
<div id="dritt_cmp_remark_div" style="width: 50em; border-style:none;">&nbsp;</div>
</td>
<td align=center valign=top>
<div id="nach_cmp_remark_div" style="width: 50em; border-style:none;">&nbsp;</div>
</td>
</table>
</td>
&nbsp;
<td>
</td>
</tr>
</table>
</body>
</html>
<script type="text/javascript">
<!--
<?php
    echo "document.getElementById('tr_zoneprice').style.visibility = 'visible';\n";
?>
job_tour_isLoading=false;
-->
</script>
