function openImage(iname, ifolder) { window.open("../../images//"+ifolder+"/"+iname+".html?&PHPSESSID=","Photo","width=700,height=550,screenX=200,screenY=20,menubar=no,scrollbars=yes, resizable=yes"); } function showImage(iname, ifolder, e) { var obj = document.getElementById("showImage"); document.getElementById("showImageMiddle").innerHTML = ""; obj.style.top = getMouseY(e)+'px'; obj.style.left = (getMouseX(e)+50)+'px'; obj.style.display = 'block'; } function getMouseY(e) { if (document.all) return event.clientY + document.body.scrollTop; else return e.pageY; } function getMouseX(e) { if (document.all) return event.clientX + document.body.scrollLeft; else return e.pageX; } function hideImage() { var obj = document.getElementById("showImage"); obj.style.display = 'none'; } function add() { window.open("","add","width=700,height=380,screenX=100,screenY=20,menubar=no,scrollbars=yes,resizable=yes"); return true; } function advice(i, l) { window.open("../request/main.php?c=advice&i="+i+"&l="+l+"&PHPSESSID=","ausverkauft","width=700,height=470,screenX=100,screenY=20,menubar=no,scrollbars=yes,resizable=yes"); } function terms() { window.open("../terms/?&PHPSESSID=","terms","width=700,height=550,screenX=200,screenY=20,menubar=no,scrollbars=yes, resizable=yes"); } function plus(formnr) { wert = eval("document." + formnr + ".anzahl.value"); wert++; message = "document." + formnr + ".anzahl.value = " + wert; eval (message); } function minus(formnr) { wert = eval("document." + formnr + ".anzahl.value"); if (wert > 1) wert--; message = "document." + formnr + ".anzahl.value = " + wert; eval (message); } function info(i,l) { window.open("../info/?i="+i+"&l="+l+"&PHPSESSID=","info","width=700,height=550,screenX=200,screenY=20,menubar=no,scrollbars=yes, resizable=yes"); } function description(pid) { window.open("../tips/main.php?&c=description&pid="+pid+"&PHPSESSID=","description","width=400,height=300,screenX=200,screenY=20,menubar=no,scrollbars=yes, resizable=yes"); } function escapeAll(string) { string=escape(string); string=rc(string,"*","%2A"); string=rc(string,"+","%2B"); string=rc(string,"-","%2D"); string=rc(string,".","%2E"); string=rc(string,"/","%2F"); string=rc(string,"@","%40"); string=rc(string,"_","%5F"); return string; } function rc(text,chars,subs,insensitive) { if(chars) { var i, work, result="", start=0; subs=(subs)?subs:""; if(insensitive) { work=text.toLowerCase(); chars=chars.toLowerCase(); } else { work=text; } i=work.indexOf(chars,start); while(i>=0) { result+=text.substring(start,i)+subs; start=i+chars.length; i=work.indexOf(chars,start); if(!i) { break; } } result+=text.substring(start,text.length); return result; } else { return text; } } function set_lang( l ) { jetzt_nicht_moeglich = "[de] Sprachänderung während des Bestellvorgangs nicht möglich! Bitte besuchen Sie zuerst wieder eine Seite aus der Navigationsleiste.\n\n"; jetzt_nicht_moeglich += "[en] Not possible during order! Please visit a page from the navigation bar first.\n\n"; jetzt_nicht_moeglich += "[es] ¡!\n"; nicht_moeglich = new Array("\/user\/", "\/confirm\/", "\/send\/"); folder = parent.main.location.href; for (var i = 0; i < nicht_moeglich.length; i++) { if (folder.match(nicht_moeglich[i])) { window.alert(jetzt_nicht_moeglich); return; } } folder = parent.location.href.replace(/^.+\/(?:de|en)(\/.+)$/, "$1"); //folder = folder.replace(/(.+)(&set_lang=[a-z]{2})(.*)/, "$1$3"); folder = folder.replace(/&*PHPSESSID=[a-z0-9].*/, ""); folder = folder.replace(/#[a-zA-Z0-9\-]+/, ""); folder = folder.replace("main.php", ""); folder = "../../" + l + folder; if (l == "es") window.alert("[de] Noch nicht verfügbar, bitte andere Sprache wählen.\n\n[en] Not available yet, please choose another language.\n\n[es]"); else parent.location.href = folder; } function addEngine() { if ((typeof window.sidebar == "object") && (typeof window.sidebar.addSearchEngine == "function")) { window.sidebar.addSearchEngine( "http://www.ars-kakteen.de/search/ars-firefox.src", "http://www.ars-kakteen.de/search/ars-firefox.gif", "Shopping", 0 ); } else { window.alert("[de] nicht möglich mit diesem Browser\n\n[en] not possible with this browser"); } }