function f(link) {
   var obj = document.all(link);
   var i;
   if (obj.id != null) {
      if (obj.style.display == '')
         obj.style.display = 'none';
      else
         obj.style.display = '';
   } else {
     for (i=0; i < obj.length; i++) {
        if (obj(i).style.display == '')
           obj(i).style.display = 'none';
        else
           obj(i).style.display = '';
     }
   }
}

function high(which2){
   theobject=which2
   highlighting=setInterval("highlightit(theobject)",10)
}

function low(which2){
   clearInterval(highlighting)
   which2.filters.alpha.opacity=50
}

function highlightit(cur2){
   if (cur2.filters.alpha.opacity<100)
      cur2.filters.alpha.opacity += 20
   else if (window.highlighting)
      clearInterval(highlighting)
}

function dFork(groupname, keyname) {
   var obj = document.getElementById('basketInfoId');
   formname = 'groupForm' + groupname;
   elementname = 'amount' + keyname;
   amountproduct = document.forms[formname].elements[elementname].value;
   if (0 < amountproduct) {
      obj.src = 'buy_' + keyname + '_' + amountproduct + '_' + groupname + '.html';
   }
   return false;
}

function CheckAll() {
   var index = document.forms['manage'].elements['selectGroup'].status;
   if (index == true) {
      for (var i=0;i < manage.elements.length;i++) {
         var e = manage.elements[i];
         if (e.type=='checkbox') {
            document.forms['manage'].elements[i].status = true;
         }
      }
   } else {
      if (index == false) {
         for (var i=0;i < manage.elements.length;i++) {
            var e = manage.elements[i];
            if (e.type=='checkbox') {
               document.forms['manage'].elements[i].status = false;
            }
         }
      }
   }
}