function fnCheckNumberLength(id,e,l)
{
	var unicode=e.charCode? e.charCode : e.keyCode

	if (unicode == 8 || unicode == 9 || unicode == 37 || unicode == 39 || unicode == 46)
		return true;
	if (l > 0 && id.value.length >= l) return false;

	if (unicode!=8 && unicode !=9){
		if ((unicode<48||unicode>57))
		return false //disable key press
	}

	return true;	
}

function fnConfirmSubscribe()
{
	var filter = /^[\x20-\x2D\x2F-\x7E]+(\.[\x20-\x2D\x2F-\x7E]+)*@(([a-z0-9]([-a-z0-9]*[a-z0-9]+)?){1,63}\.)+[a-z0-9]{2,6}$/;
//	var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	email = document.getElementById('subscribe_email');
	if (!filter.test(email.value)) {
		alert("please provide a valid email address");
		return false; 
	}
	if (document.getElementById("subscribe_email").value == "") return false;
	return confirm("Please confirm you wish to subscribe to our mailing list");
}

function fnShowTAC()
{
  wint = (screen.height-573)/2;
  winl =(screen.width-753)/2;  
  win = window.open("tac.html", "Disclaimer", "location=0,menubar=0,resizable=0,dependent=0,status=0,titlebar=0,width=753,height=573,top="+wint+", left=" + winl + ",scrollbars=0", 1);
  win.location.href = "tac.html";
  win.focus();
}

