if (top.location != document.location) top.location = document.location;

function show3() 
{
var Digital = new Date();
var hours = Digital.getHours();
var minutes = Digital.getMinutes();
var seconds = Digital.getSeconds();
dn = "AM";
//old: from text input
//var alarmTime = document.thisForm.alarm.value;
form_alarm_hour = document.getElementById('alarm_hour').value;
form_alarm_minute = document.getElementById('alarm_minute').value;
var alarmTime = "" + form_alarm_hour + ":" + form_alarm_minute + "";
if (hours + ":" + minutes == "" + alarmTime) 
{
	window.location.href= "http://analog.onlineclock.net/alarm.html";
}
if ((hours >= 12) && (minutes >= 1) || (hours >= 13)) {
dn = "PM";
hours = hours-12;
}
if (hours == 0)
hours = 12;
//extract(hours, minutes, seconds, dn);
setTimeout("show3()", 1000);
}
//  End -->
function changeImageSize(size)
{
analogClock.suspend();
theHTML = " <div id=\"analogclock\" class=\"analogclock\"";
theHTML = theHTML + "     size="+size+"";
theHTML = theHTML + "     seconds=00CCEE";
theHTML = theHTML + "     minutes=00C2EB";
theHTML = theHTML + "     hours=7FE5F6";
theHTML = theHTML + "     numstyle=1";
theHTML = theHTML + "     localzone=yes";
theHTML = theHTML + "     clockzone=\"\"";
theHTML = theHTML + "     city=\"\"";
theHTML = theHTML + "     country=\"\"";
theHTML = theHTML + "></div>";
document.getElementById('analogclockcontainer').innerHTML = theHTML;
analogClock.replace();
analogClock.resume();
}
function changeBackground(color)
{
	document.bgColor=color;
}
function removeUnderline(linknumber)
{
	for (i = 0; i <4; i++)
	{
		if(i==linknumber)
		{
			document.links[i].style.textDecoration = "none";
			document.links[i].style.fontWeight = "normal";
		}
		else
		{
			document.links[i].style.textDecoration = "underline";
			document.links[i].style.fontWeight = "bold";
		}
	}
}
function removeUnderline2(linknumber)
{
	for (i = 4; i <9; i++)
	{
		if(i==linknumber)
		{
			document.links[i].style.textDecoration = "none";
			document.links[i].style.fontWeight = "normal";
		}
		else
		{
			document.links[i].style.textDecoration = "underline";
			document.links[i].style.fontWeight = "bold";
		}
	}
}
