bb=-1; function changePic() { if(bb-1 && a.elements[x].value=="") { feld = a.elements[x].name; alert(feld+" ist leer oder nicht korrekt eingetragen!"); return false; } } } browser = navigator.appName; version = navigator.appVersion; browser_version = navigator.userAgent.toLowerCase(); os = navigator.platform; ie = "Microsoft Internet Explorer"; nn = "Netscape"; function check() { var str = document.form.email.value if (document.form.email.value.indexOf ('@', 0) == -1 || str.length < 6 || str.length > 30 || document.form.email.value.indexOf ('.',0) == -1){ alert("\nBitte geben Sie eine gueltige e-Mail-Adresse ein!"); document.form.email.select(); document.form.email.focus(); return false; } } NS4 = (document.layers) ? true : false; IE4 = (document.all && !document.getElementById) ? true : false; IE5 = (document.all && document.getElementById) ? true : false; NS6 = (!document.all && document.getElementById) ? true : false; var a; function mOver(cell,color,hoverClass){ if(IE5 || NS6){ cell.setAttribute("bgColor",color); cell.style.cursor = 'pointer'; if(cell.tagName=="TD"){ subcell = cell; }else{ subcell = cell.rows[0].cells[0]; } if(subcell.childNodes[0].tagName!="A"){ subcell = cell.rows[0].cells[1]; } if(NS6){ subcell.childNodes[0].setAttribute("class",hoverClass); }else{ subcell.childNodes[0].setAttribute("className",hoverClass); } } } function mOut(cell,color,outClass) { if(IE5 || NS6){ cell.setAttribute("bgColor",color); cell.style.cursor = 'default'; if(cell.tagName=="TD"){ subcell = cell; }else{ subcell = cell.rows[0].cells[0]; } if(subcell.childNodes[0].tagName!="A"){ subcell = cell.rows[0].cells[1]; } if(NS6){ subcell.childNodes[0].setAttribute("class",outClass); }else{ subcell.childNodes[0].setAttribute("className",outClass); } } } function mClick(cell,color){ if(IE5 || NS6){ tName = cell.tagName; if (tName=="TABLE"){ subcell = cell.rows[0].cells[0]; chillds = subcell.childNodes.length-1; if(subcell.childNodes[chillds].tagName == "A"){ hrefs = subcell.childNodes[chillds].href; }else{ subcell = cell.rows[0].cells[1]; chillds = subcell.childNodes.length-1; hrefs = subcell.childNodes[chillds].href; } targets = subcell.childNodes[chillds].target; if(targets!="" && targets!="_self"){ window.open(hrefs,''); }else{ window.location.href=hrefs; } } else{ chillds = cell.childNodes.length-1; hrefs = cell.childNodes[chillds].href; window.location.href=hrefs; } } } function logwin(){ x=screen.availHeight; y=screen.availWidth windo = window.open('','fenster','width=700,height=550,left=0,top=0,scrollbars=yes'); } function locMail(addr,subj){ addr = addr.replace("79","."); addr = addr.replace("89","@"); location.href= "mailto:"+addr+"?subject="+subj; } function mailer(s){ location.href=s; } function firmMail(message){ location.href= "mailto:info@betagtenzentren-emmen.ch?subject="+message; } function scroll(){ g = document.getElementById("bottom_menu1"); z= g.offsetTop; hoehe_scroll = document.body.scrollHeight; unterschied = hoehe_scroll-xx; } function timeri(s){ if(IE4){ elm = document.all[s];if(elm)elm.style.visibility="hidden"; } if(IE5 || NS6){ elm = document.getElementById(s);if(elm)elm.style.visibility="hidden"; } } function newWindow(href,name,settings){ window.open(href,name,settings); } function grossbild(t,u,v,y,x){ if(NS4 || IE4){ grossbild2(t,u,v,y,x); } else{ grossbildNew(t,u,v,y,x); } } function grossbildNew(t,u,v,y,x){ bild = "images/intelli/"+t; weite = parseInt(y); hoehe = parseInt(x); if(NS4){ elm = document.layers["showImageLayer"]; } if(IE4){ elm = document.all["showImageLayer"]; } if(IE5 || NS6){ elm = document.getElementById("showImageLayer"); } if(u==""){ u="Bild"; } if(IE4 || IE5 || NS6){ elm.style.visibility = 'hidden'; elm.style.height = 1; elm.style.width = 1; elm.style.backgroundImage = "url("+ bild +")"; elm.innerHTML = "
 "+u+"x
"; elm.onmousedown = doMove; elm.onmouseup = stopMove; elm.style.borderTop = '1px dotted #AFAFAF'; elm.style.borderRight = '1px dotted #5F5F5F'; elm.style.borderBottom = '1px dotted #2F2F2F'; elm.style.borderLeft = '1px dotted #9F9F9F'; document.onmousemove = FirstPos; document.onclick = FirstPos; elm.style.height = hoehe; elm.style.width = weite; } if(NS4){ elm.visibility = 'hidden'; elm.height = 1; elm.width = 1; elm.backgroundImage = "url("+ bild +")"; elm.innerHTML = "
 "+u+"x
"; elm.onmousedown = doMove; elm.onmouseup = stopMove; elm.borderTop = '1px dotted #AFAFAF'; elm.borderRight = '1px dotted #5F5F5F'; elm.borderBottom = '1px dotted #2F2F2F'; elm.borderLeft = '1px dotted #9F9F9F'; document.onmousemove = FirstPos; document.onclick = FirstPos; elm.height = hoehe; elm.width = weite; } } nw=0; nh=0; function slideIt(){ faktor = weite/hoehe; if(nw < weite-20){ aw=nw+20; nw=nw+20; } if(nh < hoehe-10){ nh=nh+10; ah=nh+10; } if(NS4){ elm.width = aw; elm.height= ah; } if(IE4){ elm.style.pixelWidth = aw; elm.style.pixelHeight= ah; } if(IE5 || NS6){ elm.style.width = aw; elm.style.height= ah; } timeouter = setTimeout("slideIt()",1); if(nw >=weite-20 && nh >= hoehe-10){ clearTimeout(timeouter);nw=0;nh=0; } } function FirstPos(Ereignis){ if(document.layers){ posX = Ereignis.pageX; posY = Ereignis.pageY; document.layers["showImageLayer"].left= posX-(weite/2); document.layers["showImageLayer"].top = posY-(hoehe/2); } else if(document.getElementById){ if(IE5){ posX = event.clientX; posY = event.clientY + document.body.scrollTop; }else{ posX = Ereignis.pageX; posY = Ereignis.pageY; } document.getElementById("showImageLayer").style.left = posX-(weite/2); document.getElementById("showImageLayer").style.top = posY-(hoehe/2); } else if(document.all){ posX = window.event.clientX; posY = window.event.clientY; document.all["showImageLayer"].pixelLeft= posX-(weite/2); document.all["showImageLayer"].pixelTop= posY-(hoehe/2); } document.onmousemove = ''; document.onclick = ''; elm.style.visibility = 'visible'; slideIt(); } function makePos(Ereignis){ if(document.layers){ posX = Ereignis.pageX; posY = Ereignis.pageY; document.layers["showImageLayer"].left= posX-(weite/2); document.layers["showImageLayer"].top = posY-(hoehe/2); } else if(document.getElementById){ if(IE5){ posX = event.clientX; posY = event.clientY + document.body.scrollTop; }else{ posX = Ereignis.pageX; posY = Ereignis.pageY; } document.getElementById("showImageLayer").style.left = posX-(weite/2); document.getElementById("showImageLayer").style.top = posY-(hoehe/2); } else if(document.all){ posX = window.event.clientX; posY = window.event.clientY; document.all["showImageLayer"].pixelLeft= posX-(weite/2); document.all["showImageLayer"].pixelTop= posY-(hoehe/2); } } function stopMove(){ document.onmousemove = ''; } function doMove(){ document.onmousemove = makePos; } function grossbild2(t,u,v,y,x){ if(IE4){ weite = parseInt(y)+8; hoehe = parseInt(x)+47; } else{ weite = parseInt(y)+10; hoehe = parseInt(x)+30; } w = window.open('','fenster','width='+ weite +',height='+ hoehe+',resizable=yes,statusbar=no'); w.resizeTo(weite,hoehe); if(u==""){u="Bild";} w.document.open(); w.document.write(''+u+''); w.document.write('
'+ u +''); w.document.write('
'); w.document.close(); } function go_url(theurl,ziel){ if(ziel=="1") {w = window.open();} if(ziel=="0") {top.location.href='theurl';} } function formchecking(form){ str = form.elements['search'].value; if(str==""){ alert("Bitte geben Sie einen Suchbegriff ein");return false; } } function tab_id(){} function tdd(){}