function getDownload(item) {
	
   var centerX = 0;
   var centerY = 0;
   if (window.screenX != null && window.outerWidth) {
      centerX = window.screenX + (window.outerWidth / 2);
      centerY = window.screenY + (window.outerHeight / 2);
   }
   else if (window.screenLeft) {
      if (document.documentElement) {
         centerX = window.screenLeft + (document.documentElement.offsetWidth / 2);
         centerY = window.screenTop + (document.documentElement.offsetHeight / 2);
      }
      else if (document.body && document.body.offsetWidth) {
         centerX = window.screenLeft + (document.body.offsetWidth / 2);
         centerY = window.screenTop + (document.body.offsetHeight / 2);
      }
   }
   
   var x = parseInt(centerX - (535 / 2));
   var y = parseInt(centerY - (375 / 2));
   
   popup = window.open("/features/downloads/downloader.php?item="+item, "subwin", "scrollbars=yes,resizable=0,status=1,location=no,menubar=0,width=535,height=375,screenX="+x+",screenY="+y+",left="+x+",top="+y+"");
   popup.focus();
}


function agreementLinkUpdate() {
	if(document.getElementById('downloads_agree_cb').checked) {
		document.getElementById('link_inactive').style.display = 'none';
		document.getElementById('link_active').style.display = 'block';
	} else {
		document.getElementById('link_inactive').style.display = 'block';
		document.getElementById('link_active').style.display = 'none';
	}
}
