<script> <br><!-- <br>var moveRow=false; <br>var moveRadio=false; <br>function radioChecked(obj){ <br> moveRadio=obj; <br> moveRow=obj.parentNode.parentNode; <br>} <br>function moveUp(){ <br> if(moveRow){ <br> var prevRow=moveRow.previousSibling; <br> if(prevRow){ <br> document.all["DynaTable"].childNodes[0].insertBefore(moveRow,prevRow); <br> moveRadio.checked=true; <br> } <br> } <br>} <br>function moveDown(){ <br> if(moveRow){ <br> var nexRow=moveRow.nextSibling; <br> if(nexRow){ <br> var nnextRow=nexRow.nextSibling; <br> if(nnextRow){ <br> document.all["DynaTable"].childNodes[0].insertBefore(moveRow,nnextRow); <br> }else{ <br> document.all["DynaTable"].childNodes[0].appendChild(moveRow); <br> } <br> moveRadio.checked=true; <br> } <br> } <br>} <br>function moveEnd(){ <br> if(moveRow){ <br> document.all["DynaTable"].childNodes[0].appendChild(moveRow); <br> moveRadio.checked=true; <br> } <br>} <br>function moveFirst(){ <br> if(moveRow){ <br> document.all["DynaTable"].childNodes[0].insertBefore(moveRow,document.all["DynaTable"].childNodes[0].firstChild); <br> moveRadio.checked=true; <br> } <br>} <br>//--> <br></script> |
|||||||||||||||||||||||||