var MAC=0, DHTML=0, DOM=0, MS=0, NS=0, OP=0; function DHTML_init(){ if(window.opera){OP=1;} if(document.getElementById){DHTML=1;DOM=1;} if(document.all && !OP){DHTML=1;MS=1;} if(window.netscape && window.screen && !DOM && !OP){DHTML=1;NS=1;} } function oID(ID){ if(DOM){if(typeof document.getElementById(ID)=='object')return(document.getElementById(ID)); else return(void(0)); }else if(MS){if(typeof document.all[ID]=='object')return(document.all[ID]);else return(void(0)); }else if(NS){if(typeof document[ID]=='object')return(document[ID]);else return(void(0));} } function oName(p2){ if(DOM){if(typeof document.getElementsByName(p2)=="object")return(document.getElementsByName(p2)[0]); else return(void(0)); }else if(MS){if(typeof document[p2]=="object")return(document[p2]); else return(void(0)); }else if(NS){if(typeof document[p2]=="object")return(document[p2]); else return(void(0));} } DHTML_init(); // Browser supports STYLE-Attribute function IMGsrc(ID,Img){ oID(ID).src=""; oID(ID).src=Img; } function hide(ID){ oID(ID).style.visibility="hidden"; } function show(ID){ oID(ID).style.visibility="visible"; } function showFlip(ID){ if(oID(ID).style.visibility=="visible"){ oID(ID).style.visibility="hidden"; }else{ oID(ID).style.visibility="visible"; } } function hideIF(ID){ oID(ID).style.visibility="hidden"; } function showIF(ID){ oID(ID).style.visibility="visible"; } function LoadIFrame(mytarget,file){ if(OP){ oID("Atarget").target=mytarget; oID("Atarget").href=file; oID("Atarget").click(); }else{ oID(mytarget).src=""; oID(mytarget).src=file; } } function move_abs(ID,left,top){ oID(ID).style.left=left+'px'; oID(ID).style.top=top+'px'; } function move_absIF(ID,left,top){ oID(ID).style.left=left+'px'; oID(ID).style.top=top+'px'; } function oWIN(){ this.Width; this.Height; this.init=_oWIN_init; this.resize2min=_oWIN_resize2min; } function _oWIN_init(){ if((document.all)&&!OP){ this.Width=document.all.bodyId.offsetWidth; this.Height=document.all.bodyId.offsetHeight; }else{ this.Width=window.innerWidth; this.Height=window.innerHeight; } } function _oWIN_resize2min(minWidth,minHeight){ if(this.Width < minWidth){ window.resizeBy(minWidth-this.Width,0); } if(this.Height < minHeight){ window.resizeBy(0,minHeight-this.Height); } this.init(); } function minix(){ var iW=760,iH=540,iX=((screen.availWidth-iW-10)/2),iY=((screen.availHeight-iH-50)/2); wProp="titlebar=yes,toolbar=no,scrollbars=no,status=yes,menubar=no,height="+ ""+iH+",width="+iW+",screenX="+iX+",screenY="+iY+",left="+iX+",top="+iY; wMX=window.open("http://www.minix.ch/minix.htm","wMX",wProp); wMX.focus(); } function myUnload(){ } function Galerie(Name,Bild){ IMGsrc(Name,"pics/"+Name+"/"+Bild); } function DispPage(iPage){ i=1; for(i=1;i<=2;i++){ if(i==iPage){ show("page"+i); }else{ hide("page"+i); } } } function LoadMe(file){ document.location.href=file; } var oldUMid; var oldUMcol; function Load(Name){ top.Load(Name); } function gotoiC(Name,targ){ if(MS){ var sumy=oID(targ).offsetTop; window.scrollTo(0,(sumy+0)); }else{ oID("iATarget").target="_self"; oID("iATarget").href="#"+targ; oID("iATarget").click(); } } function OpenWin(url,name,attrib){ window.open(url,name,attrib); } function popup(url2,w,h,scrollme){ window.open(url2, "", "width=" + w + ",height=" + h + ",left=0,top=0,status=no,toolbar=no,menubar=no,resizable=no,scrollbars=" + scrollme); } function Alpenquiz(Lang){ var WProp=""; var iW=800,iH=600,iX=((screen.availWidth-iW-10)/2),iY=((screen.availHeight-iH-25)/2); wProp="titlebar=no,toolbar=no,resizable=no,scrollbars=no,status=no,menubar=no,height="+iH+",width="+iW+",screenX="+iX+",screenY="+iY+",left="+iX+",top="+iY; myLink=window.open("http://www.minix.ch/Alpenquiz/Alpenquiz.php?Lang="+Lang,"myLink",wProp); myLink.focus(); } function Liste(Lang){ var WProp=""; var iW=800,iH=600,iX=((screen.availWidth-iW-10)/2),iY=((screen.availHeight-iH-25)/2); wProp="titlebar=no,toolbar=no,resizable=no,scrollbars=no,status=no,menubar=no,height="+iH+",width="+iW+",screenX="+iX+",screenY="+iY+",left="+iX+",top="+iY; myLink=window.open("../games/Alpenquiz/Liste.php?Lang="+Lang,"myLink",wProp); myLink.focus(); } function Form_onsubmit(theForm){ theForm=document.Flusstest; ok=true; if(theForm.Fluss.value.length<2)ok=false; if(theForm.FlussPLZ.value.length<2)ok=false; if(theForm.FlussOrt.value.length<2)ok=false; if(theForm.Besonderheiten.value.length<2)ok=false; if((theForm.Punkte.value<10)||(theForm.Punkte.value>40))ok=false; if(theForm.Vorname.value.length<2)ok=false; if(theForm.Name.value.length<2)ok=false; if(theForm.Strasse.value.length<2)ok=false; if(theForm.PLZ.value.length<2)ok=false; if(theForm.Ort.value.length<2)ok=false; return(ok); }