// Copyright 2002 SRDEV // Version Francaise // //static var isBasketLoaded; // Ligne 430 // Kunde.shipuid = 1; pour TVA 19.6 5 pour tva 5.5 - voir ligne 37 pour les taux if (parent.rightFrame.basket.nbrart.value=="") { isBasketLoaded = false; var items = new Array(); } //alert( parent.rightFrame.basket.nbrart.value) ; if (parent.rightFrame.basket.nbrart.value.charAt(0)=="A") { isBasketLoaded = false; var items = new Array(); } var SSL = false; var backToShopURL = new String("accueil.php"); var nrOfItems = 0; var versand = 0; var nachnahme = 0; var orderitems = new String(""); var orderpaymethod = new String(""); var Kunde = new customer('','','','','','','','','','','','','',0,'',0,'','','','','',''); var Bestellung = new order('','','','','','','','',''); var orderWindow; var shipuid_inland = new Array(); var shipuid_ausland = new Array(); var vatitems = new Array(); //vatitems[vatitems.length] = new vat(0,'','','aucune','0',0); vatitems[vatitems.length] = new vat(1,'','','19.6','19.6' ,0); vatitems[vatitems.length] = new vat(5,'','','5.5','5.5' ,0); function printEMail(nom, mailfrom) { var s = new String(""); var msg = new String(""); //var mailfrom = new String(""); var Now = new Date(); var DateStr = Now.getDate() + '.'; var year = Now.getYear(); if (year < 2000) year += 1900; if ((Now.getMonth()+1) < 10) DateStr += '0' + (Now.getMonth()+1) + '.' + year else DateStr += (Now.getMonth()+1) + '.' + year; msg = printMessage(DateStr); mailfrom='commande@amplitude40.com'; nomurl='http://www.amplitude40.com/'; //site_cgi=''; ibs_site='1999888'; ibs_rang='99'; boundary=1228485258; if (Kunde.paymethod == "Scheck") { s += '
\n'; s += '\n'; s += '\n'; s += '\n'; s += '\n'; s += '\n'; s += '\n'; s += '\n'; s += ''; s += '

\n'; } else if (Kunde.paymethod == "Frafinance") { s += '
\n'; s += '\n'; s += '\n'; s += '\n'; s += '\n'; //s += '\n'; s += '\n'; s += '

\n'; } else if (Kunde.paymethod == "crembours") { s += '
\n'; s += '\n'; s += '\n'; s += '\n'; s += '\n'; s += '\n'; s += '\n'; s += '

\n'; } else if (Kunde.paymethod == "virement") { s += '
\n'; s += '\n'; s += '\n'; s += '\n'; s += '\n'; s += '\n'; s += '\n'; s += '

\n'; } else if (Kunde.paymethod == "ps") { s += '
\n'; //s += '\n'; s += '\n'; s += '\n'; s += '\n'; s += '\n'; s += '\n'; //s += '\n'; s += '\n'; s += '\n'; s += '\n'; s += '\n'; s += '\n'; s += '\n'; s += '\n'; s += '\n'; s += '
\n'; } else { s += '
\n'; s += '\n'; s += ' \n'; s += '\n'; s += '\n'; s += '\n'; s += '\n'; s += '\n'; //s += '\n'; s += '\n'; //s += '\n'; s += '\n'; s += '\n'; s += '\n'; s += '\n'; s += '
\n'; } //if (Kunde.vorname != "") //{ parent.bas.location="service/gestion/enreg_php.php?boundary=" + boundary + "&enregphp1=" + Bestellung.items + "&enregphp2=" + Bestellung.delivery + "&enregphp3=" + Bestellung.total + "&enregphp4=" + Bestellung.vat + "&client=" + Kunde.anrede + "__" + Kunde.vorname + "__" + Kunde.nachname + "__" + Kunde.zusatz + "__" + Kunde.firma + "__" + Kunde.strasse + "__" + Kunde.plz + "__" + Kunde.ort + "__" + Kunde.land + "__" + Kunde.telefon + "__" + Kunde.email + "__" + Kunde.bemerkung + "&paiement=" + Kunde.paymethod //} return s; } function affichenbbasket () { // Affiche le nombre d'article à droite if ( nrOfItems<2 ) { ss="";} else { ss="s";} //rajout du pluriel //parent.rightFrame.basket.nbrart.value=items[1].price ; var subtotal = 0; var total = 0; for (var i=0; i < items.length; i++) { if (items[i].qty > 0) { subtotal = items[i].qty * items[i].price; total += subtotal; } } parent.rightFrame.basket.nbrart.value=nrOfItems + ' article' +ss+" - "+convdec(total) + " €"; //parent.topFrame.form1.nbarticle.value=nrOfItems + ' article' +ss+" - "+convdec(total) + " €"; } function showBasket(location) { var pos = location.pathname.lastIndexOf('/'); if (pos != -1) { backToShopURL = location.pathname.substring(pos+1,location.pathname.length); } parent.mainFrame.location = "basket.php"; } function getURL(filename) { var url = new String(filename); if (document.location.protocol == 'https:') { parent.mainFrame.location = url; } else { parent.mainFrame.location = url; } } function browser() { var b = new String("unknown"); if (navigator.appName == "Netscape") b = "NN" + navigator.appVersion.charAt(0) else if (navigator.appName == "Microsoft Internet Explorer") b = "MSIE" + navigator.appVersion.charAt(0); return b; } function checknum(str) { if (str == "") { alert("Veuillez indiquer une valeur comprise entre 0 et 10.") return false } for (var i = 0; i < str.length; i++) { var ch = str.substring(i, i + 1) if (ch < "0" || ch > "9") { alert("Veuillez indiquer une valeur comprise entre 0 et 10.") return false } } return true } function StringToFloat(str) { var s = new String(""); if (str.indexOf(",") >= 0) { s = str.substring(0, str.indexOf(",")) + "." + str.substring(str.indexOf(",")+1, str.length); } else s = str; return(parseFloat(s)); } var eurokurs = StringToFloat('6,55957'); function convdec(str) { if (str == 0) { return "0,00"; } else { var s = "" + Math.round(str * 100); return(s.substring(0, s.length-2) + "," + s.substring(s.length-2, s.length)); } } function posname(name) { var j = -1; for (var i = 0; i < items.length; i++) { if (items[i].name == name) { j = i; } } return j; } function getNrOfItems() { var j = 0; for (var i = 0; i < items.length; i++) { j += items[i].qty; } return j; } function vat(vid,vstateshort,vstatelong,vname,vvalue,vtotal) { this.vid = vid; this.vstateshort = vstateshort; this.vstatelong = vstatelong; this.vname = vname; this.vvalue = StringToFloat(vvalue); this.vtotal = vtotal; } function item(artnr,name,price,qty,uid,image) { this.artnr = artnr; this.name = name; this.price = price; this.qty = qty; this.uid = uid; this.image = image; } function customer(anrede,vorname,nachname,zusatz,firma,strasse,plz,ort,land,telefon,email, sendemail,shipto,shipcost,shiptext,shipuid,paymethod, bank,bankktonr,bankblz,bankcustname,bemerkung) { this.anrede = anrede; this.vorname = vorname; this.nachname = nachname; this.zusatz = zusatz; this.firma = firma; this.strasse = strasse; this.plz = plz; this.ort = ort; this.land = land; this.telefon = telefon; this.email = email; this.sendemail = sendemail; this.shipto = shipto; this.shipcost = shipcost; this.shiptext = shiptext; this.shipuid = shipuid; this.paymethod = paymethod; this.bank = bank; this.bankktonr = bankktonr; this.bankblz = bankblz; this.bankcustname = bankcustname; this.bemerkung = bemerkung; } function order(paymethod,items,subtotal,delivery,cod,total,euro,vat,paymethodshort) { this.paymethod = paymethod; this.items = items; this.subtotal = subtotal; this.delivery = delivery; this.cod = cod; this.total = total; this.euro = euro; this.vat = vat; this.paymethodshort = paymethodshort; } function initBasket(redirect,timeout) { var danke = false; var ret = false; var mailScript = true; var msgTxt = new String("Les informations vont être transmises par e-mail grâce au service de traitement automatique mis en place par Micro Application. Ce service ne contrôle ni n\'enregistre aucune donnée contenue dans cet e-mail.\n\nCes informations ne sont ni cryptées ni sécurisées. Elles sont susceptibles d\'être interceptées par un tiers.\n\nVous pouvez poursuivre ou annuler cette opération."); var mailscripturl = 'http://microapp.internet-fr.net/mailscript/mws_mail.cgi'; if (mailScript == true) mailscripturl == '' ret = true; danke = true; if (ret == true) { var orderWin=window.open("", "OrderWindow", "scrollbars=yes,width=300,height=100"); } for (var i = 0; i < items.length; i++) { items[i].qty = 0; } nrOfItems = 0; if (danke == true) { if (redirect != '') { parent.mainFrame.location=redirect; } } return ret; } function cancelOrder() { if (document.location.protocol == 'https:') { self.location = ''; } else { for (var i = 0; i < items.length; i++) { items[i].qty = 0; } nrOfItems = 0; parent.mainFrame.location = 'accueil.php'; } affichenbbasket(); parent.rightFrame.basket.nbrart.value="Aucun article"; alert("Votre commande a été annulée !"); } function position(artnr) { var j = -1; for (var i = 0; i < items.length; i++) { //alert (i+" = "+items.length+" pour "+artnr+" "+items[i].artnr); if (items[i].artnr == artnr) { j = i; } } return j; } function addToBasket(form) { //alert(form.elements[0].value); if (form != "[object]") {alert ("Désolé mais je dois recharger la page suite à un dysfonctionnement de votre navigateur au niveau du javascript !"); parent.location = 'index.php';} var g=0; var h=g+1, i=g+2, j=g+3, k=g+4, l=g+5, m=g+6, n=g+7, o=g+8, p=g+9; var p_artnr = form.elements[g].value; var p_name = form.elements[h].value; if (form.elements[m].type == 'select-one') { p_name += ', ' + form.elements[l].value; p_name += ': ' + form.elements[m].options[form.elements[m].selectedIndex].value; } if (form.elements[o].type == 'select-one') { p_name += ', ' + form.elements[n].value; p_name += ': ' + form.elements[o].options[form.elements[o].selectedIndex].value; } var p_price = StringToFloat(form.elements[i].value); var p_uid = form.elements[j].value; var p_image = form.elements[k].value; var p_qty = parseInt(form.elements[p].value,10); // parseInt(form.elements[p].options[form.elements[p].selectedIndex].value,10); var pos = position(p_artnr); if (p_price > 0 ) { if (pos >= 0 ) { // Artikel befindet sich bereits im Warenkorb if (items[pos].name == p_name) { items[pos].qty += p_qty; // if (items[pos].qty > 10) items[pos].qty = 10; // maximale Bestellmenge pro Artikel = 10 } else { items[items.length] = new item(p_artnr,p_name,p_price,p_qty,p_uid,p_image); } } else { items[items.length] = new item(p_artnr,p_name,p_price,p_qty,p_uid,p_image); } } nrOfItems = getNrOfItems(); // affichage du nombre d'element sur page droite affichenbbasket(); // message de prise en compte peut être remplacé par une page qui s'affiche en petit et pendant 2 secondes var Valide = window.open("Valide.php", "valide", "scrollbars=no,width=400,height=270"); //alert('L\'article a été prit en compte...'); } function deleteFromBasket(artnr) { var pos = position(artnr); //alert (pos); items[pos].qty = 0; nrOfItems = getNrOfItems(); parent.mainFrame.location="basket.php"; affichenbbasket(); } function updateBasket(form) { for (var g = 0; g < form.elements.length-1; g += 2) { var h = g + 1; var p_artnr = form.elements[g].value; var p_qty = parseInt(form.elements[h].value,10); var pos = position(p_artnr); if (pos >= 0 ) { // Artikel befindet sich bereits im Warenkorb items[pos].qty = p_qty; // if (items[pos].qty > 10) items[pos].qty = 10; // maximale Bestellmenge pro Artikel = 10 } } nrOfItems = getNrOfItems(); parent.mainFrame.location="basket.php"; affichenbbasket(); } function showBasketItems() { var s = new String(""); var subtotal = 0; var total = 0; for (var i=0; i < items.length; i++) { if (items[i].qty > 0) { s += ''; s += ''; s += ''; s += ''; s += '' + convdec(items[i].price) + ''; subtotal = items[i].qty * items[i].price; total += subtotal; s += '' + convdec(subtotal) + ''; s += '\n'; s += ''; } } s += ''; s += ''; s += ''; s += ''; s += 'Total :'; s += '' + convdec(total) + ''; s += ' '; s += ''; s += ''; s += 'Si vous avez modifié les quantités, cliquez sur :'; s += ''; s += ''; s += ''; s += ' '; return s; affichenbbasket(); } function processOrderStep1(form) { for (var i=0; i < form.elements.length; i++) { Kunde.shipto = form.elements[i].value; Kunde.shipcost = form.shipping1.options[form.shipping1.selectedIndex].value; //alert (Kunde.shipcost); Kunde.shiptext = form.shipping1.options[form.shipping1.selectedIndex].text; Kunde.shipuid = 1; //shipuid_inland[form.shipping1.selectedIndex]; //alert (Kunde.shipuid); if ((form.elements[i].name == 'paymethod') && (form.elements[i].checked == true)) { Kunde.paymethod = form.elements[i].value; } } //alert (Kunde.paymethod); if (Kunde.paymethod == 'Kreditkarte') {} if (Kunde.paymethod == 'Frafinance') {} if (Kunde.paymethod == 'Bankeinzug') { Kunde.bank = form.bank.value; Kunde.bankktonr = form.bankktonr.value; Kunde.bankblz = form.bankblz.value; Kunde.bankcustname = form.bankcustname.value; } if (Kunde.paymethod == 'Nachnahme') { nachnahme = StringToFloat('30'); } else { nachnahme = 0; } parent.mainFrame.location = 'order2.php'; } function processOrderStep2(form) { for (var i=0; i < form.anrede.length; i++) { if (form.anrede[i].checked) {Kunde.anrede = form.anrede[i].value;} } Kunde.vorname = form.vorname.value; Kunde.nachname = form.nachname.value; Kunde.zusatz = form.zusatz.value; Kunde.firma = form.firma.value; Kunde.strasse = form.strasse.value; Kunde.plz = form.plz.value; Kunde.ort = form.ort.value; Kunde.land = form.land.value; Kunde.telefon = form.telefon.value; Kunde.email = form.email.value; Kunde.bemerkung = form.bemerkung.value; parent.mainFrame.location = 'order3.php'; } function setStatus(form) { var s = new String(""); for (var i=0; i < form.elements.length; i++) { if (form.elements[i].type == 'radio') { var radiofield = form.elements[i]; var radiovalue = eval('Kunde.'+radiofield.name); if (radiovalue == '' && radiofield.name == 'paymethod') { radiofield.checked = true; /* if (isNaN(form.paymethod.length)) { form.paymethod.checked = true; } else { form.paymethod[0].checked = true; } */ } else { if (radiofield.value == radiovalue) {radiofield.checked = true;} } } if (form.elements[i].type == 'select-one') { var selectfield = form.elements[i]; for (var j=0; j < selectfield.length; j++) { if (selectfield.name.indexOf('shipping') == 0) { var text = Kunde.shiptext; } else { var text = eval('Kunde.'+selectfield.name); } if (selectfield.options[j].text == text) {selectfield.options[j].selected = true;} } } if (form.elements[i].type == 'checkbox') { var checkboxfield = form.elements[i]; if (checkboxfield.value == eval('Kunde.'+checkboxfield.name)) {checkboxfield.checked = true;} } } } function showOrderItems() { Bestellung.items = ''; var s = new String(""); var versand = StringToFloat(Kunde.shipcost); var subtotal = 0; var total = 0; for (var i=0; i < vatitems.length; i++) {vatitems[i].vtotal = 0} for (var i=0; i < items.length; i++) { if (items[i].qty > 0) { s += ''; s += ''; s += '' + items[i].qty + ''; s += '(' + items[i].artnr + ') ' + items[i].name + ''; s += '' + convdec(items[i].price) + ''; subtotal = items[i].qty * items[i].price; if (items[i].uid > 0) { for (var j=0; j < vatitems.length; j++) { if (vatitems[j].vid == items[i].uid) { vatitems[j].vtotal += subtotal - (subtotal / (1+(vatitems[j].vvalue / 100))); } } } total += subtotal; s += '' + convdec(subtotal) + ''; s += ''; if (Bestellung.items != '') {Bestellung.items += '#';} Bestellung.items += items[i].qty + '__' + items[i].artnr + '__' + items[i].name + '__' + convdec(items[i].price) + '__' + convdec(subtotal); } } s += ''; s += ''; // Zwischensumme s += ''; s += 'Sous-total :'; s += ''; s += '' + convdec(total) + ''; Bestellung.subtotal = 'Sous-total__' + convdec(total); // Versandkosten if (Kunde.shipuid > 0) { for (var j=0; j < vatitems.length; j++) { if (vatitems[j].vid == Kunde.shipuid) { vatitems[j].vtotal += Kunde.shipcost - (Kunde.shipcost / (1+(vatitems[j].vvalue / 100))); } } } s += ''; s += ''; s += '+ Port et emballage :'; s += ''; s += '' + convdec(versand) + ''; Bestellung.delivery = '+ Port et emballage__' + convdec(versand); // Nachnahme // Gesamtbetrag inkl. MwSt. s += ''; s += ''; s += 'Total TTC :'; s += ''; s += '' + convdec(total+versand+nachnahme) + ''; Bestellung.total = 'Total__' + convdec(total+versand+nachnahme); IBS_TOTAL = total+versand+nachnahme; // enthaltene Mehrwertsteuer Bestellung.vat = ''; var vattotal = 0; for (var j=0; j < vatitems.length; j++) { if (vatitems[j].vid > 0) { if (vatitems[j].vtotal > 0) { s += ''; s += 'TVA ' + vatitems[j].vname + ' : '; s += ''; s += '' + convdec(vatitems[j].vtotal) + ''; vattotal += vatitems[j].vtotal; if (Bestellung.vat != '') {Bestellung.vat += '#__';} Bestellung.vat += 'dont TVA ' + vatitems[j].vname + '__' + convdec(vatitems[j].vtotal); } } } // Summe enthaltene Mehrwertsteuer //s += ''; //s += 'Total TVA :'; //s += ''; //s += '' + convdec(vattotal) + ''; if (Bestellung.vat != '') {Bestellung.vat += '#__';} Bestellung.vat += 'Montant TVA__' + convdec(vattotal); // Envoyer les données pour enregistrement Dans la base MYSQL (.php) //alert (Kunde.vorname); return s; } function showOrder1Form() { var s = new String(""); // Shipping Inland s += '\n'; s += ' National :\n'; s += '\n'; s += '\n'; s += '\n'; s += ' \n'; s += 'France Métropolitaine - Assurance incluse\n'; s += '\n'; // Shipping Ausland s += '\n'; s += ' International :\n'; s += ' \n'; s += '\n'; s += 'Paiement sécurisé\n'; s += '\n'; // Bankeinzug // Nachnahme // Rechnung // Scheck s += '\n'; s += 'Chèque à la commande :\n'; s += '\n'; s += ' \n'; s += 'Imprimez la commande, joignez-y le chèque et adressez le tout à l´adresse indiquée\n'; return s; } function showOrder2Form() { var s = new String(""); // Anrede s += '\n'; s += 'Qualité :\n'; s += '\n'; s += 'M. \n'; s += '\n'; s += 'Mme/Mlle\n'; // Vorname s += '\n'; s += 'Nom :\n'; s += ' \n'; s += '\n'; s += '\n'; // Nachnahme s += '\n'; s += 'Prénom :\n'; s += ' \n'; s += '\n'; s += ' \n'; s += '\n'; // Zusatz s += '\n'; s += 'Code Client :\n'; s += ' \n'; s += '\n'; // Firma s += '\n'; s += 'Société :\n'; s += ' \n'; s += '\n'; // Strasse s += '\n'; s += 'Adresse :\n'; s += ' \n'; s += '\n'; s += '\n'; // PLZ / Ort s += '\n'; s += 'CP/Ville :\n'; s += ' \n'; s += '\n'; s += '\n'; s += '\n'; // Land s += '\n'; s += 'Pays :\n'; s += ' \n'; s += '\n'; s += '\n'; // Telefon s += '\n'; s += 'Téléphone fixe :\n'; s += ' \n'; s += '\n'; s += '\n'; // E-Mail s += '\n'; s += 'E-mail :\n'; s += ' \n'; s += '\n'; s += '\n'; // Bemerkungen s += '\n'; s += 'Remarques :\n'; s += ' \n'; s += '\n'; return s; } function showCustomerData() { var s = new String(""); s += ''; //s += ''; // Bestellanschrift s += ''; s += '
'; // Land if (Kunde.land != '') { s += ''; s += ''; } // Telefone if (Kunde.telefon != '') { s += ''; s += ''; } // E-Mail if (Kunde.email != '') { s += ''; s += ''; } s += ''; // Transport s += ''; s += ''; s += ''; // Reglement s += ''; // Carte de crédit if (Kunde.paymethod == 'Kreditkarte') { s += ''; } if (Kunde.paymethod == 'Bankeinzug') { s += ''; s += ''; s += ''; s += ''; s += ''; Bestellung.paymethod = 'Prélèvement#Prélèvement ' + Kunde.bankktonr + '#Code Banque ' + Kunde.bankblz + '#Institut ' + Kunde.bank + '#Détenteur ' + Kunde.bankcustname; Bestellung.paymethodshort = 'Prélèvement'; } if (Kunde.paymethod == 'Nachnahme') { s += ''; Bestellung.paymethod = 'Contre remboursement'; Bestellung.paymethodshort = 'Contre remboursement'; } if (Kunde.paymethod == 'Rechnung') { s += ''; Bestellung.paymethod = 'A réception de facture'; Bestellung.paymethodshort = 'A réception de facture'; } if (Kunde.paymethod == 'Scheck') { s += ''; Bestellung.paymethod = 'Chèque à la commande'; Bestellung.paymethodshort = 'Chèque à la commande'; } if (Kunde.paymethod == 'Frafinance') { s += ''; Bestellung.paymethod = 'Fran-Finance'; Bestellung.paymethodshort = 'Fran-Finance'; } // Bemerkungen if (Kunde.bemerkung != '') { s += ''; s += ''; } s += '
 
'; s += 'Adresse :

'; s += Kunde.anrede + ' ' + Kunde.vorname + ' ' + Kunde.nachname + '
'; //if (Kunde.zusatz != '') {s += Kunde.zusatz + ' ';} //s += Kunde.vorname + ' ' + Kunde.nachname + '
'; if (Kunde.firma != '') {s += Kunde.firma + '
';} s += Kunde.strasse + '
'; s += Kunde.plz + ' ' + Kunde.ort; s += '

'; s += 'Pays :' + Kunde.land + '
'; s += 'Téléphone : ' + Kunde.telefon + '
'; s += 'E-mail :' + Kunde.email + '
  
'; s += 'Mode d\'expédition :' + Kunde.shiptext + '
  
'; s += 'Mode de règlement :Carte de crédit
Prélèvement ' + Kunde.bankktonr + '
 Code Banque ' + Kunde.bankblz + ', ' + Kunde.bank + '
 Détenteur : ' + Kunde.bankcustname + '
Contre remboursement
A réception de facture
Chèque à la commande
Fran-Finance
'; s += 'Remarques :' + Kunde.bemerkung + '
'; return s; } function stringf(str,width,align) { var s = new String(""); var i = width - str.length; if (i > 0) { for (var j=0; j < i; ++j) { s += " "; } } else { str = str.substring(0, width); } if (align == "left") s = str + s else s += str; return s; } function printMessage(DateStr) { var versand = StringToFloat(Kunde.shipcost); var s = new String(""); //s += '#'; //s += DateStr + '#'; s += Kunde.anrede + ' '; if (Kunde.zusatz != '') {s += Kunde.zusatz + ' ';} s += Kunde.vorname + ' ' + Kunde.nachname + '#'; if (Kunde.firma != '') {s += Kunde.firma + '#';} s += Kunde.strasse + '#'; s += Kunde.plz + ' ' + Kunde.ort + '#'; s += Kunde.land + '#'; s += Kunde.telefon + '#'; s += Kunde.email + '#'; s += 'Mode d\'expédition '; s += Kunde.shiptext + '#'; // + convdec(versand) + '#'; s += 'Mode de règlement '; s += Bestellung.paymethod + '#'; s += '--------------------------------------------------------------------------------#'; s += Bestellung.items + '#'; s += '--------------------------------------------------------------------------------#'; s += Bestellung.subtotal + '#'; s += Bestellung.delivery + '#'; s += Bestellung.cod + '#'; s += '--------------------------------------------------------------------------------#'; s += Bestellung.total + '#'; s += Bestellung.euro + '#'; //s += Bestellung.vat + '#'; s += '--------------------------------------------------------------------------------#'; s += '#Remarques#'; if (Kunde.bemerkung == '') s+= 'aucune' else s += convertLF(Kunde.bemerkung); s += '#'; return s; } function printAttachment(DateStr) { var s = new String(""); s += 'shopname=&'; s += 'date=' + DateStr + '&'; s += 'salutation=' + Kunde.anrede + '&'; s += 'firstname=' + Kunde.vorname + '&'; s += 'lastname=' + Kunde.nachname + '&'; s += 'addition=' + Kunde.zusatz + '&'; s += 'company=' + Kunde.firma + '&'; s += 'street=' + Kunde.strasse + '&'; s += 'zip=' + Kunde.plz + '&'; s += 'city=' + Kunde.ort + '&'; s += 'country=' + Kunde.land + '&'; s += 'phone=' + Kunde.telefon + '&'; s += 'email=' + Kunde.email + '&'; if (Kunde.shipto == 'Inland') { s += 'shipto=National&'; } else { s += 'shipto=International&'; } s += 'shipcost=' + Kunde.shipcost + '&'; s += 'shiptext=' + Kunde.shiptext + '&'; s += 'paymethod=' + Bestellung.paymethodshort + '&'; s += 'cc=' + Kunde.cc + '&'; s += 'ccvalid=' + Kunde.ccvalid + '&'; s += 'ccnr=' + Kunde.ccnr + '&'; s += 'cccustname=' + Kunde.cccustname + '&'; s += 'bank=' + Kunde.bank + '&'; s += 'bankktonr=' + Kunde.bankktonr + '&'; s += 'bankblz=' + Kunde.bankblz + '&'; s += 'bankcustname=' + Kunde.bankcustname + '&'; s += 'orderpaymethod=' + Bestellung.paymethod + '&'; s += 'orderitems=' + Bestellung.items + '&'; s += 'ordersubtotal=' + Bestellung.subtotal + '&'; s += 'orderdelivery=' + Bestellung.delivery + '&'; s += 'ordercod=' + Bestellung.cod + '&'; s += 'ordertotal=' + Bestellung.total + '&'; s += 'ordereuro=' + Bestellung.euro + '&'; //s += 'ordervat=' + Bestellung.vat; return escape(s); } function convertMessage(msg) { var s = new String(""); var startpos = 0; var i = msg.indexOf('#',startpos); while (i != -1) { s += msg.substring(startpos,i) + '\n'; startpos = i + 1; i = msg.indexOf('#',startpos); } s += msg.substring(startpos,msg.length); return s; } function convertLF(msg) { var s = new String(""); var startpos = 0; var i = msg.indexOf('\n',startpos); while (i != -1) { s += msg.substring(startpos,i) + '#'; startpos = i + 1; i = msg.indexOf('\n',startpos); } s += msg.substring(startpos,msg.length); return s; } function whereReturn() { return document.location + "/order4.php"; } function printAnrede() { var s = new String(""); s = Kunde.anrede +' ' + Kunde.vorname +' ' + Kunde.nachname + ',\n'; return s; } function printOrderButton() { var s = new String(""); s += '
\n'; s += '\n'; s += '\n'; s += '\n'; s += '
\n'; return s; } // ***************************************************** // the following codeline must be the last one !!! // ***************************************************** isBasketLoaded = true;