var httpColor = null;
function setShowColorOnDownload( eventGroupID, show, sid, hideObject, showObjectID )
{
  httpColor = createRequestObject();
  if ( !httpColor ) return;

  httpColor.open( 'POST', 'index.php' );
  httpColor.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded" );
  var params = 'action=setShowColorOnDownload&f_formName=editEventGroupShowColorForm&f_eventGroupId=' + eventGroupID + '&f_colorType=' + show + '&sid=' + sid;
  httpColor.setRequestHeader( "Content-Length", params.length );
  httpColor.send( params );

  showObject = document.getElementById( showObjectID );
  showObject.style.display = "block";
  hideObject.style.display = "none";
}