function jslib_openPopup(URLtoOpen,windowName,width,height,scrolling) { windowFeatures ="menubar=no,scrollbars="+ scrolling +",location=no,favorites=no,resizable=yes,status=no,toolbar=no,directories=no"; winLeft = (screen.width-width)/2; winTop = (screen.height-(height))/2; myWin= window.open(URLtoOpen,windowName,"width=" + width +",height=" + height + ",left=" + winLeft + ",top=" + winTop + "'" + windowFeatures + "'"); } function jslib_openNewWindow(URLtoOpen,windowName) { windowFeatures ="menubar=yes,scrollbars=yes,location=yes,favorites=yes,resizable=yes,status=yes,toolbar=yes,directories=yes"; winLeft = (screen.width-999)/2; winTop = (screen.height-(604))/2; myWin= window.open(URLtoOpen,windowName,"width=" + 999 +",height=" + 604 + ",left=" + winLeft + ",top=" + winTop + "'" + windowFeatures + "'"); } function priority(index, to, modul) { if (modul == 1) { var list = document.edit.elements['infossel[]']; } else if (modul == 2) { var list = document.edit.elements['gallerysel[]']; } else if (modul == 3) { var list = document.edit.elements['terminesel[]']; } var element = list.value; var total = list.options.length-1; if (index == -1) return false; if (to == +1 && index == total) return false; if (to == -1 && index == 0) return false; var items = new Array; var values = new Array; for (i = total; i >= 0; i--) { items[i] = list.options[i].text; values[i] = list.options[i].value; } for (i = total; i >= 0; i--) { if (index == i) { list.options[i + to] = new Option(items[i],values[i], 0, 1); list.options[i] = new Option(items[i + to], values[i + to]); i--; } else { list.options[i] = new Option(items[i], values[i]); } } } function switchDisplay(id) { if( e=document.getElementById(id)) { display = e.style.display; e.style.display = (display=="none") ? "" : "none"; } return false; } function setTypeTime( e) { val = e.value; if(val.indexOf(':') == -1) { val = convertFromDecimal(val) val = convertToTime(val); e.value = val; } } function changeLanguage() { s = document.getElementById("frontend_lang"); place_to_go = s.value; if (s.selectedIndex == 0) { document.location.href = place_to_go; } else { document.location.href = place_to_go; } } function Delete() { var counter = 0; for(var x=0;x0) { if(confirm('Wollen Sie wirklich ' + unescape('l%F6schen') + '?')) { document.edit.action.value='MultipleDelete'; document.edit.submit(); } } } function markAllEntries() { for(var x=0;x=0)a = eval(a); if(b.indexOf('/')>=0)b = eval(b); return a/1 - b/1; } function sortString(a, b) { if ( a.toUpperCase() < b.toUpperCase() ) return -1; if ( a.toUpperCase() > b.toUpperCase() ) return 1; return 0; } function cancelTableWidgetEvent() { return false; } function sortTable() { if(!tableWidget_okToSort)return; tableWidget_okToSort = false; /* Getting index of current column */ var obj = this; var indexThis = 0; while(obj.previousSibling){ obj = obj.previousSibling; if(obj.tagName=='TD')indexThis++; } var images = this.getElementsByTagName('IMG'); if(this.getAttribute('direction') || this.direction){ direction = this.getAttribute('direction'); if(navigator.userAgent.indexOf('Opera')>=0)direction = this.direction; if(direction=='ascending'){ direction = 'descending'; this.setAttribute('direction','descending'); this.direction = 'descending'; }else{ direction = 'ascending'; this.setAttribute('direction','ascending'); this.direction = 'ascending'; } }else{ direction = 'ascending'; this.setAttribute('direction','ascending'); this.direction = 'ascending'; } if(direction=='descending'){ images[0].style.display='inline'; images[0].style.visibility='visible'; images[1].style.display='none'; }else{ images[1].style.display='inline'; images[1].style.visibility='visible'; images[0].style.display='none'; } var tableObj = this.parentNode.parentNode.parentNode; var tBody = tableObj.getElementsByTagName('TBODY')[0]; var widgetIndex = tableObj.id.replace(/[^\d]/g,''); var sortMethod = tableWidget_arraySort[widgetIndex][indexThis]; // N = numeric, S = String if(activeColumn[widgetIndex] && activeColumn[widgetIndex]!=this){ var images = activeColumn[widgetIndex].getElementsByTagName('IMG'); images[0].style.display='none'; images[1].style.display='inline'; images[1].style.visibility = 'hidden'; if(activeColumn[widgetIndex])activeColumn[widgetIndex].removeAttribute('direction'); } activeColumn[widgetIndex] = this; var cellArray = new Array(); var cellObjArray = new Array(); for(var no=1;no=0;no--){ for(var no2=0;no2=0){ obj.parentNode.style.overflowY = 'auto'; } tableWidget_arraySort[tableWidget_tableCounter] = sortArray; if(width.indexOf('%')>=0){ obj.style.width = width; obj.parentNode.style.width = width; }else{ obj.style.width = width + 'px'; obj.parentNode.style.width = width + 'px'; } if(height.indexOf('%')>=0){ obj.style.height = height; obj.parentNode.style.height = height; }else{ obj.style.height = height + 'px'; obj.parentNode.style.height = height + 'px'; } obj.id = 'tableWidget' + tableWidget_tableCounter; addEndCol(obj); obj.cellSpacing = 0; obj.cellPadding = 0; obj.className='tableWidget'; var tHead = obj.getElementsByTagName('THEAD')[0]; var cells = tHead.getElementsByTagName('TD'); for(var no=0;no=0){ obj.parentNode.style.overflow = 'auto'; } } for(var no=1;no=0)return; this.className='tableWidget_dataRollOver'; if(document.all){ // I.E fix for "jumping" headings var divObj = this.parentNode.parentNode.parentNode; var tHead = divObj.getElementsByTagName('TR')[0]; tHead.style.top = divObj.scrollTop + 'px'; } } function deHighlightDataRow() { if(navigator.userAgent.indexOf('Opera')>=0)return; this.className=null; if(document.all){ // I.E fix for "jumping" headings var divObj = this.parentNode.parentNode.parentNode; var tHead = divObj.getElementsByTagName('TR')[0]; tHead.style.top = divObj.scrollTop + 'px'; } } //////////////////////////// function cursorform() { document.login.login.focus(); } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i