My div contains images from source.
<div id="main">
    <div id="sub1">
        <img src="http://i48.tinypic.com/wrltuc.jpg"
        style="width:150px; height:140px; "/></div>
    <div id="sub2">
         <img src="http://oi41.tinypic.com/24cib61.jpg"
        style="width:120px; height:100px; "/>
    </div>
    <div id="sub3">
          <img src="http://oi50.tinypic.com/1z2j8rd.jpg"
        style="width:60px; height:60px; "/>
    </div>
</div>
<div id="captureBig"></div>
<div id="captureSmall"></div>
I have put capture divs that will contain capture of main div. My working design is here
How can I capture of my main div as a png or jpg image? I am using javascript. I will post it to server.
