function switchin(which,group) { var temp1="limage"+which; var temp2="itemimage"+group; document.getElementById(temp1).className=temp2; } function switchout(which) { var temp1="limage"+which; document.getElementById(temp1).className='itemimage'; } /* warenkorb items löschen/ändern */ function delitem(title,which) { title = title.replace("\"", ""); if (confirm("Would you like to remove the item '"+title+"' from your cart?")) document.location.href="http://www.ism-parts.com/en/cart/delitem/"+which; } function changeitemanz(itemkartID) { var help= "anz_"+itemkartID; document.location.href="http://www.ism-parts.com/en/cart/changeitem/"+itemkartID+"/"+document.getElementById(help).value; } function resetwarenkorb() { document.getElementById("warenkorbquick").innerHTML='
MY SHOPPING CART
There are currently
no items in your cart.
'; } function ismail(str) { var at="@" var dot="." var lat=str.indexOf(at) var lstr=str.length var ldot=str.indexOf(dot) if (str.indexOf(at)==-1){ return false } if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){ return false } if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){ return false } if (str.indexOf(at,(lat+1))!=-1){ return false } if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){ return false } if (str.indexOf(dot,(lat+2))==-1){ return false } if (str.indexOf(" ")!=-1){ return false } return true } function show(which) { document.getElementById(which).style.display=''; } function hide(which) { document.getElementById(which).style.display='none'; } function toggle(which) { if (document.getElementById(which).style.display=='none') show(which); else hide(which); } var base64s = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; function decode(encStr) { var bits; var decOut = ''; var i = 0; for(; i>16, (bits & 0xff00) >>8, bits & 0xff); } if(encStr.charCodeAt(i -2) == 61) { return(decOut.substring(0, decOut.length -2)); } else if(encStr.charCodeAt(i -1) == 61) { return(decOut.substring(0, decOut.length -1)); } else {return(decOut)}; } function tiodtsuj(a) { var x=decode(a);temp=x.split('###');document.write('');document.write(temp[1]);document.write('@');document.write(temp[0]);document.write('');} function tiodtsuj1(a) { var x=decode(a);temp=x.split('###');document.write('E-Mail: ');document.write(temp[1]);document.write('@');document.write(temp[0]);document.write('');} function tiodtsuj2(a) { var x=decode(a);temp=x.split('###');document.write('');document.write('E-Mail Kontakt');document.write('');} function getScrollPos() { var scrOfX = 0, scrOfY = 0; if( typeof( window.pageYOffset ) == 'number' ) { //Netscape compliant scrOfY = window.pageYOffset; scrOfX = window.pageXOffset; } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) { //DOM compliant scrOfY = document.body.scrollTop; scrOfX = document.body.scrollLeft; } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) { //IE6 standards compliant mode scrOfY = document.documentElement.scrollTop; scrOfX = document.documentElement.scrollLeft; } return [ scrOfX, scrOfY ]; } var tempscroll="bfk"; var scrolloffset=0; function showImage(imageID) { imageID = imageID || 0; if (imageID==0) return false; // alert(''); document.getElementById('overlay').style.display=""; document.getElementById('overlayimage').innerHTML='
'; document.getElementById('overlayimage').style.display=""; document.getElementById('overlay2').style.display=""; if (tempscroll=='bfk') { tempscroll=document.body.style.overflow; scrolloffset=getScrollPos(); document.body.style.overflow = 'hidden'; window.scrollTo(0,0); } } function hideImage() { document.getElementById('overlayimage').innerHTML=''; document.getElementById("overlay").style.display="none"; document.getElementById("overlay2").style.display="none"; document.getElementById('overlayimage').style.display="none"; document.body.style.overflow = tempscroll; tempscroll="bfk"; window.scrollTo(scrolloffset[0],scrolloffset[1]); } function showInfo() { document.getElementById('overlay').style.display=""; document.getElementById('overlayinfo').style.display=""; document.getElementById('overlay2').style.display=""; if (tempscroll=='bfk') { tempscroll=document.body.style.overflow; scrolloffset=getScrollPos(); document.body.style.overflow = 'hidden'; window.scrollTo(0,0); } return false; } function hideInfo() { document.getElementById("overlay").style.display="none"; document.getElementById("overlay2").style.display="none"; document.getElementById('overlayinfo').style.display="none"; document.body.style.overflow = tempscroll; tempscroll="bfk"; window.scrollTo(scrolloffset[0],scrolloffset[1]); }