function vernumerico(carac)
{
	if(document.all) 
	{
		var x = window.event.keyCode; 
	}
	else
	{ 
		x = carac.which; 
	} 

	if (x!=0 && x!=8)
	{
		x = String.fromCharCode(x);
		y = "0123456789";
		fl_number = false;
	
		for (i=0;i<=10;i++)
		{
			if (x==y.charAt(i))
			{
				fl_number = true;
				i=11;
			}
		}
	
		if (!fl_number)
		{
			if(document.all) 
			{
				carac.keyCode = -1;
			}
			else
			{ 
				NS6_onKeypress(carac);
			} 

			return false;
		}
		else
		{	
			return true;
		}
	}
	else
	{
		return true;
	}
}

function NS6_onKeypress(e)
{
	e.preventDefault(); // must get keypress before it gets to input box "text1"
	if (e.eventPhase==1) return false;
}
