name="tvpro01"; img0 = new Image(); img0.src = "URL_TO_IMGDIR/tvpro-admin0.gif"; img1 = new Image(); img1.src = "URL_TO_IMGDIR/tvpro-admin1.gif"; img2 = new Image(); img2.src = "URL_TO_IMGDIR/tvpro-admin2.gif"; img3 = new Image(); img3.src = "URL_TO_IMGDIR/tvpro-admin3.gif"; img4 = new Image(); img4.src = "URL_TO_IMGDIR/tvpro-admin4.gif"; img5 = new Image(); img5.src = "URL_TO_IMGDIR/tvpro-admin5.gif"; tvprotest=true; function tvproimg (x,y){ document.getElementsByName("ximg"+x)[0].src = y.src; } function tvprotorclk(x,y,z){ if(document.all && !window.opera){ if(z==38){tvprotorauf(x,y,1);} if(z==40){tvprotorauf(x,y,-1);} } } function tvproteamauf(x,z){ var a=document.getElementsByName(x)[0].value; if(isNaN(a)==true){a=0;}else{a=parseInt(a);} if(a>40){a=40;} if(a<4){a=4;} if((z==1) && (a<40)){a++;} if((z==-1) && (a>4)){a--;} document.getElementsByName(x)[0].value=a; tvprotest=false; } function tvproteamclk(x,z){ if(document.all && !window.opera){ if(z==38){tvproteamauf(x,1);} if(z==40){tvproteamauf(x,-1);} } } function tvproanzstauf(x,z){ var a=document.getElementsByName(x)[0].value; if(isNaN(a)==true){a=0;}else{a=parseInt(a);} if(a>116){a=116;} if(a<1){a=1;} if((z==1) && (a<116)){a++;} if((z==-1) && (a>1)){a--;} document.getElementsByName(x)[0].value=a; tvprotest=false; } function tvproanzstclk(x,z){ if(document.all && !window.opera){ if(z==38){tvproanzstauf(x,1);} if(z==40){tvproanzstauf(x,-1);} } } function tvproanzspauf(x,z){ var a=document.getElementsByName(x)[0].value; if(isNaN(a)==true){a=0;}else{a=parseInt(a);} if(a>40){a=40;} if(a<1){a=1;} if((z==1) && (a<40)){a++;} if((z==-1) && (a>1)){a--;} document.getElementsByName(x)[0].value=a; tvprotest=false; } function tvproanzspclk(x,z){ if(document.all && !window.opera){ if(z==38){tvproanzspauf(x,1);} if(z==40){tvproanzspauf(x,-1);} } } function tvprotorauf(x,y,z){ if(x=="a"){xx="b";} if(x=="b"){xx="a";} var a=document.getElementsByName("xgoal"+x+y)[0].value; if(a==""){a="-1";} if(a=="_"){a="-1";} if(a=="X"){a="-2";} if(a=="x"){a="-2";} var aa=document.getElementsByName("xgoal"+xx+y)[0].value; if(aa==""){aa="-1";} if(aa=="_"){aa="-1";} var ab=aa; if(isNaN(a)==true){a=0;}else{a=parseInt(a);} if((z==1) && (a<9999)){a++;} if((z==-1) && (a>-1)){a--;} if((a>-1) && (aa<0)){aa=0;} if((a<0) && (aa>-1)){aa=-1;} if(a==-2){a="X";} if(a==-1){a="_";} document.getElementsByName("xgoal"+x+y)[0].value=a; if(ab!=aa){ if(aa==-1){aa="_";} document.getElementsByName("xgoal"+xx+y)[0].value=aa; } tvprotest=false; if(a=="X"){tvprotorgte(x,y);} } function tvprotorgte(x,y){ var a=document.getElementsByName("xgoal"+x+y)[0].value; if((a=="X") || (a=="x")){ a="-2"; if(x=="a"){b=1;c="b";} if(x=="b"){b=2;c="a";} document.getElementsByName("xgoal"+x+y)[0].value=document.getElementsByName("xgoal"+c+y)[0].value; document.getElementsByName("xmsieg"+y)[0].selectedIndex=b; } tvprotest=false; } function tvprofilename(){ var s=document.getElementsByName("xfile")[0].value; if(s.length==0){s='noname';} s=s.replace(/\\/,"/") if(s.lastIndexOf("/")>-1){var t=s.substr(s.lastIndexOf("/")+1,s.length); s=t;} if(s.substr(s.length-4,s.length).toLowerCase()==".l98"){var t=s.substr(0,s.length-4); s=t;} document.getElementsByName("xfile")[0].value=s; tvprotest=false; } function tvprotitelname(){ var s=document.getElementsByName("xtitel")[0].value; if(s.length==0){s='No Name';} document.getElementsByName("xtitel")[0].value=s; tvprotest=false; } function dotvproedit(){ tvprotest=false; } function chktvpropass(){ if(tvprotest == true){ return confirm(""); }else{ return true; } } function dotvproedi2(a,s){ var s1=document.getElementsByName(s)[0].value; for(var i=1;i<=a;i++){ if(s!="xplatz"+i){ var s2=document.getElementsByName("xplatz"+i)[0].value; if(s1==s2){ s3=0; s4=0; for(var j=1;j<=a;j++){ s4=s4+j; if(s!="xplatz"+j){ s3=s3+eval(document.getElementsByName("xplatz"+j)[0].value); } } document.getElementsByName("xplatz"+i)[0].selectedIndex=parseInt(s4-s3-1); } } } tvprotest=false; } function chktvpropas2(a){ var r=true; if(tvprotest == true){ r=confirm(""); } if(tvprotest == false){ var s3=false; for(var i=1;i < a;i++){ for(var j=i+1;j <= a;j++){ var s1=document.getElementsByName("xplatz"+i)[0].value; var s2=document.getElementsByName("xplatz"+j)[0].value; if(s1==s2){s3=true;} } } if(s3 == true){ alert(""); r=false; } } if(r == false){ return false; } } function chktvprolink(){ if(tvprotest == false){ return confirm(""); }else{ return true; } } function siktvprolink(adresse){ return confirm(""); } function deltvprolink(adresse,titel){ return confirm(":\n"+titel); } function emltvprolink(adresse,emailaddi){ if(ema=prompt("",emailaddi)){ if(ema!=""){ window.open(adresse+"&madr="+ema,"tvproelm","width=250,height=150,resizable=yes,dependent=yes"); } } } function dteamtvprolink(adresse,team){ return confirm(":\n"+team); } function ateamtvprolink(adresse){ return confirm(""); } function opencal(feld,startdat){ tvprocal="URL_TO_TVPRO/tvpro-admincal.php?abs=tvproedit&feld="+feld; if(startdat!=""){tvprocal=tvprocal+"&calshow="+startdat;} tvprowin = window.open(tvprocal,"tvprocalpop","width=180,height=200,resizable=yes,dependent=yes"); tvprotest=false; return false; } function openinsteiln(feld,mandant,vaid,tnid,tabid){ tvproit="URL_TO_TVPRO/tvpro-admininsteiln.php?abs=tvproedit&feld="+feld; tvproit=tvproit+"&m="+mandant; tvproit=tvproit+"&v="+vaid; tvproit=tvproit+"&tn="+tnid; tvproit=tvproit+"&tab="+tabid; tvprowin = window.open(tvproit,"tvproitpop","width=480,height=600,resizable=yes,dependent=yes"); tvprotest=false; return false; } function checkfeldgroesse(){ if (document.Formular.oldhfgroesse.value != document.Formular.xtnhfgroesse.value){ return confirm(""); }else{ return true; } } function openerg(feld){ tvproerg="URL_TO_TVPRO/tvpro-ergauswahl.php?abs=tvproedit&feld="+feld; tvprowin = window.open(tvproerg,"tvproergpop","width=180,height=400,resizable=yes,dependent=yes"); tvprowin = window.open(tvproerg,"tvproergpop"); tvprotest=false; return false; } // This is the function that will open the // new window when the mouse is moved over the link function open_new_window(text) { new_window = open("","hoverwindow","width=300,height=200,left=100,top=100"); // open new document new_window.document.open(); // Text of the new document // Replace your " with ' or \" or your document.write statements will fail new_window.document.write("TVPro-online Message Window"); new_window.document.write(""); new_window.document.write(text); new_window.document.write("
"); new_window.document.write(""); // close the document new_window.document.close(); } // This is the function that will close the // new window when the mouse is moved off the link function close_window() { new_window.close(); }