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;
var alarmTime = "" + document.thisForm.alarm_hour.value + ":" + document.thisForm.alarm_minute.value + "";
if (hours + ":" + minutes == "" + alarmTime) {
//window.location.href= alarmType+".html";
window.location.href= "http://space.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 changeTableSize(varWidth,varHeight)
{
	document.getElementById('spaceTable').style.width=varWidth+'%';
	document.getElementById('spaceTable').style.height=varHeight+'%';
}
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";
		}
	}
}
