// JavaScript: Other Basic Techniques, Example 4
// Function demonstrates alert boxes
//
// Copyright (c) Paul Griffiths, 2007
// Email: mail@paulgriffiths.net
function alertImage(n) {
if ( n == 0 )
alert("You clicked the Welsh flag!");
else if ( n == 1 )
alert("You clicked the Scottish flag!");
else
alert("You clicked the English flag!");
}