function Jump(url) {
	window.location.href = url;
}

function doSelect() {
	/* This function determines what your buttons do when they are selected
	(navigate, call a function, etc.). This function will get called whenever user
	clicks a focusable item, or selects it with "OK" button on remote. Make sure to
	include a case below for each focusable item on the page */
}

function setStyle(x) {
	document.getElementById(x+"left").style.backgroundImage="url(/images/button_blue_l.gif)";
	document.getElementById(x).style.backgroundImage = "url(/images/button_blue_m.gif)";
	document.getElementById(x+"right").style.backgroundImage="url(/images/button_blue_r.gif)";
}

function removeStyle(x) {
	document.getElementById(x+"left").style.backgroundImage="url(/images/button_grey_l.gif)";
	document.getElementById(x).style.backgroundImage="url(/images/button_grey_m.gif)";
	document.getElementById(x+"right").style.backgroundImage="url(/images/button_grey_r.gif)";
}

function setStyleStartGame(x) {
	document.getElementById(x).style.backgroundImage = "url(/images/button_oneball_blue.gif)";
}

function removeStyleStartGame(x) {
	document.getElementById(x).style.backgroundImage = "url(/images/button_oneball_gray.gif)";
}

function validateEmail(field, alerttxt) {
	with (field) {
		apos=value.indexOf("@");
		dotpos=value.lastIndexOf(".");
		
		if (apos<1||dotpos-apos<2) {
			var error = document.getElementById('error');
			error.style.visibility = 'visible';
			return false;
		}
		else {
			return true;
		}
	}
}

function validateForm(thisform) {
	with (thisform) {
		if (validateEmail(Email, "error") == false) {
			Email.focus();
			return false;
		}
	}
}