var popwindow
var tisurl
var tiswidth
var tisheight
var tistopposition
var tisleftposition
var pause
var step
var marginright
var endposition
var timer

function openpopup(thisurl,thiswidth,thisheight,thistopposition) {
	tisurl=thisurl
	tiswidth=thiswidth
	tisheight=thisheight
	tistopposition=thistopposition
	tisleftposition=-tiswidth

	popwindow=window.open(tisurl, "newwindow", "toolbar=no,width=600"+tiswidth+",height=400"+tisheight+",top=200"+tistopposition+",left=250"+(tisleftposition)+"");

	if (document.all) {
		marginright=screen.width
		endposition=marginright-thiswidth-10
		movewindow()
	}
	if (document.layers) {
    	marginright=window.innerWidth-10
		endposition=marginright-thiswidth
		movewindow()
	}
}
