var hostname = "www.duregexpress.de"; function paymentnetwork_check(mode) { var myAjax = new Ajax(); myAjax.method="POST"; myAjax.url="../html_order/paymentnetwork_check.php"; //Response war erfolgreich myAjax.onSuccess = function(txt,xml) { //Lieferte Das PHP-Skript eine Fehlermeldung? if (seHasError(txt)) { myAjax.onError(seGetError(txt)); return null; } if (txt) { if (txt=="0") { window.setTimeout("paymentnetwork_check('0')", 2000); } else { if(txt == "1") { PaymentNetworkSuccess(); } else { if(txt == "2") { getOrderError('order_err3',''); } else { if (((txt != "3") && (txt != "4")) || (mode=='1')) { window.setTimeout("paymentnetwork_check('0')", 2000); } else { } } } } } } //Fehler bei Kommunikation zw. Client und Server myAjax.onError = seErrorHandler; //Datei speichern myAjax.doRequest(); } function change_reservationlist(actiontype, itemid) { checkSession(); var myAjax = new Ajax(); myAjax.method="GET"; myAjax.url="../html_account_mngt/show_reservations.php"; myAjax.params ='actiontype='+ actiontype + "&itemid=" + itemid; //Response war erfolgreich myAjax.onSuccess = function(txt,xml) { //Lieferte Das PHP-Skript eine Fehlermeldung? if (seHasError(txt)) { myAjax.onError(seGetError(txt)); return null; } if (txt) { document.getElementById("search").innerHTML= txt; } } //Fehler bei Kommunikation zw. Client und Server myAjax.onError = seErrorHandler; //Datei speichern myAjax.doRequest(); } function changeShippingCosts (select) { var shipping_country = select.options[select.options.selectedIndex].value; //show_cart.php via AJAX aufrufen var myAjax = new Ajax(); myAjax.method="POST"; myAjax.url="html_order/show_cart.php"; myAjax.params="width=500&shipping_country="+shipping_country; //Response war erfolgreich myAjax.onSuccess = function(txt,xml) { //Lieferte Das PHP-Skript eine Fehlermeldung? if (seHasError(txt)) { myAjax.onError(seGetError(txt)); return null; } if (txt) { document.getElementById("search").innerHTML= txt; } } //Fehler bei Kommunikation zw. Client und Server myAjax.onError = seErrorHandler; //Datei speichern myAjax.doRequest(); } function cart_change(actiontype, itemid) { checkSession(); var myAjax = new Ajax(); myAjax.method="GET"; myAjax.url="../html_order/cart_change.php"; myAjax.params ='actiontype='+ actiontype + "&itemid=" + itemid; if (document.getElementById("co_duregs").checked) { myAjax.params += "&co_duregs=" + "activate_cupon"; } else { myAjax.params += "&co_duregs=" + ""; } myAjax.params += "&co_code=" + document.getElementById("co_code").value; //Response war erfolgreich myAjax.onSuccess = function(txt,xml) { //Lieferte Das PHP-Skript eine Fehlermeldung? if (seHasError(txt)) { myAjax.onError(seGetError(txt)); return null; } if (txt) { ShowCart (txt); } } //Fehler bei Kommunikation zw. Client und Server myAjax.onError = seErrorHandler; //Datei speichern myAjax.doRequest(); } //Warenkorb aktualiseren function updateCart (itemcount,mode) { checkSession(); //cart_change.php via AJAX aufrufen var myAjax = new Ajax(); myAjax.method="GET"; myAjax.url="../html_order/cart_change.php"; for(var i=0;i0) { pos=pos-1; } info=" "+txt2.substr(1,pos); if (document.getElementById("wlisti"+itemid)) { document.getElementById("wlist"+itemid).src=pic; } p1=txt2.indexOf('not_selected'); if(document.getElementById("wlisti"+itemid)) { if (p1>0) { document.getElementById("wlisti"+itemid).value='1'; } else { document.getElementById("wlisti"+itemid).value='0'; } } if (info.indexOf('emp')>0) { notepad_off(); } else { notepad_go(); } } } //Fehler bei Kommunikation zw. Client und Server myAjax.onError = seErrorHandler; //Datei speichern myAjax.doRequest(); } function show_notepad(notepad_src) { checkSession(); if (document.getElementById('pic_info')) { p_src=" "+document.getElementById('pic_info').src; } if (p_src.indexOf('off')>0) { c=0; } else { if (p_src.indexOf('show')>0) { c=2; } else { c=1; } } if (c!=0) { var myAjax = new Ajax(); myAjax.method="POST"; myAjax.url="../html_main/search.php"; myAjax.params="aj=1&itemoffset=0&show_notepad="+c; //Response war erfolgreich myAjax.onSuccess = function(txt,xml) { //Lieferte Das PHP-Skript eine Fehlermeldung? if (seHasError(txt)) { myAjax.onError(seGetError(txt)); return null; } if (txt) { document.getElementById("search").innerHTML= txt; if(c==1) { notepad_show(); } else { notepad_go(); } UpdateButtons(); } else { document.getElementById("search").innerHTML= ""; UpdateButtons(); } } //Fehler bei Kommunikation zw. Client und Server myAjax.onError = seErrorHandler; //Datei speichern myAjax.doRequest(); } } function notepad_off() { if (document.getElementById("pic_info")) { s2=document.getElementById("pic_info").src p2=s2.indexOf('menu_note'); if (p2>0) { pa=s2.substr(0,p2); document.getElementById('pic_info').src=pa+'menu_notepad_off.jpg'; document.getElementById('pic_info').style.cursor='default'; } } } function notepad_show() { if (document.getElementById("pic_info")) { s2=document.getElementById("pic_info").src p2=s2.indexOf('menu_note'); if (p2>0) { pa=s2.substr(0,p2); document.getElementById('pic_info').src=pa+'menu_notepad_show.jpg'; document.getElementById('pic_info').style.cursor='pointer'; } } } function notepad_go() { if (document.getElementById("pic_info")) { s2=document.getElementById("pic_info").src p2=s2.indexOf('menu_note'); if (p2>0) { pa=s2.substr(0,p2); document.getElementById('pic_info').src=pa+'menu_notepad.jpg'; document.getElementById('pic_info').style.cursor='pointer'; } } } //Warenkorb anzeigen function ShowPreorder () { checkSession(); HideButtons(); var myAjax = new Ajax(); myAjax.method="POST"; myAjax.url="../html_order/invoice_overview.php"; myAjax.params='width=' + "500"; //Response war erfolgreich myAjax.onSuccess = function(txt,xml) { //Lieferte Das PHP-Skript eine Fehlermeldung? if (seHasError(txt)) { myAjax.onError(seGetError(txt)); return null; } if (txt) { QuickSearch(''); document.getElementById("search").innerHTML= txt; } } //Fehler bei Kommunikation zw. Client und Server myAjax.onError = seErrorHandler; //Datei speichern myAjax.doRequest(); } function get_preorder_cart() { checkSession(); var myAjax = new Ajax(); myAjax.method="GET"; myAjax.url="../html_order/get_preorder_cart.php"; // myAjax.params ='actiontype='+ actiontype + "&itemid=" + itemid; //Response war erfolgreich myAjax.onSuccess = function(txt,xml) { //Lieferte Das PHP-Skript eine Fehlermeldung? if (seHasError(txt)) { myAjax.onError(seGetError(txt)); return null; } if (txt) { ShowCart (); } } //Fehler bei Kommunikation zw. Client und Server myAjax.onError = seErrorHandler; //Datei speichern myAjax.doRequest(); }