function checkSum() {
  a = parseInt($('checksum1').value);
  b = parseInt($('checksum2').value);
  $('checksum').value = (a + b);
  $('checksum-row').style.visibility = 'hidden';  
}

function showCompcardNotification(show) {
    if (show && $('compcard-notification') != undefined && $('compcard-link') != undefined) {
      link = $('compcards-link');
  		var offsetTop = link.cumulativeOffset().top;
  		var offsetLeft = link.cumulativeOffset().left;
      compcard = $('compcard-notification');
      compcard.setStyle({top: (offsetTop-45) + "px", left: (offsetLeft + link.offsetWidth + 5) + "px"});
      new Effect.Appear(compcard, { duration: 1, from: 0.0, to: 0.8 });
    }
}

