function validaOnLine(param1) 
{	
	if (param1.id=="Nombre" || param1.id=="Apellido") 
	{
		re=/[a-zA-Z]/;
	}
	else if (param1.id=="Mail")
	{
		re=/[a-z0-9.@_-]/;
	}		
	p=new String(param1.value);
	valor=p.substring(p.length-1,p.length);
	if(!re.test(valor))
	{
		param1.value=p.substring(0,p.length-1);
	}
}	

function validaFinal()
{
	if (document.fmail.nombre.value.length==0)
	{
		alert("Por favor ingrese su Nombre");
		document.fmail.nombre.focus();
	}
	else if (document.fmail.apellido.value.length==0)
	{
		alert("Por favor ingrese su Apellido");
		document.fmail.apellido.focus();
	}
	else if (document.fmail.email.value=="")
	{
		alert("Por favor ingrese un Mail");
		document.fmail.email.focus();
	}	
	else
	{		
		re=/\w+([-+.]\w+)*@\w+([-]\w+)*\.\w+([.]\w+)*/;
		if (!re.test(document.fmail.email.value)) 
		{
			alert("El e-mail ingresado es incorrecto, inténtelo de nuevo");
			document.fmail.email.focus();	
		}
		else if (document.fmail.consulta.value=="")
		{
			alert("Por favor escriba su consulta");
			document.fmail.consulta.focus();
		}
		else
		{
			document.fmail.submit();
		}
	}
}
function derecho(e)
{
		if (navigator.appName == 'Netscape' && (e.which == 2 || e.which == 3))
				return false;
		else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 3 || event.button == 2)) 
		{
					alert("Sitio web desarrollado por Acronix Digital Solutions www.acronix.com.ar - Copyright © 2004");
					return false;
		}
		return true;
}
document.onmousedown=derecho;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=derecho;
