<!-- Refresh WebPage on load script -->	
function refreshPage(){
window.location.reload( false );
}

var hours;
var minutes;
var seconds;
var timer=null;	   

function sClock()
{
  //hours=UTChour + GRTimezone;	
  hours=GRhour;  
  minutes=twoDigit(UTCminute);  
  seconds=twoDigit(UTCsecond);
  if(timer){clearInterval(timer);timer=null;}
  timer=setInterval("work();",1000); 
}

function twoDigit(_v)
{  
   d = _v.toString(); 
   if (d.length	< 2)_v="0"+_v;
   return _v;
}

function work()
{
  if (!document.layers && !document.all && !document.getElementById) return;   
  var shours = hours;
  var sminutes = twoDigit(minutes);
  var sseconds = twoDigit(seconds);	
  var gLat = 38.07;
  var gLong = 23.79; 
  
  RiseSet(GRyear, GRMonth, GRday, gLong, gLat, GRTimezone);
  MRhhmm=oMoon.substring(1, 3) + ":" + oMoon.substring(3, 5);  
  MShhmm=oMoon.substring(6, 8) + ":" + oMoon.substring(8, 10);
  SRhhmm=oSun.substring(1, 3) + ":" + oSun.substring(3, 5);
  SShhmm=oSun.substring(6, 8) + ":" + oSun.substring(8, 10);	     

  movingtime = "" + "<table cellspacing='0' cellpadding='0' border='0'>"   
                  + "  <tr>"
				  + "     <td height='14' align='center' valign='top'>"   
                  + "        <font color='#FFFFFF' face='Tahoma' size='1'><b>" + GRdayname + ",&nbsp;&nbsp;" + GRday + " " + GRmonthname + " " + GRyear + ",&nbsp;&nbsp;" + shours + ":" + sminutes + ":" + sseconds + "" + "&nbsp;&nbsp;GMT + " + GRTimezone + "<br>"  
				  + "     </td>"  
   			      + "  </tr>"  	    		 
                  + "  <tr>"   
				  + "     <td height='14' align='center' valign='bottom'>"  	 
				  + "        <font color='#99CCFF' face='Tahoma' size='1'><b>Sun Rise:&nbsp;&nbsp;" + SRhhmm + "<b>&nbsp;&nbsp;Set:&nbsp;" + SShhmm + '<b>&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;Moon Rise:&nbsp;&nbsp;' + MRhhmm + "<b>&nbsp;&nbspSet:&nbsp;" + MShhmm + "</b><br>"  
				  + "     </td>"  
   			      + "  </tr>"  							  
				  + "</table>";	
				    				
  if (document.getElementById)
    document.getElementById("clock").innerHTML=movingtime;
  else if (document.layers)
  {
    document.layers.clock.document.open();
    document.layers.clock.document.write(movingtime);
    document.layers.clock.document.close();
  }
  else if (document.all)
    clock.innerHTML = movingtime;

  if(++seconds>59)     	
  {
    seconds=0;
    if(++minutes>59) 	  
    {
      minutes=0;
      if(++hours>23)
      {
        hours=0;
      }
    }
  } 
}
