var httpAction = null;
function markAction( action, sid )
{
  httpAction = createRequestObject();
  if ( !httpAction ) return;

  httpAction.open( 'GET', 'index.php?action=' + action + '&sid=' + sid + randomParam() );
  httpAction.send( null );
}