var lng = "DE"; function openWin(wFile, wName, wWidth, wHeight, wScrolling) { myWin=window.open(wFile, wName, 'width='+wWidth+',height='+wHeight+',scrollbars='+wScrolling); myWin.moveTo((screen.width/2)-(wWidth/2),(screen.height/2)-(wHeight/2)); myWin.focus(); } //change location of Window opener function OpenParent(url) { parent.window.opener.location.href=url; } //roll over function RollImg(imageName, imageUrl) { // rollover teil fur die laender navigation oImg = document.getElementById(imageName); if(oImg!=null) oImg.setAttribute("src", imageUrl); } function changeStyle(obj, cssClass) { //alert(obj) obj.className = cssClass; } function doSearch( url ) { document.location="http://www.google.com"; document.location=url+'?'+document.searchForm.searchString.value; } function openLinkFromDropDown( dropdown ) { url = dropdown.options[dropdown.selectedIndex].value; if( url.charAt(0) != '#' && url != "" ) { window.open( url ); } } function send() { var win = window.open('about:blank', "TippKlick", "width=960,height=550,scrollbars=no"); win.blur(); window.focus(); } function openNewPortalTipp( lng ) { if( lng == "DE" ) { var win = window.open('/mondibp/DE/portal/tippklick/tipp.aspx', "TippKlick", "width=960,height=550,scrollbars=no"); } if( lng == "EN" ) { var win = window.open('/mondibp/EN/portal/tippklick/tipp.aspx', "TippKlick", "width=960,height=550,scrollbars=no"); } } function openNewTipp() { var win = window.open('/mondibp/DE/deutschland/tippklick/tippen.aspx', "TippKlick", "width=960,height=550,scrollbars=no"); } function showVerlauf() { var url = "/mondibp/DE/deutschland/tippklick/tippen.aspx?showVerlauf=true"; var win = window.open(url, "TippKlick", "width=960,height=550,scrollbars=no"); } function showVerlaufPortal( lng ) { var url = "/mondibp/DE/portal/tippklick/tipp.aspx?showVerlauf=true"; if( lng == "EN" ) { url = "/mondibp/EN/portal/tippklick/tipp.aspx?showVerlauf=true"; } var win = window.open(url, "TippKlick", "width=960,height=550,scrollbars=no"); } function showTipp( userId ) { var url = "/mondibp/DE/deutschland/tippklick/tippen.aspx?userId="+userId; var win = window.open(url, "TippKlick", "width=960,height=550,scrollbars=no"); } function showTippPortal( userId, lng ) { var url = "/mondibp/DE/portal/tippklick/tipp.aspx?userId="+userId; if( lng == "EN" ) { url = "/mondibp/EN/portal/tippklick/tipp.aspx?userId="+userId; } var win = window.open(url, "TippKlick", "width=960,height=550,scrollbars=no"); } function changeStyle( id, style ) { if( document.getElementById( id ) ) { document.getElementById( id ).className = style; } } function switchImage() { if (document.getElementById("teaser_1777")) { if (lng == "DE") { document.getElementById("teaser_1777").src = "/uploads/teaserNeox_after_de.jpg"; } else { document.getElementById("teaser_1777").src = "/uploads/teaserNeox_after_en.jpg"; } } } function openUpload() { document.getElementById("uploadPanel").style.display = "block"; } function ShowOrHideOptions(layerId) { if (document.getElementById(layerId)) { layer = document.getElementById(layerId); if (layer.style.display == "none" || layer.style.display == "") { layer.style.display = "block"; } else { layer.style.display = "none"; } } showHideClickWasClicked = true; } var selectOptionsName = "lngOptions"; var showHideClickWasClicked = false; document.onclick = hideSelectOptions; function hideSelectOptions() { if (!showHideClickWasClicked) { if (document.getElementById(selectOptionsName)) { layer = document.getElementById(selectOptionsName); if (layer.style.display == "block" || layer.style.display == "") { layer.style.display = "none"; } } } showHideClickWasClicked = false; }