function writemess(x) { 

switch (x){

case 0:

var msg = new Array(12);

msg[0] = "A Great place To Relax";
msg[1] = "Visit Greenway, the home of Agatha Christie";
msg[2] = "Catch the Steam railway to Dartmouth";
msg[3] = "Have a wild day out at Paignton Zoo";
msg[4] = "Great beaches";
msg[5] = "A wide variety of places to eat";
msg[6] = "Book early to avoid disappointment";
msg[7] = "The English Riviera......Lots to see and do";
msg[8] = "Enjoy our milder climate, all year round";
msg[9] = "Ideal for a car free break";
msg[10] = "Superb walks and stunning coastal scenery";


var num = Math.random()*10
var num = Math.round(num)

document.write(msg[num]);
break;

case 1:

document.write("Great For a Break any time of the year");
break;

default:

}}
