function checkTrabajaConNosotros()
{
    var error   = 0;
    var mensaje = "";


    //1.- Verificar el comboBox de Referencia 'referencia'
    
    aVerificar = [ 'nombre' ]; // Estos campos deben tener tamaño mínimo.
    aVerificar.each(
        function( e )
        {
            if( $( e ).value == "" )
            {
                $( e ).style.borderColor = 'red';
                error = 1;
            }
            else
            {
                $( e ).style.borderColor = '#B7B7BB';
            }
        }
    );


    //3.- Verificar el campo file, que contenga un fichero.
    //4.- Ha aceptado las condiciones de cesión de datos?

    if( error )
    {
        if( mensaje != "" )
        {
            mensaje += "<br/>";
        }
        $( 'mensajeError' ).innerHTML     = mensaje + "Por favor, rellene correctamente los campos resaltados.";
        $( 'mensajeError' ).style.display = "block";
    }

    return !error;
}


/*function v1( event )
{
                $( "ref1" ).style.display = "block";
				
            
}

function v2( event )
            {
            	$( "valor1" ).style.color = "#8A8278";
            	$( "valor2" ).style.color = "#f8991d";
            	$( "valor3" ).style.color = "#8A8278";
            	$( "valor4" ).style.color = "#8A8278";
            	$( "valor5" ).style.color = "#8A8278";
            	$( "valor6" ).style.color = "#8A8278";
            	$( "valor7" ).style.color = "#8A8278";
            	$( "valor8" ).style.color = "#8A8278";
            	$( "valor9" ).style.color = "#8A8278";
            	$( "valor10" ).style.color = "#8A8278";
            
               $( "solucion1" ).style.display = "none";
               	$( "solucion2" ).style.display = "none";
                $( "solucion3" ).style.display = "none";
                $( "solucion4" ).style.display = "none";
				$( "solucion5" ).style.display = "none";
				$( "solucion6" ).style.display = "none";
				$( "solucion7" ).style.display = "block";
				$( "solucion8" ).style.display = "block";
                $( "solucion7" ).style.color = "#c00e3a";
                $( "solucion8" ).style.color = "#c00e3a";
            }

function v3( event )
            {
                $( "valor1" ).style.color = "#8A8278";
            	$( "valor2" ).style.color = "#8A8278";
            	$( "valor3" ).style.color = "#f8991d";
            	$( "valor4" ).style.color = "#8A8278";
            	$( "valor5" ).style.color = "#8A8278";
            	$( "valor6" ).style.color = "#8A8278";
            	$( "valor7" ).style.color = "#8A8278";
            	$( "valor8" ).style.color = "#8A8278";
            	$( "valor9" ).style.color = "#8A8278";
            	$( "valor10" ).style.color = "#8A8278";
                
                $( "solucion1" ).style.display = "none";
               	$( "solucion2" ).style.display = "none";
                $( "solucion3" ).style.display = "none";
				$( "solucion6" ).style.display = "none";
                $( "solucion8" ).style.display = "none";
				$( "solucion4" ).style.display = "block";
				$( "solucion5" ).style.display = "block";
				$( "solucion7" ).style.display = "block";
                $( "solucion4" ).style.color = "#c00e3a";
				$( "solucion5" ).style.color = "#c00e3a";
                $( "solucion7" ).style.color = "#c00e3a";
				
               
               
            }

function v4( event )
            {
            	$( "valor1" ).style.color = "#8A8278";
            	$( "valor2" ).style.color = "#8A8278";
            	$( "valor3" ).style.color = "#8A8278";
            	$( "valor4" ).style.color = "#f8991d";
            	$( "valor5" ).style.color = "#8A8278";
            	$( "valor6" ).style.color = "#8A8278";
            	$( "valor7" ).style.color = "#8A8278";
            	$( "valor8" ).style.color = "#8A8278";
            	$( "valor9" ).style.color = "#8A8278";
            	$( "valor10" ).style.color = "#8A8278";
            	
                $( "solucion1" ).style.display = "none";
                $( "solucion2" ).style.display = "none";
                $( "solucion3" ).style.display = "none";
				$( "solucion6" ).style.display = "none";
				$( "solucion8" ).style.display = "none";
				
				$( "solucion4" ).style.display = "block";
				$( "solucion5" ).style.display = "block";
				$( "solucion7" ).style.display = "block";
                $( "solucion4" ).style.color = "#c00e3a";
                $( "solucion5" ).style.color = "#c00e3a";
                $( "solucion7" ).style.color = "#c00e3a";
               
            }

function v5( event )
            {
            	$( "valor1" ).style.color = "#8A8278";
            	$( "valor2" ).style.color = "#8A8278";
            	$( "valor3" ).style.color = "#8A8278";
            	$( "valor4" ).style.color = "#8A8278";
            	$( "valor5" ).style.color = "#f8991d";
            	$( "valor6" ).style.color = "#8A8278";
            	$( "valor7" ).style.color = "#8A8278";
            	$( "valor8" ).style.color = "#8A8278";
            	$( "valor9" ).style.color = "#8A8278";
            	$( "valor10" ).style.color = "#8A8278";
            	
				$( "solucion6" ).style.display = "none";
				
				$( "solucion1" ).style.display = "block";
				$( "solucion2" ).style.display = "block";
				$( "solucion3" ).style.display = "block";
				$( "solucion4" ).style.display = "block";
				$( "solucion5" ).style.display = "block";
				$( "solucion7" ).style.display = "block";
				$( "solucion8" ).style.display = "block";
				
                $( "solucion1" ).style.color = "#c00e3a";
                $( "solucion2" ).style.color = "#c00e3a";
                $( "solucion3" ).style.color = "#c00e3a";
                $( "solucion4" ).style.color = "#c00e3a";
                $( "solucion5" ).style.color = "#c00e3a";
                $( "solucion7" ).style.color = "#c00e3a";
                $( "solucion8" ).style.color = "#c00e3a";
            }

function v6( event )
            {
                $( "valor1" ).style.color = "#8A8278";
            	$( "valor2" ).style.color = "#8A8278";
            	$( "valor3" ).style.color = "#8A8278";
            	$( "valor4" ).style.color = "#8A8278";
            	$( "valor5" ).style.color = "#8A8278";
            	$( "valor6" ).style.color = "#f8991d";
            	$( "valor7" ).style.color = "#8A8278";
            	$( "valor8" ).style.color = "#8A8278";
            	$( "valor9" ).style.color = "#8A8278";
            	$( "valor10" ).style.color = "#8A8278";
                
                $( "solucion1" ).style.display = "none";
                $( "solucion2" ).style.display = "none";
                $( "solucion3" ).style.display = "none";
                $( "solucion4" ).style.display = "none";
                $( "solucion5" ).style.display = "none";
                $( "solucion6" ).style.display = "none";
				$( "solucion8" ).style.display = "none";
				
				$( "solucion7" ).style.display = "block";
                $( "solucion7" ).style.color = "#c00e3a";
               
            }

 function v7( event )
            {
            	$( "valor1" ).style.color = "#8A8278";
            	$( "valor2" ).style.color = "#8A8278";
            	$( "valor3" ).style.color = "#8A8278";
            	$( "valor4" ).style.color = "#8A8278";
            	$( "valor5" ).style.color = "#8A8278";
            	$( "valor6" ).style.color = "#8A8278";
            	$( "valor7" ).style.color = "#f8991d";
            	$( "valor8" ).style.color = "#8A8278";
            	$( "valor9" ).style.color = "#8A8278";
            	$( "valor10" ).style.color = "#8A8278";
            	
                $( "solucion1" ).style.display = "none";
				$( "solucion4" ).style.display = "none";
                $( "solucion5" ).style.display = "none";
                $( "solucion6" ).style.display = "none";
                $( "solucion7" ).style.display = "none";
                $( "solucion8" ).style.display = "none";
				
				$( "solucion7" ).style.display = "block";
                $( "solucion8" ).style.display = "block";
				
                $( "solucion2" ).style.color = "#c00e3a";
                $( "solucion3" ).style.color = "#c00e3a";
                
            }

function v8( event )
            {
            	$( "valor1" ).style.color = "#8A8278";
            	$( "valor2" ).style.color = "#8A8278";
            	$( "valor3" ).style.color = "#8A8278";
            	$( "valor4" ).style.color = "#8A8278";
            	$( "valor5" ).style.color = "#8A8278";
            	$( "valor6" ).style.color = "#8A8278";
            	$( "valor7" ).style.color = "#8A8278";
            	$( "valor8" ).style.color = "#f8991d";
            	$( "valor9" ).style.color = "#8A8278";
            	$( "valor10" ).style.color = "#8A8278";
            	
                $( "solucion1" ).style.display = "none";
                $( "solucion2" ).style.display = "none";
                $( "solucion3" ).style.display = "none";
                $( "solucion4" ).style.display = "none";
                $( "solucion5" ).style.display = "none";
                $( "solucion6" ).style.display = "none";
				$( "solucion8" ).style.display = "none";
				
				$( "solucion7" ).style.display = "block";
                $( "solucion7" ).style.color = "#c00e3a";
               
            }

function v9( event )
            {
            	$( "valor1" ).style.color = "#8A8278";
            	$( "valor2" ).style.color = "#8A8278";
            	$( "valor3" ).style.color = "#8A8278";
            	$( "valor4" ).style.color = "#8A8278";
            	$( "valor5" ).style.color = "#8A8278";
            	$( "valor6" ).style.color = "#8A8278";
            	$( "valor7" ).style.color = "#8A8278";
            	$( "valor8" ).style.color = "#8A8278";
            	$( "valor9" ).style.color = "#f8991d";
            	$( "valor10" ).style.color = "#8A8278";
            	
                $( "solucion1" ).style.display = "none";
                $( "solucion2" ).style.display = "none";
                $( "solucion3" ).style.display = "none";
                $( "solucion4" ).style.display = "none";
                $( "solucion5" ).style.display = "none";
                $( "solucion7" ).style.display = "none";
				
				$( "solucion6" ).style.display = "block";
                $( "solucion8" ).style.display = "block";
				
				$( "solucion6" ).style.color = "#c00e3a";
                $( "solucion8" ).style.color = "#c00e3a";
				 
            }

function v10( event )
            {
            	$( "valor1" ).style.color = "#8A8278";
            	$( "valor2" ).style.color = "#8A8278";
            	$( "valor3" ).style.color = "#8A8278";
            	$( "valor4" ).style.color = "#8A8278";
            	$( "valor5" ).style.color = "#8A8278";
            	$( "valor6" ).style.color = "#8A8278";
            	$( "valor7" ).style.color = "#8A8278";
            	$( "valor8" ).style.color = "#8A8278";
            	$( "valor9" ).style.color = "#8A8278";
            	$( "valor10" ).style.color = "#f8991d";
            	
				$( "solucion4" ).style.display = "none";
                $( "solucion5" ).style.display = "none";
                $( "solucion6" ).style.display = "none";
                $( "solucion7" ).style.display = "none";
                $( "solucion8" ).style.display = "none";
				
				$( "solucion1" ).style.display = "block";
                $( "solucion2" ).style.display = "block";
                $( "solucion3" ).style.display = "block";
				
                $( "solucion1" ).style.color = "#c00e3a";
                $( "solucion2" ).style.color = "#c00e3a";
                $( "solucion3" ).style.color = "#c00e3a";
               
            }

Event.observe( window , "load" ,
    function()
    {
        Event.observe( 'trabajaConNosotros.gectcom' , 'click' ,v1);
        Event.observe( 'valor2' , 'click' ,v2);
        Event.observe( 'valor3' , 'click' ,v3);
        Event.observe( 'valor4' , 'click' ,v4);
        Event.observe( 'valor5' , 'click' ,v5);
        Event.observe( 'valor6' , 'click' ,v6);
        Event.observe( 'valor7' , 'click' ,v7);
        Event.observe( 'valor8' , 'click' ,v8);
        Event.observe( 'valor9' , 'click' ,v9);
        Event.observe( 'valor10' , 'click' ,v10);
            
        
    }
);

function init(param)
{
	Event.observe(window, 'load', param);
}
*/

var capa
function cambio(idCapa){
	if (document.layers) capa = eval("document." + idCapa);
	if (document.all) capa = eval(idCapa + ".style");
	if (document.getElementById) capa = eval('document.getElementById("' + idCapa + '").style');
	if ((capa.visibility == "hidden") || (capa.visibility == "hide") || (capa.display == "none") ){
		capa.visibility = (document.layers) ? "show" : "visible" ;
		capa.display = (document.layers) ? "block" : "block"; 
	}else{
		capa.visibility = (document.layers) ? "hide" : "hidden" ;
		capa.display = (document.layers) ? "none" : "none"; 
	}
}