function addNet(url,titel){ if((typeof window.sidebar=="object") && (typeof window.sidebar.addPanel=="function")){window.sidebar.addPanel(titel,url,"");}else{alert("Sie nutzen eine veralterte Netscape Version!\nLesezeichen hinzufügen ist nicht möglich!");}} function lesezeichen(){var url=window.location.href,t=document.title,ap=navigator.appName; if(ap=="Microsoft Internet Explorer"){window.external.AddFavorite(url,t);}else{ if(ap=="Netscape"){addNet(url,t);}else{alert("Mit Ihren Browser ist kein Lesezeichen hinzufügen über Javascript möglich.\nBitte legen sie das Lesezeichnen manuell an.\nURL:"+url);};}}; function printme(printUrl) { //window.open('/front_content.php?idart=2&url='+printUrl,'printMe','menubar=yes,width=830,height=500,scrollbar=no').focus(); strUrl = str_replace2('&', printUrl); alert(strUrl); } //a = suchmuster, b=ersetzungsmuster, c=string function str_replace(b,c) { while (c.indexOf("?") != -1) { c = c.replace("?", b); } return c; } function printWindow(myPage) { var reg = new RegExp("index.php?"); if (reg.test(myPage)) myPage = myPage.replace(/index.php\?/, 'index.php&'); var myWidth = 650; var myHeight = 600; var myLeft = (screen.width - myWidth) / 2; var myTop = (screen.height - myHeight) / 2; winprops = 'height='+myHeight+',width='+myWidth+',top='+myTop+',left='+myLeft+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes'; printWin = window.open('/printme.php?site='+myPage, 'Print', winprops); if (parseInt(navigator.appVersion) >= 4) { printWin.window.focus(); } }