Another picture for you

A bit of serendipity - I realised that we could use a click on the whole picture to move on to the next picture.

    <img src='images/1.jpg' id='pic' onClick='pic_clicked();'>

For flexility I added a global g_pics to store the number of pics.

And g_n for the number of the current picture.

globals.js
var g_piece='';
var g_pics=2;
var g_n=Random(g_pics);