function letternumber(e)
{
var key;
var keychar;

if (window.event)
   key = window.event.keyCode;
else if (e)
   key = e.which;
else
   return true;
keychar = String.fromCharCode(key);
keychar = keychar.toLowerCase();

// control keys
if ((key==null) || (key==0) || (key==8) || 
    (key==9) || (key==13) || (key==27) )
   return true;

// alphas and numbers
else if ((("áéíóúabcdefghijklmnopqrstuvwxyz@ñ 0123456789.-_,").indexOf(keychar) > -1))
   return true;
else
   return false;
}
function enviar(){

	valor1 = document.form1.email.value;	
	valor2 = document.form1.usuario.value;
	//valor3 = document.form1.tema.value;	
	//valor4 = document.form1.tuemail.value;
	//valor5 = document.form1.nombre.value;
	//valor6 = document.form1.asunto.value;
	//valor7 = document.form1.mensaje.value;
	
	if ((valor1 == "") || (valor1 == " "))
	{	alert("Debes ingresar tu E-mail.");
		document.form1.email.focus();}
	
	
	else if ((valor2 == "") || (valor2 == " "))
	{	alert("Debes ingresar tu usuario.");
		document.form1.usuario.focus();}
	/*
	else if ((valor3 == "") || (valor3 == " "))
	{	alert("Debes ingresar la Categoría.");
		document.form1.tema.focus();}
	
	else if ((valor4 == "") || (valor4 == " "))
	{	alert("Debes ingresar tu E-mail.");
		document.form1.tuemail.focus();}
	
	else if ((valor5 == "") || (valor5 == " "))
	{	alert("Debes ingresar su Nombre.");
		document.form1.nombre.focus();}
	
	else if ((valor6 == "") || (valor6 == " "))
	{	alert("Debes ingresar el Asunto.");
		document.form1.asunto.focus();}
		
	else if ((valor7 == "") || (valor7 == " "))
	{	alert("Debes ingresar el Contenido.");
		document.form1.mensaje.focus();}
	*/
	else{ 
		document.form1.submit();
	}
}

function cancelar()
{ 
	document.form1.reset();
	document.form1.email.focus();
}
