// $Id: urpmII.js 1103 2008-05-09 10:06:09Z dmf $
// Check if Option constructor is supported
if ((typeof(Option) + "") != "undefined") 
{ v = true; }
else
{  alert("This page is best viewed in Netcape or IE 4+."); }

// This constructor works equally well for 2D,3D and over
function O(text, value, submenu)
{
   this.text = text;
   this.value = value;
   this.length = 0;  

   if (submenu != null) {
      // submenu is an array of options...
      for (var i = 0; i < submenu.length; ) {
         this[i] = submenu[i];
         this.length = ++i;
      }
   }
}

//***new function to sort the lists*** 
function compare(a,b) {
   return (a.text > b.text)? 1 : -1; 
}
