function selectDay(dateString) { var cbsf = document.getElementById('cb-search-form'); cbsf.startDate.value = dateString; cbsf.endDate.value = dateString; cbsf.submit(); } function selectRange() { var cbsf = document.getElementById('cb-search-form'); var splitstart = cbsf.startDate.value.split("."); cbsf.startDate.value = splitstart[2]+'-'+splitstart[1]+'-'+splitstart[0]; var splitend = cbsf.endDate.value.split("."); cbsf.endDate.value = splitend[2]+'-'+splitend[1]+'-'+splitend[0]; cbsf.submit(); } function selectMonth(dateString) { tmpstr = new String(dateString); var splits = tmpstr.split(","); var cbsf = document.getElementById('cb-search-form'); cbsf.startDate.value = splits[0]; cbsf.endDate.value = splits[1]; cbsf.submit(); } function getCity(region,active) { $("div#citySelect").load( "get_selectbox_data.php", { regionId: region, activeId: active } ); } function openAdmin(account, id_event_date, inifile) { if (inifile == '') inifile = 'default.ini'; var site = 'http://cb-event.de/login.php?account=' + account+'&inifile='+inifile+'&eventDateId=' + id_event_date; window.open(site,'popupAdmin','width=800,height=510,top=10,top=10'); } function useCalendar() { var checked = ""; if($('#highlight').attr('checked')) { checked = '&highlight=yes'; } window.location.href = ('?startDate='+$('#startDate').attr('value')+'&endDate='+$('#endDate').attr('value')+'&event_category='+$('#event_category').attr('value')+'&event_region='+$('#event_region').attr('value')+'&event_city='+$('#event_city').attr('value')+'&event_city_range='+$('#event_city_range').attr('value')+checked); } function submitWeek(dateFrom, dateTo) { var cbsf = document.getElementById('cb-search-form'); cbsf.startDate.value = dateFrom; cbsf.endDate.value = dateTo; cbsf.submit(); } function showHideEvents() { if(document.getElementById('toggleDiv').style.display == 'none') document.getElementById('toggleDiv').style.display = 'block'; else document.getElementById('toggleDiv').style.display = 'none'; } function changeMonth(dateString) { tmpString = new String(dateString); var splits = tmpString.split(','); var start = splits[0]; var end = splits[1]; document.location.href = '?startDate='+start+'&endDate='+end+'&event_category=0&event_region=0&event_city=0&event_city_range=0'; } function displayImage(url,w,h, title, copyright, photographer, description) { var params='dependent=yes,scrollbars=auto,toolbar=no,resizable=yes'; if(typeof w=="undefined"||w>775) w=775; if(typeof h=="undefined"||h>560) h=560; params+=',width='+(w+25)+',height='+(h+45); var address = encodeURI(url+'&title='+title+'©right='+copyright+'&photographer='+photographer+'&description='+description); top.imageWindow=window.open(address,'KulturportalImage',params); top.imageWindow.focus(); }