// JavaScript Document open new window/ Copyright F. Karbstein, www.Medienprofiler.net
// JavaScript   open new window bei Bedarf mit Popup
<!--

function maximizeWin()
{
	window.moveTo(0, 0);
	window.resizeTo(screen.width, screen.height);
}

function alert800()
   {
   
  if ((screen.width) < 800) {
	alert ("Ihre Bildeinstellung ist "+ screen.width + " x " +screen.height +" Pixel\n\nBitte stellen Sie Ihre Bildschirm Eigenschaften um.\nUnsere minimal Anfoderung liegt bei 800x600 Pixel. \n\nVielen Dank\nIhr WebTeam");
	maximizeWin();
	}
  else
	{
	maximizeWin();
	}
	}
   
alert800();


var siteWin = null;
//disabled
function launchSiteWin(URL, windowName, windowWidth, windowHeight, scrollbars)
{
	var xposition =477; 
	var yposition =302;
	
    if ((parseInt(navigator.appVersion) >= 4 )) {
        xposition = (screen.width - windowWidth) / 2;
        yposition = (screen.height - windowHeight) / 2;
    }
	
	if (!scrollbars) var scrollbars = 0;
	
    var args = "width=" + windowWidth + ","
	    	+ "height=" + windowHeight + ","
	    	+ "location=0,"
		    + "menubar=0,"
		    + "scrollbars=" + scrollbars + ","
		    + "status=0,"
		    + "titlebar=0,"
		    + "hotkeys=0,"
		    + "screenx=" + xposition + ","  // NN Only
		    + "screeny=" + yposition + ","  // NN Only
		    + "left=" + xposition + ","     // IE Only
		    + "top=" + yposition;           // IE Only
		
	if (siteWin != null && !siteWin.closed) {
		siteWin.close();
	}
	siteWin = URL, windowName, args;
	//window.open('../runner.html','friend','width=410,height=390,top=40,left=20,resizable=no,scrollbars=no,toolbar=no,directories=no,status=no, menubar=no,toolbar=no,location=no');
	
	siteWin.focus();
}

//launchSiteWin('../index.html', 'siteWin',1024, 800);

// -->