// Dieses Script stammt von Jochen@Lengerke.de


var wichtig
var thismargin=20
var tistopposition=thismargin
var tisleftposition=thismargin
var pause=20
var step=20
var screenwidth
var screenheight
var endposition_x
var timer

function openpopup()
{
        wichtig=window.open("", "wichtigwin", "toolbar=no,width=300,height=300,top="+tistopposition+",left="+(tisleftposition)+"");
        wichtig.location.href = "../../htm/text/popup.htm";
        if (wichtig.opener == null) wichtig.opener = window;
        wichtig.opener.name = "opener";
        screenwidth=window.screen.width
        screenheight=window.screen.height
        endposition_x=screenwidth-300-thismargin
        moveright()
}


function moveright()
{
        if (tisleftposition<=endposition_x) {
                wichtig.moveTo(tisleftposition,tistopposition)
                tisleftposition+=step
                timer= setTimeout("moveright()",pause)
        }
}
