function getWindowWidth () {

    var WindowWidth = false;
    
    if (screen.availWidth !== undefined) {
        WindowWidth = screen.availWidth; }
    
    if (window.innerWidth !== undefined) {
        WindowWidth = window.innerWidth; }
        
    if (document.body.offsetWidth !== undefined) {
        WindowWidth = document.body.offsetWidth; }
    
    return WindowWidth;
    }
    
function getWindowHeight () {

    var WindowHeight = false;
    
    if (screen.availHeight !== undefined) {
        WindowHeight = screen.availHeight; }
    
    if (window.innerHeight !== undefined) {
        WindowHeight = window.innerHeight; }
        
    if (document.body.offsetHeight !== undefined) {
        WindowHeight = document.body.offsetHeight; }
    
    return WindowHeight;
    }

function getTopPosition(givenHeight) {
    
    var SpaceLeft = getWindowHeight() - givenHeight;
    var Top = Math.ceil(SpaceLeft / 2);
    
    return Top; }

function getLeftPosition(givenWidth) {
    
    var SpaceLeft = getWindowWidth() - givenWidth;
    var Top = Math.ceil(SpaceLeft / 2);
    
    return Top; }

function OpenWin(Titel, Image) {



	var OpenWin = window.open('', 'luvt','width=500,height=450,status=no,scrollbars=yes');



	OpenWin.document.open();



	OpenWin.document.writeln('<html><head><title>'+Titel+'</title></head>');



	OpenWin.document.writeln('<body bgcolor=white leftmargin=0 marginwidth=0 topmargin=0 marginheight=0>');



	OpenWin.document.writeln('<table width=100% height=100% cellpadding=0 cellspacing=0 border=0><tr><td align=center>');

	OpenWin.document.writeln('<img src=../img/produkte/'+Image+' border=1></td></tr></table></body></html>');



	OpenWin.document.close();



	OpenWin.focus();

    return false;
	}