/** * John Resig, erklärt bei quirksmode */ function addEvent( obj, type, fn ) { if (obj.addEventListener) { obj.addEventListener( type, fn, false ); } else if (obj.attachEvent) { obj["e"+type+fn] = fn; obj[type+fn] = function() { obj["e"+type+fn]( window.event ); } obj.attachEvent( "on"+type, obj[type+fn] ); } } function removeEvent( obj, type, fn ) { if (obj.removeEventListener) { obj.removeEventListener( type, fn, false ); } else if (obj.detachEvent) { obj.detachEvent( "on"+type, obj[type+fn] ); obj[type+fn] = null; obj["e"+type+fn] = null; } } function PopUp(filename, width, height) { var neu2 = window.open("display_image.php?pic="+filename,"fenster2","width="+width+",height="+height+",locationbar=no,menubar=no"); } function PopUpUrl(url, width, height) { var neu2 = window.open(url ,"fenster2","width="+width+",height="+height+",locationbar=no,menubar=no"); } function PopUpPage(page, width, height) { window.open("sc_page.php?page="+page, "page_popup", "width="+width+",height="+height+",locationbar=no,menubar=no"); }