function currentTime() {
	now = new Date();
	GMTnow = now.toGMTString();	
	GMT10diff = parseInt(Date.parse(GMTnow) - parseInt(36000000));	
	GMT10 = new Date(GMT10diff);
	GMT10Date = GMT10.toGMTString();
	tihour = GMT10.getUTCHours();
	timin = GMT10.getUTCMinutes();
	tidate = GMT10.getUTCDate();
    timonth = GMT10Date.substring(7,11);
	tiyear = GMT10.getUTCFullYear();

	var ap = "am";
	if (tihour   > 11) { ap = "pm";        }
	if (tihour   > 12) { tihour = tihour - 12; }
	if (tihour   == 0) { tihour = 12;        }
	if (timin < 10) { timin = "0" + timin; }
	
    var greeting = "";
	if (ap == "am") { greeting = "Aloha Kakahiaka"; }
	if (ap == "pm" && tihour >= 6 && tihour != 12) { greeting = "Aloha Ahiahi"; }
	if (ap == "pm" && tihour < 6) { greeting = "Aloha Auinala"; }
	if (ap == "pm" && tihour == 12) { greeting = "Aloha Auinala"; }
			
			document.write(greeting);
			document.write(' &nbsp; | &nbsp; ');
			document.write(timonth + ' ' + tidate + ', ' + tiyear);
			document.write(' &nbsp; | &nbsp; ');
			document.write(tihour + ':' + timin + ap + ' HST');
}
