/* Scripte fuer C::Web-Anbindung */ /* AMMMa AG */ var wins = new Array(); if (!document.layers&&!document.all){ event=""; } /* Zeige Tooltip ueber Objekt */ /* Bsp: showToolTip(this,event,' tooltiptext ') */ function showToolTip(current,e,text){ if (document.all) { thetitle = text.split('
') if (thetitle.length>1) { thetitles = '' for (i = 0; i < thetitle.length; i++) { thetitles += thetitle[i]; } current.title = thetitles; } else { current.title = text; } } else { if (document.layers){ document.tooltip.document.write('' + text + ''); document.tooltip.document.close(); document.tooltip.left = current.pageX + 5; document.tooltip.top = current.pageY + 5; document.tooltip.visibility = "show"; } } } function closeToolTip(){ if (document.layers){ document.tooltip.visibility="hidden"; } } function openPopupWindow(script, args) { if (!script) { w = window.open(args,"CWebPopup", "width=400,height=300,scrollbars,resizable,menubar"); } else { w = window.open("popup.icom?" + args,"CWebPopup", "width=400,height=300,scrollbars,resizable,menubar"); } w.focus(); } function openSizedPopupWindow(id, args, props) { openWindow('popup.icom' + ((id || args) ? '?' + (id ? 'id='+id+(args ? '&' : '') : '') + (args ? args : '') : ''), "CWebPopup" + id, props); } function openChat() { w = window.open("/home_a/chat.html", "CWebChat", "width=640,height=480,scrollbars,resizable"); w.focus(); } function openFavs(aid,act) { w = window.open('favs' + (aid? ',aid,'+aid :'') + (act? ',act,'+act :'')+'.html', "CWebFavs", "width=500,height=500,scrollbars,resizable"); w.focus(); } function openForum() { w = window.open("/home_a/forum.html", "CWebForum", "width=640,height=480,scrollbars,resizable"); w.focus(); } function openSitemap(args) { openWindow('sitemap.cw' + (args?'?' + args:''), "CWebSitemap", "width=400,height=400,scrollbars,resizable"); } function openAwareness(args) { openWindow('awareness.html' + (args ? '?'+args : ''), "CWebAwareness", "width=316,height=400,scrollbars,resizable", true); } function openRegistration() { openWindow('register.html', "CWeb-Registration", "width=450,height=580,scrollbars,resizable", true); } function openUseredit() { w = window.open('useredit.html', "CWebUserEdit", "width=500,height=500,scrollbars,resizable"); w.focus(); } function openYP() { openWindow('yp.html', "CWeb-YellowPages", "width=600,height=370,scrollbars,resizable", true); } function openSearch(searchterms, args) { var openstr = 'search.html' + (searchterms ? ('?gl_mode=extended&gl_searchstring='+searchterms+(args ? '&'+args : '')) : (args ? '?'+args : '')); openWindow(openstr, "CWebSuche", "width=516,height=360,scrollbars,resizable"); } function openNewsletter(form) { for(var i = 0; i < form.length; i++) if(form[i].name == 'action' && form[i].checked) u = (form[i].value == 'abonnieren' ? '0' : '1'); openWindow('newsletter.cw?email=' + form.email.value + '&unreg=' + u, 'CWebNewsletter', 'width=440,height=130,scrollbars,resizable'); } function openDownload(id) { openWindow('download.html' + (id ? '?id='+id : ''), "CWebDownload", "width=750,height=450,resizable,scrollbars"); } function openAnnotate(id,aid) { openWindow('/home_a/annotate,id,'+id+',aid,'+aid+'.html', "Anmerkung verfassen", "width=350,height=520,resizable"); } function openAnnotations(id,aid) { openWindow('popup.icom?id='+id+'&selid='+aid, "Anmerkungen lesen", "width=350,height=520,resizable"); } function openMailer() { openWindow('mailer.html', "Mail an Kontakt", "width=350,height=520,resizable"); } function openMessages(args) { openWindow('nachrichten.html' + (args ? '?'+args : ''), "CWebNachrichten", "width=616,height=300,scrollbars,resizable"); } function openMessage(args) { openWindow('email.html' + (args ? '?'+args : ''), "CWebNachricht", "width=316,height=400,scrollbars,resizable"); } function notifyMessages() { var count = 0; if (count > 0 && confirm('Sie haben ' + count + ' neue Nachricht(en). Möchten Sie diese jetzt lesen?')) { openMessages(); } } function openWindow(url, name, props, focus) { if(wins[name]) wins[name].close(); wins[name] = window.open(url, name, props); if(focus != false) wins[name].focus(); } function loadDocWindow(url, name, props, focus) { if(wins[name]) { wins[name] = window.open(url, name); if(focus != false) wins[name].focus(); } else { openWindow(url, name, props, focus); } } function closeWindow(name) { if(wins[name]) wins[name].close(); }