  // Yes - outdated.. but still working :-) jvn 2006 nov 17
  // Mods to make somewhat more generic. For the OMP article
  
  function changeProp(objStrNS,objStrIE,theProp,theValue) { 
    var NS = (navigator.appName == 'Netscape');
    var objStr = (NS)?objStrNS:objStrIE;
    if (( NS && (objStr.indexOf('document.layers[')!=0 || document.layers!=null)) ||
        (!NS && (objStr.indexOf('document.all[')   !=0 || document.all   !=null))) {
    var obj = eval(objStr);
    if ((obj != null) && (theProp.indexOf("style.") != 0 || obj.style != null)) {
      eval(objStr+'.'+theProp + '="'+theValue+'"');
    } }
  }
 
  var dumpIndex=1;

  function doCycleDumps (srcPreName, maxIndex, srcExt) {
    if (dumpIndex<maxIndex) dumpIndex++
      else dumpIndex=1;
    changeProp('document.ScreenDump','document.ScreenDump','src',
      srcPreName+dumpIndex+'.'+srcExt,'IMG'); 
  }