title: Convert Lat/Longs to X/Y Co-ordinates
body: <p>I have the Lat/Long value of New York City, NY; 40.7560540,-73.9869510 and a flat image of the earth, 1000px × 446px.</p>
  
  <p>I would like to be able to convert, using Javascript, the Lat/Long to an X,Y coordinate where the point would reflect the location.</p>
  
  <p>So the X,Y coordinate form the Top-Left corner of the image would be; 289, 111</p>
  
  <p>Things to note:</p>
  
  <ol>
  <li>don't worry about issues of what projection to use, make your own
  assumption or go with what you know
  might work </li>
  <li>X,Y can be form any corner of the image</li>
  <li>Bonus points for
  the same solution in PHP (but I
  really need the JS)</li>
  </ol>