function updateme()
/*************************************************************************/
/* Function shows date last changed centre aligned 
/*this function was modified 3/11/08 to change ariel to Times                              
/*************************************************************************/
{
document.write("<BR><CENTER><FONT FACE = 'Times'><B>Last Updated " 
+ document.lastModified) + "</B></FONT></CENTER>"
}

function showme()
/*************************************************************************/
/* Function shows email address 
/3/11/08 changed Email to email                              
/*************************************************************************/
{
var slip = "mailto:"
var hand = "tom"
var onto = "thackray"
var stocking = "@"
var top = "btinternet.com"
showme = slip + hand + onto + stocking + top
document.write('For Course Details <A HREF=" '+ showme + '">')
document.write('email Tom</A>')
};


function scoreme()
/*************************************************************************/
/* Function shows quiz                               
/*************************************************************************/
{

function getselectedIndex()
{
return document.quiz.q1.selectedIndex
return document.quiz.q2.selectedIndex
return document.quiz.q3.selectedIndex
return document.quiz.q4.selectedIndex
return document.quiz.q5.selectedIndex
};

var Solutions=new Array(2,3,2,1,3)
var UserGuess = new Array(document.quiz.q1.selectedIndex,
                          document.quiz.q2.selectedIndex,
                          document.quiz.q3.selectedIndex,
                          document.quiz.q4.selectedIndex,
                          document.quiz.q5.selectedIndex)
var score = 0
var question

for (question = 0; question < 5; question = question + 1)
{
if (Solutions[question] == UserGuess[question])
{score = score + 1}
}; 

if (score == 5)
{window.alert("Congratulations! You got all five questions correct")}
else
{window.alert("You got " + score + " questions correct out of 5")}
};

function welcome()
/*************************************************************************/
/* Function shows date last changed centre aligned                               
/*************************************************************************/
{
var date = new Date();
month = date.getMonth()
day = date.getDate()
year = date.getYear()
var months = new Array(
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December");

document.write("<CENTER><FONT FACE= 'Times'><B>Tom Welcomes you to his website on  " +
(day + " " + months[month] + " " + year) + "</B></FONT></CENTER>");
}
