// Tutorial Fenster

var win = null;

function FensterNeu(url,breite,hoehe,links,oben)
{
     httpwindow=true;
     format="width="+breite+",height="+hoehe;

     format+=",screenX="+links+",screenY="+oben;
     format+=",left="+links+",top="+oben;

     format+=",scrollbars=yes,toolbars=yes,";
     format+="status=yes,resizable=yes,";
     format+="menubar=yes,directory=yes";

     if (win)
     {
         zumachen();
     }

     win = window.open("","fenster",format);
     win.focus();
     win.location=url;
}

function zumachen(){
        if(!win.closed)
        win.close();
}

// Video Popup

function OSG_mymoviepopup(x,s,b,h,options) {
	if (!options) {
		options = 'location=no,scrollbar=yes,menubars=no,toolbars=no,resizable=yes,top=5,left=30';
	}
	var seite = x;
	windowprops = 'height='+h+',width='+b+','+options;
	var fensterle =	window.open(seite, "mypopup", windowprops);
	fensterle.focus();
}

function movieplayer(moviename){
	OSG_mymoviepopup('https://smart.onoffice.de/smart25/movie/movieplayer.php?moviename='+moviename,1,850,650,'left=100,top=100');
}

