function Checkear_Datos_Sorteo()
{
	var error=false;
	$('div_error').innerHTML ="";
	if( ! $('nombre_sorteo').value )		{ $('div_error').innerHTML = "Es necesario poner el nombre.";  error=true;}
	if( ! $('apellidos_sorteo').value )		{ $('div_error').innerHTML += " Es necesario poner los apellidos.";error=true;}
	if( ! $('email_sorteo').value )			{ $('div_error').innerHTML += " Es necesario poner el email."; error=true;}
	if( ! $('tlf_sorteo').value )			{ $('div_error').innerHTML += " Es necesario escribir el tel&eacute;fono.";error=true;  }
	if( ! $('dir_sorteo').value )			{ $('div_error').innerHTML += " Es necesario poner la direcci&oacute;n.";  error=true;}
	if( ! $('cp_sorteo').value )			{ $('div_error').innerHTML += " Es necesario poner el c&oacute;digo postal.";  error=true;}
	if( ! $('poblacion_sorteo').value )		{ $('div_error').innerHTML += " Es necesario poner la poblaci&oacute;n.";  error=true;}
	//if( ! $('provincia_sorteo').value )	error += "\nEs necesario poner la Provincia";
	if( ! $('captcha_sorteo').value )		{ $('div_error').innerHTML += " Es necesario poner el c&oacute;digo de seguridad.";  error=true;}
	if( ! $('aceptacion_sorteo').checked )	{ $('div_error').innerHTML += " Es necesario aceptar los t&eacute;rminos y condiciones."; error=true;}
	//
	if(!error) {
		$('form_sorteo').submit();
	}
}

//var nav4 = window.Event ? true : false;

function IsNumber(e) {
	tecla = (document.all) ? e.keyCode : e.which;
	if (tecla==8) return true;
	patron = /\d/; // Solo acepta números
	te = String.fromCharCode(tecla);
	return patron.test(te);
} 
/*
function acceptNum(evt){
	// NOTE: Backspace = 8, Enter = 13, '0' = 48, '9' = 57
	var key = nav4 ? evt.which : evt.keyCode;
	return (key <= 13 || (key >= 48 && key <= 57));
}*/