// JavaScript Document
function janela (url, lar, alt)
{
	window.open(url, "", "location=no, directories=no, resizable=no, toolbar=no, status=no, menubar=no, scrollbars=yes, width="+lar+", height="+alt);
}

function UR_Start() 
{
	UR_Nu = new Date;
	UR_Indhold = getTheDate() + " " + showFilled(UR_Nu.getHours()) + ":" + showFilled(UR_Nu.getMinutes()) + ":" + showFilled(UR_Nu.getSeconds());
	UR_Indhold += (UR_Nu.getHours() >= 12) ? " P.M." : " A.M.";
	document.getElementById("ur").innerHTML = UR_Indhold;
	setTimeout("UR_Start()",1000);
}

function showFilled(Value) 
{
	return (Value > 9) ? "" + Value : "0" + Value;
}

function getTheDate() {

               Todays = new Date();

               TheDate = "     " + (((Todays.getDate()) < 10) ? ("0" +(Todays.getDate())) : (Todays.getDate())) +" / "+ (((Todays.getMonth() + 1) < 10) ? ("0" +(Todays.getMonth() + 1)) : (Todays.getMonth() + 1)) + " / " + Todays.getFullYear() 

               return TheDate;

}