function setSelect(select,value){
   for(i=0;i<select.options.length;i++){
      if(select.options[i].value==value){
         select.options[i].selected=true;
         return;
	  }
   }
}

function setRadio(radio,value){
   for(i=0;i<radio.length;i++){
      if(radio[i].value==value){
         radio[i].checked=true;
         return;
	  }
   }
}

function popup(f,nom, w, h) {
   var top=0;
   var left=0;
   if (self.screen)
      left=(screen.width-(w+((screen.width*1)/100)));
   window.open(f, nom, 'resizable,screenX=0,screenY=0,scrollbars=yes,menubar=yes,top='+top+',left='+left +',width=' + w + ',height=' + h );
}

function popup2(f,nom, w, h) {
   var top=0;
   var left=0;
   if (self.screen)
      left=(screen.width-(w+((screen.width*1)/100)));
   window.open(f, nom, 'resizable,screenX=0,screenY=0,scrollbars=no,menubar=no,top='+top+',left='+left +',width=' + w + ',height=' + h );
//   window.open(f, nom, 'resizable,screenX=0,screenY=0,scrollbars=yes,menubar=yes,top='+top+',left='+left +',width=' + w + ',height=' + h );
}
