	var hours
	var shifthours
	var minutes
	var seconds
	var localhours
	var pause=2000
	var thisplace
	var i_worldtime=0
	var timer
	var date
	var month
	var year
	var ampm
	var worldtime = new Array()

	worldtime[0]="Colombo,6"

	thisplace = worldtime[i_worldtime].split(",")
	thistime = new Date()
	hours=thistime.getUTCHours()
	date = thistime.getUTCDate();
	month = thistime.getUTCMonth();
	date = eval(date);
	year = thistime.getUTCFullYear()
	
	var m_names = new Array("Jan", "Feb", "Mar", 
					"Apr", "May", "Jun", "Jul", "Aug", "Sep", 
					"Oct", "Nov", "Dec");
	var m_dates = new Array(31,28,31,30,31,30,31,31,30,31,30,31);

	
	hours=eval(hours)
	shifthours=eval(thisplace[1])
	localhours=eval(shifthours+hours)
	if (localhours <0) {
		localhours=24+localhours
		date = date
	}
	if (localhours >=24) {
		localhours=localhours-24;
		date = date + 1
			if (date <= m_dates[month]){
				month = month;
			}else{
				
				month = month + 1;
			}
			if ((month > 11)) {
				year = year + 1;
				month = 0;
			}
	}
	minutes=thistime.getUTCMinutes()
	seconds=thistime.getUTCSeconds()

	if (eval(minutes) < 10) {minutes="0"+minutes}
	if (eval(seconds) < 10) {seconds="0"+seconds}
	if (eval(localhours) < 10) {localhours="0"+localhours}
	if (eval(localhours) < 12 ){ ampm = "AM"; }else{ ampm = "PM"; }
	
	var m_24hrs = new Array(13, 14, 15, 
					16, 17, 18, 19, 20, 21, 
					22, 23, 24);
	var m_12hrs = new Array(1,2,3,4,5,6,7,8,9,10,11,0);
	
	for(i=0;i<12;i++){
		if(localhours == m_24hrs[i]) { localhours = m_12hrs[i]; }
	}
	//thistime = localhours+":"+minutes+":"+seconds //+ " " + ampm
	thistime = localhours+":"+minutes+ " " + ampm
	document.write(date + "-" +  m_names[month] + "-" + year + "," + thistime);
