function showFindLocation(){var a=PathToRoot+"LocationLookup.aspx";showPopWin(a,400,525,reloadLocations,true);return false}function reloadLocations(){return false}var eventTypeTipShowing=false;function showFindEventTypes(){if(!eventTypeTipShowing){hideLocationFilters();hideCalendarFilters();var a=Dea.Get(eventTypesDiv);SetCurrentPos(eventTypesDiv);a.style.visibility="visible";eventTypeTipShowing=true}return false}function showAddEventType(){var a=Dea.Get(eventTypeDiv);SetCurrentPos(eventTypeDiv);a.style.visibility="visible";return false}function hideAddEventType(){var a=Dea.Get(eventTypeDiv);a.style.visibility="hidden";return false}var locationTipShowing=false;function showFindLocation(){if(!locationTipShowing){hideEventTypeFilters();hideCalendarFilters();var a=Dea.Get(locationsDiv);SetCurrentPos(locationsDiv);a.style.visibility="visible";locationTipShowing=true}return false}function showAddLocation(){var a=Dea.Get(showlocationDiv);SetCurrentPos(showlocationDiv);a.style.visibility="visible";return false}function hideAddLocation(){var a=Dea.Get(showlocationDiv);a.style.visibility="hidden";return false}function showAddToCalOptions(){var a=Dea.Get(showAddToCalOptionsDiv);SetCurrentPos(showAddToCalOptionsDiv);a.style.visibility="visible";return false}function hideAddToCalOptions(){var a=Dea.Get(showAddToCalOptionsDiv);a.style.visibility="hidden";return false}function showAddCustomHint(){var a=Dea.Get(showCusotmFieldDiv);SetCurrentPos(showCusotmFieldDiv);a.style.visibility="visible";return false}function hideAddCustomHint(){var a=Dea.Get(showCusotmFieldDiv);a.style.visibility="hidden";return false}var calTipShowing=false;function showFindCalendars(){if(!calTipShowing){hideEventTypeFilters();hideLocationFilters();hideLocationLookupFilters();hideCustomFieldLookupFilters();var a=Dea.Get(calendarsDiv);SetCurrentPos(calendarsDiv);a.style.visibility="visible";calTipShowing=true}return false}var locationLookupTipShowing=false;function showFindLocationLookup(){if(!locationLookupTipShowing){hideCalendarFilters();hideCustomFieldLookupFilters();var a=Dea.Get(locationLookupDiv);SetCurrentPos(locationLookupDiv);a.style.visibility="visible";Dea.setDisplay(locationLookupId,"");locationLookupTipShowing=true}return false}var customFieldTipShowing=false;function showFindCustomFieldsLookup(a){if(!customFieldTipShowing){hideLocationLookupFilters();hideCalendarFilters();customFieldNum=a;var b=Dea.Get(customFieldLookupDiv);SetCurrentPos(customFieldLookupDiv);b.style.visibility="visible";Dea.setDisplay(customFieldLookupId,"");customFieldTipShowing=true}return false}var locationLookupDiv="";function hideLocationLookupFilters(){if(locationLookupDiv!==""&&Dea.Get(locationLookupDiv)){var a=Dea.Get(locationLookupDiv);a.style.visibility="hidden";Dea.setDisplay(locationLookupId,"none");locationLookupTipShowing=false}return false}var customFieldLookupDiv="";function hideCustomFieldLookupFilters(){if(customFieldLookupDiv!==""&&Dea.Get(customFieldLookupDiv)){var a=Dea.Get(customFieldLookupDiv);a.style.visibility="hidden";Dea.setDisplay(customFieldLookupId,"none");customFieldTipShowing=false}return false}var mcEventTypeIds="",eventTypesDiv="";function hideEventTypeFilters(){if(eventTypesDiv!==""&&Dea.Get(eventTypesDiv)){var a=Dea.Get(eventTypesDiv);a.style.visibility="hidden";eventTypeTipShowing=false}return false}function checkEventType(d,c){if(Dea.Get(d.id).checked)addEventTypeId(c);else{var b=mcEventTypeIds.split(",");mcEventTypeIds="";for(var a=0;a<b.length;a++)b[a]!==c&&addEventTypeId(b[a])}return false}function addEventTypeId(a){if(mcEventTypeIds.length==0)mcEventTypeIds=a;else{for(var d=mcEventTypeIds.split(","),c=false,b=0;b<d.length;b++)if(d[b]==a)c=true;if(!c)mcEventTypeIds+=","+a}Dea.Get(sEventTypeIds).value=mcEventTypeIds}var mcLocations="";function checkLocations(d,c){if(Dea.Get(d.id).checked)addLocationId(c);else{var b=mcLocations.split(",");mcLocations="";for(var a=0;a<b.length;a++)b[a]!==c&&addLocationId(b[a])}return false}function addLocationId(a){if(mcLocations.length==0)mcLocations=a;else{for(var d=mcLocations.split(","),c=false,b=0;b<d.length;b++)if(d[b]==a)c=true;if(!c)mcLocations+=","+a}Dea.Get(sLocationIds).value=mcLocations}var locationsDiv="";function hideLocationFilters(){if(locationsDiv!==""&&Dea.Get(locationsDiv)){var a=Dea.Get(locationsDiv);a.style.visibility="hidden";locationTipShowing=false}return false}var mcCalendars="",mcCalendarNames="";function checkCalendars(d,c){if(Dea.Get(d.id).checked)addCalPopId(c);else{var b=mcCalendars.split(",");mcCalendars="";for(var a=0;a<b.length;a++)b[a]!==c&&addCalPopId(b[a])}return false}function checkCalendars(e,d,c){if(Dea.Get(e.id).checked){addCalPopId(d);addCalName(c)}else{var b=mcCalendars.split(",");mcCalendars="";mcCalendarNames="";for(var a=0;a<b.length;a++)if(b[a]!==d){addCalPopId(b[a]);addCalName(c)}}return false}function addCalPopId(a){if(mcCalendars.length==0)mcCalendars=a;else{for(var d=mcCalendars.split(","),c=false,b=0;b<d.length;b++)if(d[b]==a)c=true;if(!c)mcCalendars+=","+a}try{Dea.Get(scalendarIds).value=mcCalendars}catch(e){}}function addCalName(a){if(mcCalendarNames.length==0)mcCalendarNames=a;else{for(var d=mcCalendarNames.split(","),c=false,b=0;b<d.length;b++)if(d[b]==a)c=true;if(!c)mcCalendarNames+=","+a}}var calendarsDiv="";function hideCalendarFilters(){if(calendarsDiv!==""&&Dea.Get(calendarsDiv)){var a=Dea.Get(calendarsDiv);a.style.visibility="hidden";calTipShowing=false}return false}function selectValueSet(b,c){var a=Dea.Get(b);if(a!==null)for(index=0;index<a.length;index++)if(a[index].value==c)a.selectedIndex=index}function addMultipleSelected(b,c){var a=Dea.Get(b);for(i=0;i<a.length;i++)if(a[i].value==-2)return;a.options[a.options.length]=new Option(c,-2,false,false);for(index=0;index<a.length;index++)if(a[index].value==-2)a.selectedIndex=index}function removeSelectValue(b,c){var a=Dea.Get(b);for(index=0;index<a.length;index++)if(a[index].value==c)a.options[index]=null}function showRemindersLookup(){var a=Dea.Get(eventReminderDiv);SetCurrentPos(eventReminderDiv);a.style.visibility="visible";return false}function hideReminderLookup(){var a=Dea.Get(eventReminderDiv);a.style.visibility="hidden";return false}
