﻿function openMovieWidgetWindow(targetURL)
{document.location.href=targetURL;}
function openDessousShopWindow(targetURL)
{var win=window.open(targetURL,"DessousShopWindow","width=804,height=600,scrollbars=1,resizable=1");if(win)
{win.focus();}}
function confirmDelete(url)
{if(confirm("Wirklich Nachricht löschen?"))
{document.location.href=url;}}
function deleteDiv(){var swfDIV=document.getElementById("splashgirlDIV");if(swfDIV){var swfParent=swfDIV.parentNode;if(swfParent){swfParent.removeChild(swfDIV);}}}
function openTPayUeberweisungInfoWindow(){var win=window.open("http://www.t-online.de/service/redir/ueberweisung_hilfe2.html","InfoWindow","width=460,height=524");win.focus();}
function lspsFindPosX(obj){var curleft=0;if(obj.offsetParent)
while(1)
{curleft+=obj.offsetLeft;if(!obj.offsetParent)
break;obj=obj.offsetParent;}
else if(obj.x)
    curleft += obj.x; return curleft;
}

function lspsFindPosY(obj) {
    var curtop = 0;
    if(obj.offsetParent)
        while (1) {
            curtop += obj.offsetTop;
            if(!obj.offsetParent)
                break;
            obj = obj.offsetParent;
        }
    else if(obj.y)
        curtop += obj.y;
        
    return curtop;
}

function lspsWindowWidth() {
    var myWidth = 0;
    if (document.documentElement && (document.documentElement.clientWidth)) {
        myWidth = document.documentElement.clientWidth;
    } else if (typeof (window.innerWidth) == 'number') {
        myWidth = window.innerWidth;
    } else if (document.body && (document.body.clientWidth)) {
        myWidth = document.body.clientWidth;
    }
    return myWidth;
}

function lspsWindowHeight() {
    var myHeight = 0;
    if (document.documentElement && (document.documentElement.clientHeight)) {
        myHeight = document.documentElement.clientHeight;
    } else if (typeof (window.innerHeight) == 'number') {
        myHeight = window.innerHeight;
    } else if (document.body && (document.body.clientHeight)) {
        myHeight = document.body.clientHeight;
    }
    return myHeight;
}
