/* common javascript */ function deleteItem(id){ // window.location = "http://www.gmx.de/"; Check = confirm("Wirklich löschen ("+id+")?"); if(Check == false) { return false ; } else { window.location = "?e=3&i="+id; return true ; } } jQuery(document).ready(function () { if(document.getElementById('fenster_infopopup')){ overlayInfoOn(); } /* $('fenster_youtube').append( overlay = $('
') ); */ }); function overlayOff() { document.getElementById('fenster_directbg_info').style.display = "none"; document.getElementById('fenster_infopopup').style.display = "none"; } function overlayOn(){ setTimeout(function(){ overlayOff(); }, 30000); /* alert("1");*/ /* if(document.getElementById('fenster_directbuttons_bg')){ // document.getElementById('fenster_directbg').style.display = "block"; alert("3"); } */ if(document.getElementById('infopopup')){ document.getElementById('infopopup').style.display = "block"; } if(document.getElementById('fenster_directbuttons')){ /* document.getElementById('fenster_directbuttons').style.display = "block";*/ } if(document.getElementById('fenster_directbg')){ document.getElementById('fenster_directbg').style.display = "block"; } /* alert("Vielen Dank");*/ } function overlayInfoOn(){ setTimeout(function(){ overlayOff(); }, 15000); if(document.getElementById('fenster_infopopup')){ document.getElementById('fenster_infopopup').style.display = "block"; } if(document.getElementById('fenster_directbg_info')){ document.getElementById('fenster_directbg_info').style.display = "block"; } } function FormboxLoginVisible(){ if(document.getElementById('box-login-outer')){ document.getElementById('box-login-outer').style.display = "block"; if(document.getElementById('lnk-login')){ document.getElementById('lnk-login').className = 'on' } if(document.getElementById('btn-login')){ document.getElementById('btn-login').style.backgroundColor = "#292929"; } } } function Fensterweite () { if (window.innerWidth) { return window.innerWidth; } else if (document.body && document.body.offsetWidth) { return document.body.offsetWidth; } else { return 0; } } function Fensterhoehe () { if (window.innerHeight) { return window.innerHeight; } else if ($(window).height()) { /* ### jquery ### */ return $(window).height(); } else if (document.body && document.body.offsetHeight) { return document.body.offsetHeight; } else { return 0; } } function toggleFormbox(id, lnkObj, pre, GET, CLOSE){ // alert("H"+id); /*if (CLOSE == 1) {formularLeeren ();alert(CLOSE+"-C");}*/ if (pre != "" && pre != undefined){ switch(pre) { case "1": /*uid404*/ document.getElementById("uid509").selectedIndex = 0; break; case "2": document.getElementById("uid509").selectedIndex = 1; break; case "3": document.getElementById("uid509").selectedIndex = 2; break; case "on": /* */ break; default: } } var fensterbreite = Fensterweite(); var fensterhoehe = Fensterhoehe(); var seitenbreite = "";/*$(document).width();*/ /* if (typeof $(document) == 'function'){var seitenbreite = $(document).width;} */ var seitenbreite = $(document).width; var body = document.body, html = document.documentElement; var seitenhoehe = Math.max( body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight ); if(document.getElementById('fenster_directbg') && id=="fenster_youtube"){ if(document.getElementById('fenster_directbg').style.display == 'block'){ if (pre == 'on' ){}else{document.getElementById('fenster_directbg').style.display = "none";} } else{ document.getElementById('fenster_directbg').style.display = "block"; document.getElementById('fenster_directbg').style.height = seitenhoehe + "px"; document.getElementById('fenster_directbg').style.width = seitenbreite + "px"; } } if(document.getElementById(id)){ document.getElementById(id).style.height = fensterhoehe; document.getElementById(id).style.width = fensterbreite; if(document.getElementById('close')){ /* document.getElementById('close').setAttribute("href","http://bl.webatwork.biz/businesslounge/produkt/");*/ document.getElementById('close').setAttribute("href",document.URL); } if(document.getElementById(id).style.display == 'block'){ document.getElementById(id).style.display = "none"; lnkObj.className = 'off' if(id == 'box-login-outer' && document.getElementById('btn-login')){ document.getElementById('btn-login').style.backgroundColor = "#000000"; } } else{ document.getElementById(id).style.display = "block"; lnkObj.className = 'on' if(id == 'box-login-outer' && document.getElementById('btn-login')){ document.getElementById('btn-login').style.backgroundColor = "#292929"; } } if (GET>0){ //alert(id+"E"+GET); document.getElementById(id).style.display = "block"; } } else { // document.getElementById('fenster_directbuttons').style.display = "block"; // alert("E: "+id); } } //alt function oeffneformBox(L){ var LA = location.search; alert("O"+window.location.search+"A"+L+LA+"Z"); } /* ### GET-Variablen in $_GET["XXX"] umwandeln ### */ (function(){ var s = window.location.search.substring(1).split('&'); if(!s.length) return; window.$_GET = {}; for(var i = 0; i < s.length; i++) { var parts = s[i].split('='); window.$_GET[unescape(parts[0])] = unescape(parts[1]); } }()) //alert($_GET["fe"]);