// Control of the top-right box.
function pause(ms) 
{
	var now = new Date();
	var exitTime = now.getTime() + ms;
	while (true) 
	{
		now = new Date();
		if (now.getTime() > exitTime)
		return;
	}
}


function clickclear(thisfield, defaulttext) 
{
	if (thisfield.value == defaulttext) 
	{
		thisfield.value = "";
	}
}

function clickrecall(thisfield, defaulttext) 
{
	if (thisfield.value == "") 
	{
		thisfield.value = defaulttext;
	}
}

function popOpen()
{
	// Open up the box.
	//new Effect.Scale(document.getElementById('message'), 200, {scaleContent: false})
	
	// Change the innerHTML to another message.
	thebox = document.getElementById('message');

	thebox.style.width='420px';
	thebox.style.height='120px';


	newbox = document.getElementById('message-hidden');		
	thebox.innerHTML = newbox.innerHTML;
}

function popClose()
{
	thebox = document.getElementById('message');
	thebox.style.display='none';
}