message="Bitte warten Sie !^"+"Ihre Web-Mail wird verschickt !^"+"Dieses kann je nach Grösse der Anlagen^"+"mehr oder weniger lange dauern.^"+"Eine Nachricht erscheint, wenn Ihre Mail verschickt wurde !^"+"^";scrollSpeed=25;lineDelay=1500;txt="";function scrollText(pos){if(message.charAt(pos)!='^'){txt=txt+message.charAt(pos);window.status=txt;pauze=scrollSpeed;}else{pauze=lineDelay;txt="";if(pos==message.length-1)pos=-1;}pos++;setTimeout("scrollText('"+pos+"')",pauze);}function openbearb(cid){window.location.href=cid;}function opentoform(){var newloc=location.href;newloc=newloc.replace(/index.html/,"form.html");open(newloc,"_self");}var ie=document.all&&document.getElementById;var ns6=document.getElementById&&!document.all;function ietruebody(){return(document.compatMode&&document.compatMode!="BackCompat"&&!window.opera)?document.documentElement:document.body;}function enlmore(which){var position="center";if(ie||ns6){crossobj=document.getElementById("showimage");if(crossobj)crossobj.style.visibility="hidden";crossobj=document.getElementById("showind");pgxoffset=ns6?parseInt(pageXOffset):parseInt(ietruebody().scrollLeft);pgyoffset=ns6?parseInt(pageYOffset):parseInt(ietruebody().scrollTop);if(position=="center"){horzpos=ns6?pageXOffset+window.innerWidth/2-540/2:pgxoffset+ietruebody().clientWidth/2-540/2;vertpos=ns6?pgyoffset+window.innerHeight/2-300/2:pgyoffset+ietruebody().clientHeight/2-300/2-15;vertpos=Math.max(pgyoffset,vertpos);}else{var horzpos=ns6?pgxoffset+event.clientX:pgxoffset+event.clientX;var vertpos=ns6?pgyoffset+event.clientY:pgyoffset+event.clientY;}if(horzpos<0)horzpos=0;crossobj.style.left=horzpos+"px";crossobj.style.top=vertpos+"px";crossobj.innerHTML='<div align="left" id="dragbar"><div align="right" id="dragbar" class="dragbar">Drag Bar &nbsp;&nbsp;&nbsp;&nbsp;<a href="#" onClick="closepreview();return false"><b>close [X]</b></a></div><div><table width="400" border="1"><tr><td style="padding:2px" align="center">'+which+'&nbsp;</td></tr></table></div> </div>';crossobj.style.visibility="visible";return false;}}function closepreview(){crossobj.innerHTML="";crossobj.style.visibility="hidden";}function drag_drop(e){if(ie&&dragapproved){crossobj.style.left=tempx+event.clientX-offsetx+"px";crossobj.style.top=tempy+event.clientY-offsety+"px";}else if(ns6&&dragapproved){crossobj.style.left=tempx+e.clientX-offsetx+"px";crossobj.style.top=tempy+e.clientY-offsety+"px";}}function initializedrag(e){if(ie&&event.srcElement.id=="dragbar"||ns6&&e.target.id=="dragbar"){offsetx=ie?event.clientX:e.clientX;offsety=ie?event.clientY:e.clientY;tempx=parseInt(crossobj.style.left);tempy=parseInt(crossobj.style.top);dragapproved=true;document.onmousemove=drag_drop;}}document.onmousedown=initializedrag;document.onmouseup=new Function("dragapproved=false");function makemail(){var Speicher="Daten-Anfang-->²";var formall=htmlanf;document.forms[0].mEsSaGe.value="";if(!document.forms[0].tOAdReS){alert("Ihre  To Emailadresse fehlt!");return false;}var oki=true;for(var t=0;t<document.forms[0].length;t++){if(document.forms[0].elements[t].name.indexOf("_mUsT")>0){document.forms[0].elements[t].style.backgroundColor="#CCFFFF";if(document.forms[0].elements[t].value==""){document.forms[0].elements[t].style.backgroundColor="#FF9933";oki=false;}}}if(!oki){alert("Orange unterlegte Felder bitte ausfüllen!");return false;}for(var t=0;t<document.forms[0].length;t++){if(document.forms[0].elements[t].name.indexOf("_mUsT")>0){document.forms[0].elements[t].name=document.forms[0].elements[t].name.substring(0,document.forms[0].elements[t].name.indexOf("_mUsT"));}}if(document.forms[0].Zahlmethode){var iskli=false;if(!document.forms[0].Zahlmethode.length){if(document.forms[0].Zahlmethode.checked)iskli=true;}else{for(var t=0;t<document.forms[0].Zahlmethode.length;++t){if(document.forms[0].Zahlmethode[t].checked)iskli=true;}}if(!iskli){alert("Sie haben keine Zahlungsart gewählt!");return false;}}if(document.forms[0].hIdDAdr.value!=""||document.forms[0].hIdDaTum.value!=""){formall=formall+'<tr>\n<td>\n<table width=100% border=0 align=center>\n<tr>';if(document.forms[0].hIdDAdr.value!="")formall=formall+'<td width=90% valign=top>'+document.forms[0].hIdDAdr.value+'</td>';if(document.forms[0].hIdDaTum.value!="")formall=formall+'<td width=10% valign=top nowrap>'+document.forms[0].hIdDaTum.value+'</td>';formall=formall+"</tr></table>\n</td>\n</tr>";if(Rueckant)formall=formall+'<tr>\n<td>\n<br><br><br><br><br>\n</td>\n</tr>';}var ishttweb=false;var iszusa=false;var isart1=false;var ischeck1=false;var ischeck3=false;if(isTeXtRt)updateRTEs();for(var s=6;s<document.forms[0].length;s++){var erg=document.forms[0].elements[s].value;if(document.forms[0].elements[s].name.indexOf("rTe")!=0&&document.forms[0].elements[s].name.indexOf("nOrMaTeX_")!=0){erg=valrepl(document.forms[0].elements[s].value);}var feldpur=valrepl(document.forms[0].elements[s].name);if(document.forms[0].elements[s].name.indexOf("tOAdReS")==0){if(document.forms[0].elements[s].value==""){alert("Ihre TO Mail Adresse ist fehlerhaft oder nicht angegeben!");return false;}document.forms[0].tOmAiL.value=document.forms[0].elements[s].value;}if(document.forms[0].elements[s].name.indexOf("iHrEmAiL_")==0){if(document.forms[0].elements[s].value!=""&&(document.forms[0].elements[s].value.indexOf("@")==-1||document.forms[0].elements[s].value.indexOf(".")==-1)){alert("Ihre Mail Adresse ist fehlerhaft oder nicht angegeben!");return false;}if(document.forms[0].elements[s].value=="")document.forms[0].fRoMaIl.value="Ihr@ticketformmail.er";else document.forms[0].fRoMaIl.value=document.forms[0].elements[s].value;}if(document.forms[0].elements[s].name.indexOf("aNrEdFeLd_")==0&&document.forms[0].elements[s].value!=""){feldpur=feldpur.substring(10);document.forms[0].elements[s].name=feldpur;formall=formall+'<tr>\n<td>\n';if(Rueckant)formall=formall+erg;else formall=formall+'<b>'+feldpur+'&nbsp;:&nbsp;</b>'+erg;formall=formall+'</td>\n</tr>\n';}if(document.forms[0].elements[s].name.indexOf("vOrNaMeFeLd_")==0&&document.forms[0].elements[s].value!=""){feldpur=feldpur.substring(12);document.forms[0].elements[s].name=feldpur;formall=formall+'<tr>\n<td>\n';if(Rueckant)formall=formall+erg;else formall=formall+'<b>'+feldpur+'&nbsp;:&nbsp;</b>'+erg;formall=formall+'</td>\n</tr>\n';}if(document.forms[0].elements[s].name.indexOf("nAcHnAFeLd_")==0&&document.forms[0].elements[s].value!=""){feldpur=feldpur.substring(11);document.forms[0].elements[s].name=feldpur;formall=formall+'<tr>\n<td>\n';if(Rueckant)formall=formall+erg;else formall=formall+'<b>'+feldpur+'&nbsp;:&nbsp;</b>'+erg;formall=formall+'</td>\n</tr>\n';}if(document.forms[0].elements[s].name.indexOf("sTrAsSeFeLd_")==0&&document.forms[0].elements[s].value!=""){feldpur=feldpur.substring(12);document.forms[0].elements[s].name=feldpur;formall=formall+'<tr>\n<td>\n';if(Rueckant)formall=formall+erg;else formall=formall+'<b>'+feldpur+' :&nbsp;</b>'+erg;formall=formall+'</td>\n</tr>\n';}if(document.forms[0].elements[s].name.indexOf("oRtSFeLd_")==0&&document.forms[0].elements[s].value!=""){feldpur=feldpur.substring(9);document.forms[0].elements[s].name=feldpur;formall=formall+'<tr>\n<td>\n';if(Rueckant)formall=formall+'<b>'+erg+'</b>';else formall=formall+'<b>'+feldpur+' :&nbsp;</b>'+erg;formall=formall+'</td>\n</tr>\n';}if(document.forms[0].elements[s].name.indexOf("sUbJeCt_")==0){if(Rueckant)formall=formall+'<tr>\n<td><br><br><br></td>\n</tr>';if(document.forms[0].elements[s].value==""){alert("Sie haben keinen Betreff angegeben!");return false;}document.forms[0].sUbJeCt.value=erg;feldpur=feldpur.substring(8);document.forms[0].elements[s].name=feldpur;formall=formall+'<tr>\n<td>\n<b>'+feldpur+'&nbsp;:&nbsp;</b>'+erg+'</td>\n</tr>\n';}if(document.forms[0].elements[s].name.indexOf("hTtPwEb_")==0&&document.forms[0].elements[s].value!=""){feldpur=feldpur.substring(8);document.forms[0].elements[s].name=feldpur;formall=formall+'<tr>\n<td>\n';if(document.forms[0].elements[s].value.toLowerCase().indexOf("http://")==0)formall=formall+'<b>'+feldpur+'&nbsp;:&nbsp;</b><a href='+document.forms[0].elements[s].value+'>'+document.forms[0].elements[s].value+'</a>';else formall=formall+feldpur+'&nbsp;:&nbsp;<a href=http://'+document.forms[0].elements[s].value+'>'+document.forms[0].elements[s].value+'</a>';if(document.forms[0].elements[s+1].name.indexOf("fRoMmAiL_")!=0)formall=formall+'</td>\n</tr>';else ishttweb=true;}if(document.forms[0].elements[s].name.indexOf("iHrEmAiL_")==0&&document.forms[0].elements[s].value!=""){feldpur=feldpur.substring(9);document.forms[0].elements[s].name=feldpur;if(ishttweb)formall=formall+'&nbsp;&nbsp;&nbsp;&nbsp;';else formall=formall+'<tr>\n<td>\n';formall=formall+'<b>'+feldpur+'&nbsp;:&nbsp;</b><a href=mailto:'+document.forms[0].elements[s].value+'>'+document.forms[0].elements[s].value+'</a></td>\n</tr>\n';ishttweb=false;}if(document.forms[0].elements[s].name.indexOf("zUsAtz_")==0&&document.forms[0].elements[s].value!=""){feldpur=feldpur.substring(7);document.forms[0].elements[s].name=feldpur;formall=formall+'<tr>\n<td>\n<b>'+feldpur+'&nbsp;:&nbsp;</b>'+document.forms[0].elements[s].value;if(document.forms[0].elements[s+1].name.indexOf("zUsAtzPa_")!=0)formall=formall+'</td>\n</tr>';else iszusa=true;}if(document.forms[0].elements[s].name.indexOf("zUsAtzPa_")==0&&document.forms[0].elements[s].value!=""){feldpur=feldpur.substring(9);document.forms[0].elements[s].name=feldpur;if(iszusa)formall=formall+'&nbsp;&nbsp;&nbsp;&nbsp;';else formall=formall+'<tr>\n<td>\n';formall=formall+'<b>'+feldpur+'&nbsp;:&nbsp;</b>'+document.forms[0].elements[s].value+'</td>\n</tr>';iszusa=false;}if(document.forms[0].elements[s].type=="radio"&&document.forms[0].elements[s].checked){formall=formall+'<tr>\n<td>\n<b>'+document.forms[0].elements[s].name+'&nbsp;:&nbsp;</b>'+erg+'</td>\n</tr>\n';}if(document.forms[0].elements[s].name.indexOf("hIdDeN")==0&&document.forms[0].elements[s].value!=""){formall=formall+'<tr>\n<td>\n'+erg+'</td>\n</tr>\n';}if(document.forms[0].elements[s].name.indexOf("uEbEr_")==0&&document.forms[0].elements[s].value!=""){feldpur=feldpur.substring(6);document.forms[0].elements[s].name=feldpur;formall=formall+'<tr>\n<td>\n<b>'+feldpur+'&nbsp;:&nbsp;</b>'+erg+'</td>\n</tr>\n';}if(document.forms[0].elements[s].name.indexOf("nOrMaTeX_")==0&&document.forms[0].elements[s].value!=""){feldpur=feldpur.substring(9);document.forms[0].elements[s].name=feldpur;formall=formall+'<tr>\n<td>\n'+document.forms[0].elements[s].value+'</td>\n</tr>\n';}if(document.forms[0].elements[s].name.indexOf("bild")==0&&document.forms[0].elements[s].value!=""){var neuname=document.forms[0].elements[s].name;neuname=neuname.substring(6);document.forms[0].elements[s].name="bild"+neuname;}if(document.forms[0].elements[s].name.indexOf("rTe")==0){formall=formall+'<tr>\n<td>\n'+erg+'</td>\n</tr>\n';}}formall=formall+htmlend;document.forms[0].mEsSaGe.value=formall;enlmore('<div align="center">Bitte warten Sie !<br>Ihre Web-Mail wird verschickt !<br>Dieses kann je nach Grösse der Anlagen<br>mehr oder weniger lange dauern.<br>Eine Nachricht erscheint, wenn Ihre Mail verschickt wurde !<br>Ist Ihr Anhang zu gross oder Ihre Verbindung bricht ab, erscheint eine Fehlermeldung</div>');scrollText(0);return true;}function resetform(){open("index.html","_self");}function valrepl(repl){while(repl.match(/³/)){repl=repl.replace(/³/,"&sup3;");}while(repl.match(/²/)){repl=repl.replace(/²/,"&sup2;");}while(repl.match(/\|/)){repl=repl.replace(/\|/,"&#x007C;");}while(repl.match("ä")){repl=repl.replace("ä","&auml;");}while(repl.match("ö")){repl=repl.replace("ö","&ouml;");}while(repl.match("ü")){repl=repl.replace("ü","&uuml;");}while(repl.match("Ä")){repl=repl.replace("Ä","&Auml;");}while(repl.match("Ö")){repl=repl.replace("Ö","&Ouml;");}while(repl.match("Ü")){repl=repl.replace("Ü","&Uuml;");}while(repl.match("€")){repl=repl.replace("€","&euro;");}while(repl.match("ß")){repl=repl.replace("ß","&szlig;");}while(repl.match("  ")){repl=repl.replace("  "," &nbsp;");}while(repl.match("\n")){repl=repl.replace("\n","<br>");}while(repl.match("\r")){repl=repl.replace("\r","");}while(repl.match("\"")){repl=repl.replace("\"","&quot;");}return repl;}function getCookieVal(offset){var endstr=document.cookie.indexOf(";",offset);if(endstr==-1)endstr=document.cookie.length;return unescape(document.cookie.substring(offset,endstr));}function GetCookie(name){var arg=name+"=";var alen=arg.length;var clen=document.cookie.length;var i=0;while(i<clen){var j=i+alen;if(document.cookie.substring(i,j)==arg)return getCookieVal(j);i=document.cookie.indexOf(" ",i)+1;if(i==0)break;}return null;}function SetCookie(name,value){var argv=SetCookie.arguments;var argc=SetCookie.arguments.length;var expires=(argc>2)?argv[2]:null;var path=(argc>3)?argv[3]:null;var domain=(argc>4)?argv[4]:null;var secure=(argc>5)?argv[5]:false;document.cookie=name+"="+escape(value)+((expires==null)?"":("; expires="+expires.toGMTString()))+((path==null)?"":("; path="+path))+((domain==null)?"":("; domain="+domain))+((secure==true)?"; secure":"");}function SetTheCookie(name,value){if(value.length!=0){var expdate=new Date();expdate.setTime(expdate.getTime()+(24*60*60*1000*365));SetCookie(name,value,expdate);return false;}else{alert('Sie haben nichts eingegeben!');return false;}}function DisplayName(name){if(GetCookie(name)!=null)alert("Welcome back "+GetCookie(name));else alert("You must set the cookie first.");}
