function onclickpicture(theimg)
{
  var code = '';

  // Extract the last data from the pathname
  var tmpcode = location.pathname.substr(location.pathname.length - 7);

  // Determine the language code using this data
  if(tmpcode == '_en.htm')
    code = 'en';
  if(tmpcode == '_nl.htm')
    code = 'nl';
  if(tmpcode == '_tr.htm')
    code = 'tr';

  // If we couldn't find a code, let's try another way
  if(code == '')
  {
    // Extract the last data from the pathname
    var tmpcode = location.pathname.substr(location.pathname.length - 18);

    // Determine the language code using this data
    if(tmpcode == '_en_unfinished.htm')
      code = 'en';
    if(tmpcode == '_nl_unfinished.htm')
      code = 'nl';
    if(tmpcode == '_tr_unfinished.htm')
      code = 'tr';
  }

  if(code != '')
  {
    var href, alt, width, height;

    if(event.target == undefined)
    {
      // We're IE
      href   = theimg.href;
      alt    = theimg.alt; 
      width  = theimg.width;
      height = theimg.height;
    }
    else
    {
      // We're Opera
      href   = event.target.src;
      alt    = event.target.alt; 
      width  = event.target.width;
      height = event.target.height;
    }

    // Change to location
    location = '../scripts/viewpicture_' + code + '.htm?' + href + '&' + alt + '#' + width + ',' + height;
    return false;
  }

  // We failed!
  return true;
};

