function showRemote() {
self.name = "main"; // names current window as "main"
var windowprops = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,' +
'width=250,height=400';
OpenWindow = window.open("remote-control.html", "remote", windowprops); // opens remote control
}

// Get today's current date.
var now = new Date();
// Array list of days.
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
// Array list of months.
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
// Calculate the number of the current day in the week.
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
// Calculate four digit year.
function fourdigits(number)	{
	return (number < 1000) ? number + 1900 : number;
}
function putDateHere() {
	today =  days[now.getDay()] + ", " +
              months[now.getMonth()] + " " +
               date + ", " +
                (fourdigits(now.getYear())) ;
	// Print out the data.
	document.write("" +today);
}

function addressHere(user,domain,tld) {
	document.write('<a href=\"mailto:' + user + '@' + domain + '.' + tld + '\">');
	document.write(user + '@' + domain + '.' + tld + '</a>');
}
