function myTime() {
var dst = 0;       // set to 1 for daylight savings time **must be updated twice a year, last Sunday of March = 0, last Sunday of October = 1


var loc = 'London ';
var mtz = 0;
var stdz = 'GMT/Zulu';
var dayz = 'BST/Alpha';
var showDate = 1;
var newP = document.createElement("span"); 
var txt = '' + loc + ' '; 
var newT = document.createTextNode(txt); newP.appendChild(newT); 
var newP2 = document.createElement("span"); newP2.id = 'time'; 
var txt2 = setDsp(mtz,dst,stdz,dayz,showDate); 
var newT2 = document.createTextNode(txt2); newP2.appendChild(newT2); 
var frag = document.createDocumentFragment(); frag.appendChild(newP); frag.appendChild(newP2); 
var d2 = document.getElementById('datetime'); d2.parentNode.replaceChild(frag,d2);
setTimeout('updDsp('+mtz+',' +dst+',"' +stdz+'","' +dayz+'","'+showDate+'")', 5000);}
var pageLoaded = 0; window.onload = function() {pageLoaded = 1;}
function loaded(i,f) {if (document.getElementById && document.getElementById(i) != null) f(); else if (!pageLoaded) setTimeout('loaded(\''+i+'\','+f+')',100);
}
function updDsp(mtz,dst,stdz,dayz,showDate) 
{var obj = document.getElementById('time'); obj.firstChild.data = setDsp(mtz,dst,stdz,dayz,showDate); setTimeout('updDsp('+mtz+ ','+dst+ ',"'+stdz+ '","'+dayz+ '","'+showDate+'")', 9000);}
function setDsp(mtz,dst,stdz,dayz,showDate) 
{var dayname = [' Sun', ' Mon', ' Tue', ' Wed', ' Thu',' Fri', ' Sat']; 
var month = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']; 
var now = new Date; now.setUTCMinutes(now.getUTCMinutes() + (mtz + dst)*60); 
var dow = now.getUTCDay(); var minute = now.getUTCMinutes();
var hour = now.getUTCHours(); if (hour > 11) {ampm = 'PM'; hour -= 12;} else {ampm = 'AM'} if (hour == 0) {hour = 12;} if (minute < 10) {pad = ':0';} else {pad = ':';} 
var txt = hour + pad + minute + ' ' + ampm + ' ('; 
if (dst) txt += dayz; 
else txt += stdz; txt += ') ' + dayname[dow];
if (showDate == 1) txt += ' ' + now.getUTCDate() + ' '  + month[now.getUTCMonth()]  + ', ' + now.getUTCFullYear();
if (showDate == 2) txt += ' ' + month[now.getUTCMonth()] +' '  + now.getUTCDate() + ', ' + now.getUTCFullYear();
return (txt);
}
loaded('datetime',myTime);