home *** CD-ROM | disk | FTP | other *** search
- <PUBLIC:ATTACH EVENT="onmouseover" HANDLER="Hilite" />
- <PUBLIC:ATTACH EVENT="onmouseout" HANDLER="Restore" />
- <PUBLIC:ATTACH EVENT="onclick" HANDLER="Choose" />
-
- <script language="JavaScript">
- function Hilite() {
- if (groeneWeken) return;
- S = element.src;
- element.src = S.slice(0,S.length-5) + '1' + S.slice(S.length-4);
- }
-
- function Restore() {
- if (groeneWeken) return;
- S = element.src;
- element.src = S.slice(0,S.length-5) + '0' + S.slice(S.length-4);
- }
-
- function Choose() {
- if (groeneWeken) return;
- switch (element.type) {
- case 'copy':
- cpweek = weekNum;
- cpdag = chosenDag;
- CopyPasteBtn[1].style.visibility = 'inherit';
- break;
- case 'paste':
- if ((chosenDag == cpdag) && (weekNum == cpweek)) {
- return;
- }
-
- if (parent.goPage == 'beweegplan.html') {
- tt = parent.userRoot.selectSingleNode("data/planweek[@num = '"+cpweek+"']/dag[@naam = '"+cpdag+"']").getAttribute("totaal");
- parent.userRoot.selectSingleNode("data/planweek[@num = '"+weekNum+"']/dag[@naam = '"+chosenDag+"']").setAttribute("totaal",tt);
- rr = parent.userRoot.selectSingleNode("data/planweek[@num = '"+cpweek+"']/dag[@naam = '"+cpdag+"']").getAttribute("result");
- parent.userRoot.selectSingleNode("data/planweek[@num = '"+weekNum+"']/dag[@naam = '"+chosenDag+"']").setAttribute("result",rr);
- gg = parent.userRoot.selectSingleNode("data/planweek[@num = '"+cpweek+"']/dag[@naam = '"+cpdag+"']").getAttribute("gewicht");
- parent.userRoot.selectSingleNode("data/planweek[@num = '"+weekNum+"']/dag[@naam = '"+chosenDag+"']").setAttribute("gewicht",gg);
- for (var i=0; i<parent.userRoot.selectNodes("data/planweek[@num = '"+cpweek+"']/dag[@naam = '"+cpdag+"']/act").length; i++) {
- newAct = parent.userRoot.selectNodes("data/planweek[@num = '"+cpweek+"']/dag[@naam = '"+cpdag+"']/act")[i].cloneNode(false);
- theAct = parent.userRoot.selectSingleNode("data/planweek[@num='"+weekNum+"']/dag[@naam='"+chosenDag+"']").appendChild(newAct);
- for (var j=0; j<parent.userRoot.selectNodes("data/planweek[@num = '"+cpweek+"']/dag[@naam = '"+cpdag+"']/act")[i].selectNodes("item").length; j++) {
- newItem = parent.userRoot.selectNodes("data/planweek[@num = '"+cpweek+"']/dag[@naam = '"+cpdag+"']/act")[i].selectNodes("item")[j].cloneNode(false);
- theItem = theAct.appendChild(newItem);
- theItem.text = newItem = parent.userRoot.selectNodes("data/planweek[@num = '"+cpweek+"']/dag[@naam = '"+cpdag+"']/act")[i].selectNodes("item")[j].text;
- }
- }
- }
- else {
- tt = parent.userRoot.selectSingleNode("data/week[@num = '"+cpweek+"']/dag[@naam = '"+cpdag+"']").getAttribute("totaal");
- parent.userRoot.selectSingleNode("data/week[@num = '"+weekNum+"']/dag[@naam = '"+chosenDag+"']").setAttribute("totaal",tt);
- rr = parent.userRoot.selectSingleNode("data/week[@num = '"+cpweek+"']/dag[@naam = '"+cpdag+"']").getAttribute("result");
- parent.userRoot.selectSingleNode("data/week[@num = '"+weekNum+"']/dag[@naam = '"+chosenDag+"']").setAttribute("result",rr);
- gg = parent.userRoot.selectSingleNode("data/week[@num = '"+cpweek+"']/dag[@naam = '"+cpdag+"']").getAttribute("gewicht");
- parent.userRoot.selectSingleNode("data/week[@num = '"+weekNum+"']/dag[@naam = '"+chosenDag+"']").setAttribute("gewicht",gg);
- for (var i=0; i<parent.userRoot.selectNodes("data/week[@num = '"+cpweek+"']/dag[@naam = '"+cpdag+"']/act").length; i++) {
- newAct = parent.userRoot.selectNodes("data/week[@num = '"+cpweek+"']/dag[@naam = '"+cpdag+"']/act")[i].cloneNode(false);
- parent.userRoot.selectSingleNode("data/week[@num='"+weekNum+"']/dag[@naam='"+chosenDag+"']").appendChild(newAct);
- }
- }
- getWeek();
- getDag();
- break;
- }
- }
- </script>
-