function updateRadio(r, v){
   document.mainform.elements[r][v].checked = true;
}


function open_window(url, x, y) {
   window.name = 'parent';
   popup = window.open(url, 'details', 'width='+x+',height='+y);
   //popup.focus();
}

function doSize(){
   u=0;
   str = new Array(); 
   for(i=0; i<document.forms[0].elements.length; i++){
      str[document.forms[0].elements[i].name] = document.forms[0].elements[i];
   }
   for(i=1; i<33; i++){
      ele = "p["+i+"]";
      if(str[ele].checked){
         u = u + dlsize[i];
      }
   }
   var asize = u/1024;
   asize = Math.round(asize/10)/100;
   document.getElementById("dsize").firstChild.data = asize+" MB";
}