var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var weekday=new Array(7)

weekday[0]="Sunday"
weekday[1]="Monday"
weekday[2]="Tuesday"
weekday[3]="Wednesday"
weekday[4]="Thursday"
weekday[5]="Friday"
weekday[6]="Saturday"



function UR_Start() 
{
	
	
	
	
	
	
	UR_Nu = new Date;
	
	var hours = UR_Nu.getHours();
	var minutes = UR_Nu.getMinutes();
	var seconds = UR_Nu.getSeconds();
	var amOrPm = "AM";
	if (hours > 11) amOrPm = "PM";
	if (hours > 12) hours = hours - 12;
	if (hours == 0) hours = 12;
	if (minutes <= 9) minutes = "0" + minutes;
	if (seconds <= 9) seconds = "0" + seconds;
	
	
	var ziua = weekday[UR_Nu.getDay()];
	var lmonth=months[UR_Nu.getMonth() + 1];
	var year=UR_Nu.getYear();
	if (year < 2000)
	year = year + 1900;
	UR_Indhold = showFilled(ziua + " - "+ lmonth +", "+ UR_Nu.getDate() +" " + year + " | " + "&nbsp;" + hours +  ":"  + minutes  +  ":"  +  seconds +  " "  + amOrPm);
	
	document.getElementById("ur").innerHTML = UR_Indhold;
	
	setTimeout("UR_Start()",1000);
}
function showFilled(Value) 
{
	return "" + Value;
}
