<!--..................................................................................................-->
var iten
function show(id) 
{
	iten = document.getElementById(id);
	iten.style.display = 'block';
	iten.style.cursor = 'help';
	
}
function hide() 
{
	iten.style.display = "none";
}
document.onmousemove = local;
function local(e) 
{
	x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
	y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;
	if (iten != null) {
		iten.style.left = (x + (-260)) + "px";
		iten.style.top 	= (y + -80) + "px";
	}
}
<!--..................................................................................................-->
function validaEmail(vMail) 
{
	if (isEmail2(vMail))
   		return(true)
 	else
 	{
   		alert("Por favor, informe um e-mail válido");
		document.form.f_mail.value='';
		document.form.f_mail.focus();
   		return(false);
 	}
}
function isEmail2(who) 
{
	var email=/^[A-Za-z0-9]+([_\.-][A-Za-z0-9]+)*@[A-Za-z0-9]+([_\.-][A-Za-z0-9]+)*\.([A-Za-z]){2,4}$/i;
	return(email.test(who));
}
<!--..................................................................................................-->
function AbreJanela(url,largura,altura,top,left)
{
	top=((top/2)-(altura/2));
	left=((left/2)-(largura/2));
	prop = 'toolbar=no, ';
	prop += 'location=no, ';
	prop += 'directories=no, ';
	prop += 'status=no, ';
	prop += 'menubar=no, ';
	prop += 'scrollbars=yes, ';
	prop += 'resizable=no, ';
	prop += 'menubar=no, ';
	prop += 'top ='+top+', ';
	prop += 'left='+left+', ';
	prop += 'width='+largura+', ';
	prop += 'height='+altura;
	window.open(url, altura, prop);
}
<!--..................................................................................................-->
function testatecla(e) 
{	
	var vTecla;
    var vPermitidas = '8,48,49,50,51,52,53,54,55,56,57';
		
	//Verifica qual o browser Mozilla, Netescape, IE para direcionar corretamente
	if (document.all) //é IE
	{
	  if (e.keyCode == '13') //Testa se foi digitado Enter
	  {
		  alert('Tecla não permitida!');
		return(false);
		  }
	  else if (e.keyCode < '46' || e.keyCode > '58') //Testa se não foram digitados números
	  {
		alert('Digite apenas números'); 
		return(false);
	  }
	}
	else
	{	 	  
	  vTecla = e.which.toString();
	  if (e.which == '13')
	  {
		  alert('Tecla não permitida!');
		return(false);
		  }
	  else if (vPermitidas.indexOf(vTecla)==-1) //Testa se foi digitado apenas números ou TAB ou ALT ou Backspace
	  {
		alert('Digite apenas números'); 
		return(false); 
	  }
	}	
}
<!--..................................................................................................-->
