<!-- hide this script from non-javascript-enabled browsers

if (document.images) {
rdtmain_r02_c1_F1 = new Image(149,34); rdtmain_r02_c1_F1.src = "../menu/rdt-main_r02_c1.jpg";
rdtmain_r02_c1_F2 = new Image(149,34); rdtmain_r02_c1_F2.src = "../menu/rdt-main_r02_c1_F2.jpg";
rdtmain_r03_c1_F1 = new Image(149,38); rdtmain_r03_c1_F1.src = "../menu/rdt-main_r03_c1.jpg";
rdtmain_r03_c1_F2 = new Image(149,38); rdtmain_r03_c1_F2.src = "../menu/rdt-main_r03_c1_F2.jpg";
rdtmain_r04_c1_F1 = new Image(149,34); rdtmain_r04_c1_F1.src = "../menu/rdt-main_r04_c1.jpg";
rdtmain_r04_c1_F2 = new Image(149,34); rdtmain_r04_c1_F2.src = "../menu/rdt-main_r04_c1_F2.jpg";
rdtmain_r05_c1_F1 = new Image(149,38); rdtmain_r05_c1_F1.src = "../menu/rdt-main_r05_c1.jpg";
rdtmain_r05_c1_F2 = new Image(149,38); rdtmain_r05_c1_F2.src = "../menu/rdt-main_r05_c1_F2.jpg";
rdtmain_r06_c1_F1 = new Image(149,38); rdtmain_r06_c1_F1.src = "../menu/rdt-main_r06_c1.jpg";
rdtmain_r06_c1_F2 = new Image(149,38); rdtmain_r06_c1_F2.src = "../menu/rdt-main_r06_c1_F2.jpg";
rdtmain_r07_c1_F1 = new Image(149,38); rdtmain_r07_c1_F1.src = "../menu/rdt-main_r07_c1.jpg";
rdtmain_r07_c1_F2 = new Image(149,38); rdtmain_r07_c1_F2.src = "../menu/rdt-main_r07_c1_F2.jpg";
rdtmain_r08_c1_F1 = new Image(149,47); rdtmain_r08_c1_F1.src = "../menu/rdt-main_r08_c1.jpg";
rdtmain_r08_c1_F2 = new Image(149,47); rdtmain_r08_c1_F2.src = "../menu/rdt-main_r08_c1_F2.jpg";
rdtmain_r09_c1_F1 = new Image(149,38); rdtmain_r09_c1_F1.src = "../menu/rdt-main_r09_c1.jpg";
rdtmain_r09_c1_F2 = new Image(149,38); rdtmain_r09_c1_F2.src = "../menu/rdt-main_r09_c1_F2.jpg";
rdtmain_r11_c1_F1 = new Image(149,38); rdtmain_r11_c1_F1.src = "../menu/rdt-main_r11_c1.jpg";
rdtmain_r11_c1_F2 = new Image(149,38); rdtmain_r11_c1_F2.src = "../menu/rdt-main_r11_c1_F2.jpg";

}
/* Function that swaps images. */

function di20(id, newSrc) {
    var theImage = FWFindImage(document, id, 0);
    if (theImage) {
        theImage.src = newSrc;
    }
}

/* Functions that track and set toggle group button states. */

function FWFindImage(doc, name, j) {
    var theImage = false;
    if (doc.images) {
        theImage = doc.images[name];
    }
    if (theImage) {
        return theImage;
    }
    if (doc.layers) {
        for (j = 0; j < doc.layers.length; j++) {
            theImage = FWFindImage(doc.layers[j].document, name, 0);
            if (theImage) {
                return (theImage);
            }
        }
    }
    return (false);
}

function downloadreg(item) {
  //alert ('Running the download function '+ item)
  //alert (document.cookie)
  //if (document.cookie == '') {
  //  //alert('No cookies are currently set Im going to download them this is where we capture the information.')
  //  window.open("rdt-download.htm" + '?item='+item,'download'5,'height=480,width=640,toolbar=0,location=no,resizable=yes,scrollbars=1')
  //  //window.open("rdt-download.htm" + '?item='+item,'download','height=480,width=640,toolbars=0,location=0,scrollbars=1')
  //} else {
  //  //alert('There is a cookie called rdtid so just download')
  //  var location = (item + "?" + document.cookie)
  //  //alert(location)
  //  window.open(location,'datasheet','width=640,height=480,toolbars=0,status=0,location=0,resizable=yes,scrollbars=1')
  //
  //}
  
  // 26/05/2004 - above section commented out - this page will now call the rdtlog.asp
  //              page regardless (rdtlog.asp will decide whether to act on the cookie
  //              or not.
  
  window.open("RDTlog.asp" + '?fname='+item,'RDT_Registration','height=480,width=640,toolbar=0,location=no,resizable=yes,scrollbars=1')
}

function download(item) {
  //alert ('Running the download function '+ item)
  //alert (document.cookie)
  if (document.cookie == '') {
    //alert('No cookies are currently set Im going to download them this is where we capture the information.')
    window.open("rdt-download.htm" + '?item='+item,'download','height=480,width=640,toolbar=0,location=no,resizable=yes,scrollbars=1')
    //window.open("rdt-download.htm" + '?item='+item,'download','height=480,width=640,toolbars=0,location=0,scrollbars=1')
  } else {
    //alert('There is a cookie called rdtid so just download')
    var location = (item + "?" + document.cookie)
    //alert(location)
    window.open(location,'datasheet','width=640,height=480,toolbars=0,status=0,location=0,resizable=yes,scrollbars=1')

  }
}

function swap(imgname, srcfile) {
  document[imgname].src = srcfile;
}

function loadimage(src) {
  var myimg = new Image();
  myimg.src = src;
}

function preload() {
  var myimgarray = new Array('../pix/download.gif');
  for (var i = 0; i < myimgarray.length; i++) {
    loadimage(myimgarray[i]);
  }
}


// stop hiding me dammit-->
