	function show_aviso()
	{
           var alto_= 480;
           var ancho_= 640;
	   var sup_ = (screen.height-alto_)/2;
           var izq_ = (screen.width-ancho_)/2;
           
		popupWin = window.open('aviso.html',	 'open_window',
		 ' dependent '+
                 ', width='+ancho_+
                 ', height='+alto_+
                 ', left='+izq_+
                 ', top='+sup_+
                 ',toolbar=0'+
                 ',location=0'+
                 ',status=0' + 
                 ',menubar=0' + 
                 ',scrollbars=1' +
                 ',resizable=1' );

	}

	function show_privacidad()
	{
           var alto_= 480;
           var ancho_= 640;
	   var sup_ = (screen.height-alto_)/2;
           var izq_ = (screen.width-ancho_)/2;            
		popupWin = window.open('privacidad.html', 'open_window',
		 ' dependent '+
                 ', width='+ancho_+
                 ', height='+alto_+
                 ', left='+izq_+
                 ', top='+sup_+
                 ',toolbar=0'+
                 ',location=0'+
                 ',status=0' + 
                 ',menubar=0' + 
                 ',scrollbars=1' +
                 ',resizable=1' );

	}
	
		function show_nopdf()
	{
           var alto_= 200;
           var ancho_=300;
	   var sup_ = (screen.height-alto_)/2;
           var izq_ = (screen.width-ancho_)/2;
           
		popupWin = window.open('nopdf.html', 'open_window',
		 ' dependent '+
                 ', width='+ancho_+
                 ', height='+alto_+
                 ', left='+izq_+
                 ', top='+sup_+
                 ',toolbar=0'+
                 ',location=0'+
                 ',status=0' + 
                 ',menubar=0' + 
                 ',scrollbars=0' + 
                 ',resizable=1' );

	}

	function show_tutor(name_)
        {
           var alto_= 200;
           var ancho_=300;
	   var sup_ = (screen.height-alto_)/2;
           var izq_ = (screen.width-ancho_)/2;
               
           
           popupWin = window.open('tutor.php?n='+name_,	 'open_window',
		 ' dependent '+
                 ', width='+ancho_+
                 ', height='+alto_+
                 ', left='+izq_+
                 ', top='+sup_+
                 ',toolbar=0'+
                 ',location=0'+
                 ',status=0' + 
                 ',menubar=0' + 
                 ',scrollbars=0' + 
                 ',resizable=1' );
         }
         
 function en_ventana_nueva(url_)
	{
		popupWin = window.open(url_,	 'open_window',
		 'scrollbars, resizable, dependent, width=640, height=480, left=0, top=0')

	}

  function mail_formulario()
	{
      return ('j.perez@flyco.es');
	}

function check_form_generico(f_obj) {
   /*
    *  Chequeador de formularios.
    *  Solo los tags INPUT, SELECT y TEXTAREA
    *  Verifica que el contenido no sea nulo y el formato.
    *  V1.0 By Flyco 2009 23/02/2009
    *
MODIFICACION SOBRE ORIGINAL !!!!!!!!!
    */

  var cont;
  var JSRegExp = new RegExp;
  var valor, tamano, letra; // para usar en verificacion NIF
  var $componente; // por si no existe la etiqueta title

 f_items=f_obj.getElementsByTagName("INPUT");
 total=f_items.length;

 for(cont = 0; cont < total; cont++)
    {
    //  alert(f_items[cont].type+' | '+f_items[cont].name);

      if ( (f_items[cont].id!='campo_readonly')  &&
           (f_items[cont].id!='opcional')  &&
           (f_items[cont].style.visibility != 'hidden') &&
           (f_items[cont].type=='text') )
         {
             $componente=f_items[cont].title;
             if ($componente=='') $componente=f_items[cont].name;

             if (f_items[cont].name=='email_tb' && f_items[cont].value=='') {}
             else
             if (f_items[cont].value=='')  // que no este vacio
                {
                  alert('Revise los datos introducidos.\nRellene los campos vacios. ['+$componente+']');
                  return false;
                }

             if (f_items[cont].id!='') // que cumpla el formato
                 {
                   JSRegExp=RegExp(f_items[cont].id);
                   valor=f_items[cont].value.toUpperCase();
                   tamano=f_items[cont].value.length;

                   if (f_items[cont].name=='email_tb' && f_items[cont].value=='') {}
                   else
                   {
                   if (!JSRegExp.test(valor))
                       {
                         alert('Revise el formato del campo '+$componente);
                         return false;
                       }
                   }

                  }
         }
    }

 f_items=f_obj.getElementsByTagName("TEXTAREA");
 total=f_items.length;
 for(cont = 0; cont < total; cont++)
    {
      $componente=f_items[cont].title;
      if ($componente=='') $componente=f_items[cont].name;

      if ( (f_items[cont].id!='campo_readonly')  &&
           (f_items[cont].id!='opcional') &&
           (f_items[cont].value=='') )
            { alert('Revise los datos introducidos.\nRellene los campos vacios. ['+$componente+']');
              return false;
            }
    }


//alert('todo correcto!') ;
//return false;
return true;
}

