function writeTime() {
 
  // get a date object
  var astrMonthName = new Array("Unknown","January","February","March","April","May","June","July","August","September","October","November","December");
  var astrDayName = new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");
  
  var UTCToday = new Date();
  // ask the object for some information
  var mon = UTCToday.getUTCMonth();
  var day = UTCToday.getUTCDate();
  var hours = UTCToday.getUTCHours();
  var minutes = UTCToday.getUTCMinutes();
  var seconds = UTCToday.getUTCSeconds();
  var msecs = UTCToday.getUTCMilliseconds();
  var year = UTCToday.getUTCFullYear();
  //currentTimeZoneOffsetInHours = UTCToday.getTimezoneOffset()/60;
  currentTimeZoneOffsetInHours =3;
  if(mon<3 || mon>9) { currentTimeZoneOffsetInHours = 2; }
  if(mon==9 && day>26) { currentTimeZoneOffsetInHours = 2; }
  	grHrs = hours + Math.abs(currentTimeZoneOffsetInHours);
	grDay = day;
	grMon = mon;
	
	if(grHrs==24) grHrs=0;
	if(grHrs==25) grHrs=1;
	if(grHrs==26) grHrs=2;
	if(grHrs==27) grHrs=3;

	if (hours == 21 || hours == 22 || hours == 23) {
		grDay = day + 1;
		if (grDay > 31) { // month change
			grDay = 1;
			grMon = mon + 1;
			if (grMon > 12) { // year change
				grMon = 1;
				year = year + 1;
			}
		}
	}

  // fixTime makes the minutes and seconds look right
  // it just sticks a zero in front of numbers less than 10
  minutes = fixTime(minutes);
  seconds = fixTime(seconds);

  // put together the time string and write it out
  var TodayDate = new Date(year,grMon,grDay,grHrs,minutes,seconds,msecs);
  var weekDay = astrDayName[TodayDate.getDay()];
  var the_date = "" + weekDay + ", " + astrMonthName[grMon+1] + " " + grDay + ", " + year;
  grHrs = fixTime(grHrs);
  var the_time = "" + grHrs + ":" + minutes +":"+seconds;
  
  //var the_time = grDay + grHrs + ":" + minutes + ":" + seconds;
  //document.form1.text1.value = the_date;
  //document.form1.text2.value = the_time;
  document.text1.B2.value= "DATE & TIME: "+(the_date)+" "+(the_time);
  //document.text1.B2.value=(the_time);

  // run this function again in half a second
  the_timeout= setTimeout('writeTime();',1000);

}

function fixTime(the_time) {
	if (the_time <10) 
	{
		the_time = "0" + the_time;
	}
	return the_time;
}

//******************************************************************************************
//JS Photo Viewer© Ver 1.0 By George Keramitzoglou e-mail geoker@otenet.gr
//******************************************************************************************
var my_position=-1;
function scrolly(y,new_position,auto) {
		if(new_position!=-1) my_position=new_position;	
		if(auto==0) clearTimeout(timerID1);
		my_position=my_position+(1*y);
		if(my_position<0) my_position=0;
		if(my_position>total_images && auto==0) my_position=total_images;
		if(my_position>total_images && auto==1) my_position=0;
		document.cphoto.src="../photos/"+my_images[my_position];
		document.phform.phselect.selectedIndex=my_position;
		window.frames["ph"].scrollTo(76*my_position, 0);
		if(auto==1) timerID1 = setTimeout('scrolly('+y+',-1,'+auto+')', 2500);
}