<!-- hide from browsers with Javascript disabled

/* Common Javascript functions
 *
 * Modified
 * ---------------------------
 * 2010-05-09: Added newWindow function.
 * 2009-04-26: Creation.
 */

// Opens a new window for the indicated page.
// argument : simple object identifier (file name without the .html extension)
// returns : false
function newWindow(name) {
    var load = window.open(name + '.html', name,
            'scrollbars=yes, menubar=no, resizable=yes, toolbar=no'
            + ', location=no, status=no');
}

// Swaps (replaces) the current photo, in the named element, for another
// argument : document element name
// argument : photo file name with path if necessary
// returns : true
function swapPhotos(element_name, photo_name) {
  var element = eval('document.' + element_name);
  element.src = photo_name;
  return true;
}

// - stop hiding -->

