var Reccnt = 0; var Adate = new Array(); var Acity = new Array(); var Ddate = new Array(); var Dcity = new Array(); var Dcolor = new Array(); var Danchor = new Array(); var Dnote = new Array(); function AddRec(Pdate, Pcity, Pflag, Pnote) „ Reccnt++; var currdate = new Date(); var cyr = currdate.getYear(); var cmth = currdate.getMonth(); var cday = currdate.getDate(); var optdate = new Date(Pdate); var Hdate = Pdate.replace(' ', "+"); AdateíReccntù = Hdate.replace(' ', "+"); var Hcity = Pcity.replace(' ', "+"); var Hcity = Hcity.replace(' ', "+"); AcityíReccntù = Hcity.replace(' ', "+"); a = Pdate.indexOf(','); Pdate = Pdate.substring(0,a); DdateíReccntù = Pdate; DcityíReccntù = Pcity; DcoloríReccntù = "#FF0000"; DanchoríReccntù = true; if(Pnote š= '') DnoteíReccntù = '(' + Pnote + ')' else DnoteíReccntù = Pnote; if (cyr < 70) cyr = cyr+100; var cdate = (cyr*10000)+(cmth*100)+cday; var oyr = optdate.getYear(); if (oyr < 70) oyr = oyr+100; var omth = optdate.getMonth(); var oday = optdate.getDate(); var odate = (oyr*10000)+(omth*100)+oday; if (cdate > odate !! Pflag == 1) „ DcoloríReccntù = "#808080"; DanchoríReccntù = false; function SetColor () „ JJ = (Reccnt / 2) + .5; JJ = Math.floor(JJ); document.writeln("DateLocation" + "DateLocation"); for (I = 1; I <= JJ; I++) „ var I2 = I+JJ; document.writeln(""); document.writeln(''); document.writeln('' + DdateíIù + ""); document.writeln(''); document.writeln('' + DcityíIù + '' + DnoteíIù + ""); document.writeln(''); if (I2 <= Reccnt) document.writeln('' + DdateíI2ù + ""); document.writeln(''); if (I2 <= Reccnt) „ document.writeln('' + DcityíI2ù + '' + DnoteíI2ù + ""); document.writeln("");