function mw_get_website_width() 
{
	var myWidth = 0, myHeight = 0;
	
	if( typeof( window.innerWidth ) == 'number' ) 
	{
		//Non-IE
    		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} 
	else if( document.documentElement &&
      		( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
	{
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} 
	else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
	{
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	return myWidth;
}

function mw_newtinywindow(desturl,winname)
{
        var dynimg=0;
        browsname = navigator.appName;
        browsver = parseInt(navigator.appVersion);
        
        if (winname=='')
        {       jetzt = new Date();
                winname=jetzt.getTime(); 
        }
        desturl = 'tinywindow/' + desturl;
        var fenster = window.open(desturl, winname, "width=200,height=100,left=20,top=20,toolbar=0,location=0,status=1,menubar=0,scrollbars=0,resizable=0");
}

function mw_newwindow(desturl,winname)
{
        var dynimg=0;
        browsname = navigator.appName;
        browsver = parseInt(navigator.appVersion);

	var wwidth=750;
	var wheight=450;

        if (screen.width >= 1024 && screen.height >= 768)
        {
        	//wwidth = screen.width - 150;
        	//wheight = screen.height - 200;
        	wwidth = 820;
        	wheight = 650;
        }
        
        if (winname=='')
        {       jetzt = new Date();
                winname=jetzt.getTime(); 
        }
        desturl = desturl;
        var fenster = window.open(desturl + "?mode=nw1", winname, "width=" + wwidth + ",height=" + wheight + ",left=20,top=20,toolbar=1,location=1,status=1,menubar=0,scrollbars=1,resizable=1");
	fenster.window.focus();
}