Babak,
Typically the graphics card has its own RAM. Some graphics cards will use system memory for certain memory intensive features such as textures and mipmaps.
Generally you're much better off getting a graphics card with 16 or 32 MB of on-board memory since that will support virtually all resolutions and color depth that a monitor can handle.
If your system supports AGP, make sure you get an AGP graphics card.