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) { greeting = "Aloha Auinala"; }

	if (ap == " pm" && tihour >= 6) { greeting = "Aloha Ahiahi"; }

			

			document.write(greeting);



			document.write(' <br>');

			document.write(tihour + ':' + timin + ap + ' HST');

}

