function Contact_Type_Select(fm){ if(fm){ document.fmContactType.submit(); } return false; } function Contact_Default(fm){ if(fm.ContactMailName.value==""){ alert("Bitte geben Sie Ihren Namen an."); fm.ContactMailName.focus(); }else if(fm.ContactMailEMail.value==""){ alert("Bitte geben Sie Ihre Adresse an."); fm.ContactMailEMail.focus(); }else if(fm.ContactMailEMail.value!=""&&fm.ContactMailEMail.value.search(/[a-z|A-Z|0-9|_|\-|\.]+?@[a-z|A-Z|0-9|_|\-|\.]+?\.[a-z|A-Z][a-z|A-Z]+?/)==-1){ alert("Bitte geben Sie eine korrekte Adresse an."); fm.ContactMailEMail.focus(); }else if(fm.ContactMailText.value==""){ alert("Bitte geben Sie einen Text an."); fm.ContactMailText.focus(); }else if(fm.captcha_code.value==""){ alert("Geben Sie den Code auf dem Bild ein."); fm.captcha_code.focus(); }else{ fm.submit(); } } function Contact_Press(fm){ if(fm.ContactMailName.value==""){ alert("Bitte geben Sie Ihren Namen an."); fm.ContactMailName.focus(); }else if(fm.ContactMailEMail.value==""){ alert("Bitte geben Sie Ihre Adresse an."); fm.ContactMailEMail.focus(); }else if(fm.ContactMailEMail.value!=""&&fm.ContactMailEMail.value.search(/[a-z|A-Z|0-9|_|\-|\.]+?@[a-z|A-Z|0-9|_|\-|\.]+?\.[a-z|A-Z][a-z|A-Z]+?/)==-1){ alert("Bitte geben Sie eine korrekte Adresse an."); fm.ContactMailEMail.focus(); }else if(fm.ContactMailText.value==""){ alert("Bitte geben Sie einen Text an."); fm.ContactMailText.focus(); }else if(fm.ContactMailPressMedium.value==""){ alert("Bitte geben Sie ein Medium an."); fm.ContactMailPressMedium.focus(); }else if(fm.ContactMailPressWeb.value==""){ alert("Bitte geben Sie Web an."); fm.ContactMailPressWeb.focus(); }else if(fm.captcha_code.value==""){ alert("Geben Sie den Code auf dem Bild ein."); fm.captcha_code.focus(); }else{ fm.submit(); } } function Contact_Booking(fm){ if(fm.ContactEventCategoryID.value==0){ alert("Bitte geben Sie die Art der Veranstaltung an."); fm.ContactEventCategoryID.focus(); }else if(fm.ContactEventName.value==""){ alert("Bitte geben Sie den Namen der Veranstaltung an."); fm.ContactEventName.focus(); }else if(fm.ContactEventDate.value==""){ alert("Bitte geben Sie das Datum der Veranstaltung an."); fm.ContactMailEMail.focus(); }else if(fm.ContactEventFee.value==""){ alert("Bitte geben Sie das Gagenangebot an."); fm.ContactEventFee.focus(); }else if(fm.ContactEventTicketTargetPrice.value==""){ alert("Bitte geben Sie den geplanten Ticketpreis Vorverkauf an."); fm.ContactEventTicketTargetPrice.focus(); }else if(fm.ContactEventCompany.value==""){ alert("Bitte geben Sie die Firma an."); fm.ContactEventCompany.focus(); }else if(fm.ContactEventUserName.value==""){ alert("Bitte geben Sie ihren Nachnamen an."); fm.ContactEventUserName.focus(); }else if(fm.ContactEventUserFirstName.value==""){ alert("Bitte geben Sie ihren Vornamen an."); fm.ContactEventUserFirstName.focus(); }else if(fm.ContactEventUserStreet.value==""){ alert("Bitte geben Sie ihre Strasse an."); fm.ContactEventUserStreet.focus(); }else if(fm.ContactEventUserZIP.value==""){ alert("Bitte geben Sie ihre PLZ an."); fm.ContactEventUserZIP.focus(); }else if(fm.ContactEventUserCity.value==""){ alert("Bitte geben Sie ihre Stadt an."); fm.ContactEventUserCity.focus(); }else if(fm.ContactEventUserPhone.value==""){ alert("Bitte geben Sie Telefon/Mobil an."); fm.ContactEventUserPhone.focus(); }else if(fm.ContactEventUserEMail.value==""){ alert("Bitte geben Sie Ihre Adresse an."); fm.ContactEventUserEMail.focus(); }else if(fm.ContactEventUserEMail.value!=""&&fm.ContactEventUserEMail.value.search(/[a-z|A-Z|0-9|_|\-|\.]+?@[a-z|A-Z|0-9|_|\-|\.]+?\.[a-z|A-Z][a-z|A-Z]+?/)==-1){ alert("Bitte geben Sie eine korrekte Adresse an."); fm.ContactEventUserEMail.focus(); }else if(fm.ContactEventLocationName.value==""){ alert("Bitte geben Sie den Name des Veranstaltungsortes an."); fm.ContactEventLocationName.focus(); }else if(fm.ContactEventLocationStreet.value==""){ alert("Bitte geben Sie die Strasse des Veranstaltungsortes an."); fm.ContactEventLocationStreet.focus(); }else if(fm.ContactEventLocationZIP.value==""){ alert("Bitte geben Sie die PLZ des Veranstaltungsortes an."); fm.ContactEventLocationZIP.focus(); }else if(fm.ContactEventLocationCity.value==""){ alert("Bitte geben Sie den Ort des Veranstaltungsortes an."); fm.ContactEventLocationCity.focus(); }else if(fm.ContactEventLocationCapacity.value==""){ alert("Bitte geben Sie die Kapazität des Veranstaltungsortes an."); fm.ContactEventLocationCapacity.focus(); }else{ fm.submit(); } } function Newsletter_Default(fm,intNewsletterCategories){ boolSelectedNewsletterCategories = false; if(intNewsletterCategories > 0){ for(i=1;i<=intNewsletterCategories;i++){ if(document.getElementById("NotificationCategoryID_"+i).checked == true){ //alert("NewsletterOn: "+intNewsletterCategories+"-"+i); boolSelectedNewsletterCategories = true; } else{ //alert("NewsletterOff: "+intNewsletterCategories+"-"+i); } } } if(!boolSelectedNewsletterCategories){ alert("Newsletter wählen"); return false; } else{ NewsletterAction = fm.NewsletterTypeID.value; if(NewsletterAction == 0){ if(fm.NewsletterLastName.value==""){ alert("Bitte geben Sie ihren Nachnamen an."); fm.NewsletterLastName.focus(); }else if(fm.NewsletterName.value==""){ alert("Bitte geben Sie ihren Vornamen an."); fm.NewsletterName.focus(); }else if(fm.NewsletterEMail.value==""){ alert("Bitte geben Sie Ihre Adresse an."); fm.NewsletterEMail.focus(); }else if(fm.NewsletterEMail.value!=""&&fm.NewsletterEMail.value.search(/[a-z|A-Z|0-9|_|\-|\.]+?@[a-z|A-Z|0-9|_|\-|\.]+?\.[a-z|A-Z][a-z|A-Z]+?/)==-1){ alert("Bitte geben Sie eine korrekte Adresse an."); fm.NewsletterEMail.focus(); }else if(fm.ContactMobile.value==""){ alert("Bitte geben Sie Ihre Handynummer an."); fm.ContactMobile.focus(); }else{ fm.submit(); } } else if(NewsletterAction == 1){ if(fm.ContactMobile.value==""){ alert("Bitte geben Sie Ihre Handynummer an."); fm.ContactMobile.focus(); }else{ fm.submit(); } } else if(NewsletterAction == 2){ if(fm.NewsletterLastName.value==""){ alert("Bitte geben Sie ihren Nachnamen an."); fm.NewsletterLastName.focus(); }else if(fm.NewsletterName.value==""){ alert("Bitte geben Sie ihren Vornamen an."); fm.NewsletterName.focus(); }else if(fm.NewsletterEMail.value==""){ alert("Bitte geben Sie Ihre Adresse an."); fm.NewsletterEMail.focus(); }else if(fm.NewsletterEMail.value!=""&&fm.NewsletterEMail.value.search(/[a-z|A-Z|0-9|_|\-|\.]+?@[a-z|A-Z|0-9|_|\-|\.]+?\.[a-z|A-Z][a-z|A-Z]+?/)==-1){ alert("Bitte geben Sie eine korrekte Adresse an."); fm.NewsletterEMail.focus(); }else{ fm.submit(); } } } } function fcOpenPopup(WindowOption,PageID,arData,winWidth,winHeight){ if(winWidth == 0 || winWidth > screen.width){ winWidth=screen.width-20; } if(winHeight == 0 || winHeight > screen.height){ winHeight=screen.height-90; } var posY=(screen.width/2)-(winWidth/2); var posX=(screen.height/2)-(winHeight/2); if(WindowOption == "IndexPopup"){ window.open("index_blank.php?PageID="+PageID+"&"+arData[0][0]+"="+arData[0][1]+"","DetailView","width="+winWidth+",height="+winHeight+",location=no,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=no,top="+posX+",left="+posY+""); }else if(WindowOption == "Media"){ window.open("index_blank.php?MediaID="+PageID+"&MediaWidth="+winWidth+"&MediaHeight="+winHeight+"","DetailView","width="+winWidth+",height="+winHeight+",location=no,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=no,top="+posX+",left="+posY+""); }else if(WindowOption == "DirectPopup"){ window.open(""+arData+"","DetailView","width="+winWidth+",height="+winHeight+",location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no,top="+posX+",left="+posY+""); }else if(WindowOption == "0"){ window.open("index_blank.php?PageID="+PageID,"DetailView","width="+winWidth+",height="+winHeight+",location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no,top="+posX+",left="+posY+""); }else if(WindowOption == "1"){ window.open("index_blank.php?PageID="+PageID+"&CustomBgrnd="+arData,"PageView","width="+winWidth+",height="+winHeight+",location=no,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=no,top="+posX+",left="+posY+""); }else if(WindowOption == "2"){ window.open("index_blank.php?PageID="+PageID+"&"+arData[0][0]+"="+arData[0][1]+"","DetailView","width="+winWidth+",height="+winHeight+",location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no,top="+posX+",left="+posY+""); } } function fcVideowindow(WindowID,VideoID){ var VideoWindowWidth=400; var VideoWindowHeight=370; var VideoWindowPosX=(screen.width/2)-(VideoWindowWidth/2); var VideoWindowPosY=(screen.height/2)-(VideoWindowHeight/2); if(WindowID == 1){ window.open("index_blank.php?PageID=17&VideoID="+VideoID,"Video","left="+VideoWindowPosX+",top="+VideoWindowPosY+",width="+VideoWindowWidth+",height="+VideoWindowHeight+",location=no,menubar=no,status=no,toolbar=no,resizable=no,scrollbars=no"); } } function GetVideoExt(strData){ if(strData != ""){ eVideoObject = document.getElementById("idSlider_003_videoobject"); eVideoObject.innerHTML = strData; eContainer = document.getElementById("idSlider_003_video"); eContainer.style.display = "block"; } } function GetVideoInt(strID){ if(strID != ""){ eVideoObject = document.getElementById("idSlider_003_videoobject"); eVideoObject.innerHTML = "
"; ChangeContent("video_nb","idSlider_003_video",1,strID); eContainer = document.getElementById("idSlider_003_video"); eContainer.style.display = "block"; } } function CloseVideo(){ eVideoObject = document.getElementById("idSlider_003_videoobject"); eVideoObject.innerHTML = ""; eContainer = document.getElementById("idSlider_003_video"); eContainer.style.display = "none"; } var objWindowMedia; function fcOpenMedia(MediaID,winWidth,winHeight,arData){ if(winWidth > 0){ winWidth += 20; } if(winHeight > 0){ winHeight += 15; } if(winWidth == 0 || winWidth > screen.width){ winWidth=screen.width-20; } if(winHeight == 0 || winHeight > screen.height){ winHeight=screen.height-90; } var posY=(screen.width/2)-(winWidth/2); var posX=(screen.height/2)-(winHeight/2); if(objWindowMedia){ if(!objWindowMedia.closed){ objWindowMedia.close(); } } MediaWidth = winWidth-20; MediaHeight = winHeight-15; if(Number(MediaID) > 0){ objWindowMedia = window.open("index_blank.php?MediaID="+MediaID+"&MediaWidth="+MediaWidth+"&MediaHeight="+MediaHeight+"","DetailView","width="+winWidth+",height="+winHeight+",location=no,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=no,top="+posX+",left="+posY+""); objWindowMedia.focus(); } } function fcAlbumbrowser(BrowserID,AlbumID){ var AlbumBrowserWidth=950; var AlbumBrowserHeight=600; var AlbumBrowserPosX=(screen.width/2)-(AlbumBrowserWidth/2); var AlbumBrowserPosY=(screen.height/2)-(AlbumBrowserHeight/2); if(BrowserID == 1){ window.open("index_blank.php?PageID=14&AlbumID="+AlbumID,"BilderAlbum","left="+AlbumBrowserPosX+",top="+AlbumBrowserPosY+",width="+AlbumBrowserWidth+",height="+AlbumBrowserHeight+",location=no,menubar=no,status=no,toolbar=no,resizable=no,scrollbars=no"); } } var elBO; function GetAlbum(intID,idContainer,arData){ el = document.getElementById(idContainer); if(el && arData.length > 0){ if(elBO){ elB.style.fontWeight = "normal"; elBO.style.color = "#000000"; } elB = document.getElementById(idContainer+"_"+intID+"_b"); if(elB){ elB.style.fontWeight = "bold"; elB.style.color = "#693a2d"; elBO = elB; } if(el.firstChild){ el.removeChild(el.firstChild); } el = new ImageSlider(idContainer,560,180,arData,0); el.ImagesPreload(); el.SliderCreate(); } return el; } function GetAlbumbrowser(intID,arImageBrowserData){ CloseAlbumbrowser(); eContainer = document.getElementById("idSlider_002_album"); if(arImageBrowserData.length > 0){ el = new ImageBrowser("idSlider_002_albumobject",560,300,arImageBrowserData,0); el.ImagesPreload(); el.BrowserCreate(); } eContainer.style.display = "block"; } function CloseAlbumbrowser(){ eAlbumbrowserObject = document.getElementById("idSlider_002_albumobject"); eAlbumbrowserObject.innerHTML = ""; eContainer = document.getElementById("idSlider_002_album"); eContainer.style.display = "none"; } function GetFile(strType,intID,intSID){ document.location.href = "index_dl.php?t="+strType+"&id="+intID+"&sid="+intSID; //window.open("index_dl.php?t="+strType+"&id="+intID+"&sid="+intSID); } function PressDetail(press_id,container_id,arData,att_id){ if(arData && arData.length > 0 && press_id && Number(press_id) > 0){ arD = arData[press_id]; if(arD){ var cont1 = document.getElementById(container_id+"_press"); var cont2 = document.getElementById(container_id+"_pressobject"); var strHTML = ""; if(cont1 && cont2){ cont1.style.display = "block"; cont1.style.width = "100%"; cont2.style.display = "block"; strHTML += "
"; strHTML += "
"; if(arD["media_src_big"] != ""){ strHTML += " "; } strHTML += "
"; strHTML += "
"; strHTML += "
"+decodeURIComponent(arD["title"])+"
"; if(arD["text"] != ""){ strHTML += "
"+decodeURIComponent(arD["text"])+"
"; } strHTML += "
"; strHTML += " "+arD["att_name"]+"
"; strHTML += " "+arD["att_size"]+"
"; strHTML += "
"; strHTML += "
Download
"; strHTML += "
"; strHTML += "
"; strHTML += "
"; cont2.innerHTML = strHTML; } } } } function PressDetailClose(container_id){ var cont1 = document.getElementById(container_id+"_press"); var cont2 = document.getElementById(container_id+"_pressobject"); if(cont1 && cont2){ cont1.style.display = "none"; cont2.innerHTML = ""; } } var mediaMatcher = new MediaMatcher({ 'screen and (min-width: 0px) and (max-width: 493px)': { 'css': ['config/css/formats.pa1.xs.css.php'] }, 'screen and (min-width: 494px) and (max-width: 781px)': { 'css': ['config/css/formats.pa1.s.css.php'] }, 'screen and (min-width: 782px) and (max-width: 1023px)': { 'css': ['config/css/formats.pa1.m.css.php'] }, //'screen and (min-width: 1024px) and (max-width: 1900px)': { 'screen and (min-width: 1024px)': { 'css': ['config/css/formats.pa1.l.css.php'] } //'screen and (min-width: 1901px)': { //'css': ['config/css/formats.pa1.xl.css.php'] //} }); mediaMatcher.showInfo(false); mediaMatcher.preLoadCss(false); mediaMatcher.dynamicLoadJS(false); mediaMatcher.dynamicLoadCss(true); mediaMatcher.dynamicTriggerObj(false); mediaMatcher.waitBeforeDynamicLoad(25); mediaMatcher.waitForCssIsLoaded(true, 5000); mediaMatcher.tryToSupportNativeMediaQueries(true); mediaMatcher.init();