<!-- Begin

addEventListener("load", function()
{
		setTimeout(updateLayout, 0);
}, false);

var currentWidth = 0;

function updateLayout()
{
		if (window.innerWidth != currentWidth)
		{
				currentWidth = window.innerWidth;

				var orient = currentWidth == 320 ? "profile" : "landscape";
				document.body.setAttribute("orient", orient);
				setTimeout(function()
				{
						window.scrollTo(0, 1);
				}, 100);            
		}
}

setInterval(updateLayout, 400);

function beginIt() {

now = new Date();
seed = now.getSeconds();

day = new Date();
startType = day.getTime();

document.thisForm.typed.focus();
}
function stopIt() {
dayTwo = new Date();
endType = dayTwo.getTime();
totalTime = ((endType - startType) / 1000)
typedWord = ((document.thisForm.typed.value).length / 5);
spd = Math.round((typedWord/totalTime) * 60);
if (typedWord == 0) {
	alert("You didn't type anything")
}
else {
	alert("You typed approximately " + typedWord + " words at a rate of " + spd + " words per minute.")
}
}
// End -->