var temp

function image(name, imgwidth, imgheight) { 
popup = window.open("about:blank","_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+imgwidth+",height="+imgheight+",left=0,top=0"); 
popup.document.write('<html><head><title>Ansicht: '+name+'</title></head>');
popup.document.write('<body bgcolor="#ffffff" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">');
popup.document.write('<img src="/img/'+name+'" alt="" width="'+imgwidth+'" height="'+imgheight+'" border="0">');
popup.document.write('</body></html>');
popup.focus();
}

function openpopup(myfile, myname, breite, hoehe)
{
        if((navigator.appName.indexOf("Explorer")!=-1)&&(parseInt(navigator.appVersion.substring(0,1))<4))
                {
                params = "width=" + breite + ",height=" + hoehe + ",resizable=0,status=0,scrollbars=0,toolbar=0,location=0,directories=0,menubar=0,top=0,left=0";
        newwin = window.open( myfile , myname , params) ;
                }
        else
                {
                        if(temp)
                        {
                                if(!temp.closed)
                                        {
                                        temp.close();temp="";
                                        }
                        }
                
        params = "width=" + breite + ",height=" + hoehe + ",resizable=0,status=0,scrollbars=0,toolbar=0,location=0,directories=0,menubar=0,top=0,left=0";
        newwin = window.open( myfile , myname , params) ;
                temp = newwin;
                temp.name = "temp";
                newwin="";
                }
}

function init() { return true; }

