// JavaScript Document
function abrirventana(param){

    var escuela=param
  
	var strParametros = 'scrollbars=yes,toolbar=no,menubar=no,resizable=yes,status=no,width=700,height=550';
	var ventana = window.open(param,'Ficha',strParametros);
}

function abrirventana1(param){

    var escuela=param
  
	var strParametros = 'scrollbars=no,toolbar=no,menubar=no,resizable=yes,status=no,width=650,height=650';
	var ventana = window.open(param,'Ficha',strParametros);
}

function abrirventana2(param){

    var escuela=param
  
	var strParametros = 'scrollbars=no,toolbar=no,menubar=no,resizable=no,status=no,width=640,height=720';
	var ventana = window.open(param,'Ficha',strParametros);
}

function abrirventanax(param,anchura,altura)
{
    var pagina=param
    var strParametros = 'scrollbars=yes,toolbar=no,menubar=no,resizable=no,status=no,width='+anchura+',height='+altura;
	var ventana = window.open(pagina,'Noticia',strParametros);
}

function Vacio(x)
{
 
    return (x == "");
 
}

function CheckCampos() 
{
 
       var nombre=document.formulario.nombre.value;

       var apellidos=document.formulario.apellidos.value;
 
	   var tel =document.formulario.telefono.value;

       var mail=document.formulario.email.value;
	   
 
  
      if (Vacio(nombre))
	   {
 
             alert ('Debe rellenar el campo Nombre')
 
             return false;
 
       }

	  if (Vacio(apellidos)) 
	   {
             alert ('Debe rellenar el campo Apellidos');
 
             return false;
       }
      
       if (Vacio(tel) && Vacio(mail)) 
	   {
 
			  alert ('Debe rellenar el campo Telefono ó Email');
 
             return false;
 
       }  
}

function CheckCampos1() 
{
 
       var ee=document.formulario.ee.value;

       var cif=document.formulario.cif.value;
 
	   var tel =document.formulario.telefono.value;

       var mail=document.formulario.email.value;
	   
 
  
      if (Vacio(ee))
	   {
 
             alert ('Debe rellenar el campo Nombre de empresa')
 
             return false;
 
       }

	  if (Vacio(cif)) 
	   {
             alert ('Debe rellenar el campo CIF');
 
             return false;
       }
      
       if (Vacio(tel) && Vacio(mail)) 
	   {
 
			  alert ('Debe rellenar el campo Telefono ó Email');
 
             return false;
 
       }  
}

function validaform() 
{
 
       var nombre=document.sugerencias.nombre.value;

       var email=document.sugerencias.email.value;
 
	   var tel =document.sugerencias.telefono.value;

       var asunto=document.sugerencias.quiere.value;
       var comentario=document.sugerencias.comentario.value;
	   
 
  
      if (Vacio(nombre))
	   {
 
             alert ('Debe rellenar el campo Nombre')
 
             return false;
 
       }

	      
       if (Vacio(tel) && Vacio(email)) 
	   {
 
			  alert ('Debe rellenar el campo Telefono ó Email');
 
             return false;
 
       }  
	     if (Vacio(asunto)) 
	   {
             alert ('Debe rellenar el campo asunto');
 
             return false;
       }
	      if (Vacio(comentario)) 
	   {
             alert ('Debe rellenar un comentario sobre la sugerencia');
 
             return false;
       }
}


function vercapa (Bloque)
{
		
	// abrimos o cerramos 
	switch (Bloque) { 
    case 'club': 
      {
	   if (document.all[Bloque].style.visibility == "visible")
		{
		document.all[Bloque].style.visibility = "hidden";
		document.all[Bloque].style.display = "none";
		
		}
	else
		{
		document.all[Bloque].style.visibility = "visible";
		document.all[Bloque].style.display = "block";
		}
	    	   
       break }
  	
} 
}

function cambiar_color_over(celda){ 
   celda.style.backgroundColor="#cccccc"
   celda.style.color = "#ffffff"
} 
function cambiar_color_out(celda){ 
   celda.style.backgroundColor="#ffffff" 
   celda.style.color = "#000000"
   
} 