function verTextoCompleto(textoReducido,textoCompleto){

    textoReducido = document.getElementById(textoReducido);
    textoCompleto = document.getElementById(textoCompleto);
    
    if(textoCompleto.style.display=='none'){
      textoReducido.style.display='none';
      textoCompleto.style.display='';
    }else{
      textoCompleto.style.display='none';
      textoReducido.style.display='';
    }

}


function emailCheck (valor) {

    if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(valor)){
        return (true)
    } else {
        return (false);
    }

}




function checkUsuarioNewsletter(form){
       
    var objNombre = form.nombre;
    var objApellido1 = '' //form.apellido1;  
    var objApellido2 = '' //form.apellido2;    
    var objEmail = form.email;
     
    if (objNombre.value == '') {
        alert('Introduzca su nombre ');
        objNombre.focus();
        return false;
    }
     
    if(objEmail.value == ''){
        alert('Introduzca su email ');
        objNombre.focus();
        return false;
    }else if (!emailCheck(objEmail.value)) {
        alert('Introduzca un email valido'); 
        objEmail.focus();
        return false;
    }
    
        
    form.submit();
    

}


	
	  var min=-225*3+40;
	  var pos=0;
	  var max=0;
	  var moveon=0;	  

  function mover(paso)
  {
	  //alert(pos + ',' +min);
	  if (moveon==1 && paso<0 && pos>min)
	  {
		  pos=pos+paso;
		  document.getElementById('slide').style.left=pos+'px';
		  setTimeout("mover("+paso+")",100);
	  }
	  else if (moveon==1 && paso>0 && pos<max)
	  {
		  pos=pos+paso;
		  document.getElementById('slide').style.left=pos+'px';
		  setTimeout("mover("+paso+")",100);
	  }
  }




