﻿      function show5() {
           if (!document.layers && !document.all && !document.getElementById)
               return

           var Digital = new Date()
           var hours = Digital.getHours()
           var minutes = Digital.getMinutes()
           var seconds = Digital.getSeconds()
           var mydate = new Date()
           var year = mydate.getYear()
           if (year < 1000)
               year += 1900
           var day = mydate.getDay()
           var month = mydate.getMonth()
           var daym = mydate.getDate()
           
           if (daym < 10)
               daym = "0" + daym
           var dayarray = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday")
           var montharray = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")
           var extensionarray = new Array("st", "nd", "rd", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "st", "nd", "rd", "th", "th", "th", "th", "th", "th", "th", "st")
           var dn = "PM"
           if (hours < 12)
               dn = "AM"
           if (hours > 12)
               hours = hours - 12
           if (hours == 0)
               hours = 12

           if (minutes <= 9)
               minutes = "0" + minutes
           if (seconds <= 9)
               seconds = "0" + seconds


           //change font size here to your desire #eee88d
                 myclock = "<span style='color:#ff6'>" + dayarray[day] + " " + daym + extensionarray[day] + " " + montharray[month] + " " + year + " " + "&nbsp;&nbsp;&nbsp;" + hours + ":" + minutes + ":" + seconds + " " + dn + "</span>"

           if (document.layers) {
               document.layers.liveclock.document.write(myclock)
               document.layers.liveclock.document.close()
           }
           else if (document.all)
               liveclock.innerHTML = myclock
           else if (document.getElementById)
               document.getElementById("liveclock").innerHTML = myclock
           setTimeout("show5()", 1000)


}
   window.onload = show5
       
       


