<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">jQuery(document).ready(function() {
	
	var submit_formulario = false;
        var submit_formulario_describir_necesidad = false;
	
	jQuery('#formulario_hazte_proveedor').submit(function(e){
		
		e.preventDefault();

		if (!submit_formulario) {
			solicitar_info_hazte_proveedor();			
		}
		
	});
	
	
	jQuery('.btn-contacto').click(function(){  
		ga('send', 'event', 'LandingProveedor', 'click_mas_info', ''); 
		jQuery('html, body').animate({scrollTop:0}, 'slow'); 
		return false;
	});

	
	jQuery('#form_hazte_proveedor_landing').submit(function(e){
		
		e.preventDefault();

		if (!submit_formulario) {
			solicitar_info_hazte_proveedor_landing();			
		}
		
	});
        
        
        jQuery('#formulario_describir_necesidad').submit(function(e){

            e.preventDefault();

            if (!submit_formulario) {
                enviar_form_describir_necesidad();			
            }
		
	});

	jQuery('#formulario_landing_guias').submit(function(e){
		
		e.preventDefault();

		if (!submit_formulario) {
			solicitar_info_landing_guias();			
		}
		
	});
	
	jQuery('#formulario_descarga_guias').submit(function(e){
		
		e.preventDefault();

		if (!submit_formulario) {
			solicitar_info_descarga_guias();			
		}
		
	});	
        
	jQuery('#formulario_tendencias').submit(function(e){
		
		e.preventDefault();

		if (!submit_formulario) {
			solicitar_info_tendencias();			
		}
		
	});        

	jQuery('.formulario_oficina').submit(function(e){
		
                var uniqid = jQuery(this).find('#uniqid').val();
		e.preventDefault();

		if (!submit_formulario) {
			solicitar_info_oficina(uniqid);			
		}
		
	});  

	jQuery('#formulario_landing_informes').submit(function(e){
		
		e.preventDefault();

		if (!submit_formulario) {
			solicitar_info_landing_informes();			
		}
		
	});	
    
});


function solicitar_info_hazte_proveedor_landing() {
	
	var msg;
	error = false;
	
	submit_formulario = true;
	
	jQuery('#form_hazte_proveedor_landing *').css('cursor', 'wait');
	
	jQuery('#form_hazte_proveedor_landing [name]').css('border', '0px');
	
	if ( !jQuery('#form_hazte_proveedor_landing input[name=nombre]').val()) {
		error = true;
		msg = "Debe completar todos los campos nombre";
		jQuery('#form_hazte_proveedor_landing input[name=nombre]').css('border', '1px solid red');
		
	}

	if ( !jQuery('#form_hazte_proveedor_landing input[name=empresa]').val()) {
		error = true;
		msg = "Debe completar todos los campos empresa";
		jQuery('#form_hazte_proveedor_landing input[name=empresa]').css('border', '1px solid red');
		
	}		
	
	if ( !jQuery('#form_hazte_proveedor_landing input[name=telefono]').val()) {
		msg = "Debe completar todos los campos telefono";
		error = true;
		jQuery('#form_hazte_proveedor_landing input[name=telefono]').css('border', '1px solid red');
	}
	
	expr = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	
	if (!expr.test(jQuery('#form_hazte_proveedor_landing input[name=email]').val())){
		error = true;
		msg = "Email no vÃ¡lido";
		jQuery('#form_hazte_proveedor_landing input[name=email]').css('border', '1px solid red');		
	}
	
	if ( !jQuery('#form_hazte_proveedor_landing input[name=email]').val()) {
		error = true;
		msg = "Debe completar todos los campos email";
		jQuery('#form_hazte_proveedor_landing input[name=email]').css('border', '1px solid red');
	}
	
	if ( !jQuery('#form_hazte_proveedor_landing #ambito').val()) {
		error = true;
		msg = "Debe indicar el Ã¡mbito de actividad";
		jQuery('#form_hazte_proveedor_landing #ambito').css('border', '1px solid red');
		
	}	
		
	if ( !jQuery('#form_hazte_proveedor_landing input[name=acepto]').is(':checked') ) {
		error = true;
		msg = "Debe aceptar las condiciones legales";
	}
	

	if (!error) {
		
		jQuery.post(
				MyAjax.url, {
					action : 'enviar_consulta_hazte_proveedor_landing',
					nombre: jQuery('#form_hazte_proveedor_landing input[name=nombre]').val(),					
					empresa: jQuery('#form_hazte_proveedor_landing input[name=empresa]').val(),
					telefono: jQuery('#form_hazte_proveedor_landing input[name=telefono]').val(),
                                        procedencia: jQuery('#form_hazte_proveedor_landing input[name=procedencia]').val(),
					email: jQuery('#form_hazte_proveedor_landing input[name=email]').val(),
					ambito: jQuery('#form_hazte_proveedor_landing #ambito').val(),
					utm_source: jQuery('#form_hazte_proveedor_landing input[name=utm_source]').val(),
					utm_medium: jQuery('#form_hazte_proveedor_landing input[name=utm_medium]').val(),
					utm_campaign: jQuery('#form_hazte_proveedor_landing input[name=utm_campaign]').val(),
				}, function(response) {
					jQuery('#status_form_hazte_proveedor').html('&lt;div&gt;'+response+'&lt;/div&gt;');
					jQuery('#form_hazte_proveedor_landing *').css('cursor', 'auto');
					jQuery('#form_hazte_proveedor_landing [name]').val('');
					jQuery('#form_hazte_proveedor_landing select').val('');					
					jQuery('#form_hazte_proveedor_landing input[name=acepto]').prop('checked',false);
					submit_formulario = false;										
					
					
				}
							
		);	
			
		ga('send', 'event', 'LandingProveedor', 'formulario_enviado', jQuery('#form_hazte_proveedor_landing input[name=email]').val()); 
		fbq('track', 'CompleteRegistration', {
  			 value: 1,
  			 currency: 'EUR',
			 });

	}
	else {
		
		jQuery('#form_hazte_proveedor_landing *').css('cursor', 'auto');
		jQuery('#status_form_hazte_proveedor').html('&lt;div&gt;'+msg+'&lt;/div&gt;');
				
		submit_formulario = false;
	}	
	
}

function solicitar_info_hazte_proveedor() {
	
	var msg;
	error = false;
	
	submit_formulario = true;
	
	jQuery('#formulario_hazte_proveedor *').css('cursor', 'wait');
	
	jQuery('#formulario_hazte_proveedor [name]').css('border', '0px');
	
	if ( !jQuery('#formulario_hazte_proveedor input[name=nombre]').val()) {
		error = true;
		msg = "Debe completar todos los campos nombre";
		jQuery('#formulario_hazte_proveedor input[name=nombre]').css('border', '1px solid red');
		
	}

	if ( !jQuery('#formulario_hazte_proveedor input[name=empresa]').val()) {
		error = true;
		msg = "Debe completar todos los campos empresa";
		jQuery('#formulario_hazte_proveedor input[name=empresa]').css('border', '1px solid red');
		
	}		
	
	if ( !jQuery('#formulario_hazte_proveedor input[name=telefono]').val()) {
		msg = "Debe completar todos los campos telefono";
		error = true;
		jQuery('#formulario_hazte_proveedor input[name=telefono]').css('border', '1px solid red');
	}
	
	expr = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	
	if (!expr.test(jQuery('#formulario_hazte_proveedor input[name=email]').val())){
		error = true;
		msg = "Email no vÃ¡lido";
		jQuery('#formulario_hazte_proveedor input[name=email]').css('border', '1px solid red');		
	}
	
	if ( !jQuery('#formulario_hazte_proveedor input[name=email]').val()) {
		error = true;
		msg = "Debe completar todos los campos email";
		jQuery('#formulario_hazte_proveedor input[name=email]').css('border', '1px solid red');
	}
		
	if ( !jQuery('#formulario_hazte_proveedor input[name=acepto]').is(':checked') ) {
		error = true;
		msg = "Debe aceptar las condiciones legales";
	}
	

	if (!error) {
		
		jQuery.post(
				MyAjax.url, {
					action : 'enviar_consulta_hazte_proveedor',
					nombre: jQuery('#formulario_hazte_proveedor input[name=nombre]').val(),					
					empresa: jQuery('#formulario_hazte_proveedor input[name=empresa]').val(),
					telefono: jQuery('#formulario_hazte_proveedor input[name=telefono]').val(),
                                        procedencia: jQuery('#formulario_hazte_proveedor input[name=procedencia]').val(),
					email: jQuery('#formulario_hazte_proveedor input[name=email]').val(),
				}, function(response) {
					jQuery('#status_form_hazte_proveedor').html('&lt;div&gt;'+response+'&lt;/div&gt;');
					jQuery('#formulario_hazte_proveedor *').css('cursor', 'auto');
					jQuery('#formulario_hazte_proveedor [name]').val('');
					jQuery('#formulario_hazte_proveedor select').val('');					
					jQuery('#formulario_hazte_proveedor input[name=acepto]').prop('checked',false);
					submit_formulario = false;										
					
				}
								
		);		
		
	}
	else {
		
		jQuery('#formulario_hazte_proveedor *').css('cursor', 'auto');
		jQuery('#status_form_hazte_proveedor').html('&lt;div&gt;'+msg+'&lt;/div&gt;');
				
		submit_formulario = false;
	}	
	
}


function enviar_form_describir_necesidad() {
	
	var msg;
	error = false;
	
	submit_formulario = true;
	
	jQuery('#formulario_describir_necesidad *').css('cursor', 'wait');
	
	jQuery('#formulario_describir_necesidad [name]').css('border', '1px solid #ccc');
	     
        // Necesidad select
        if ( jQuery('#formulario_describir_necesidad #procedencia').val() == "servicios") {
            if ( !jQuery('#formulario_describir_necesidad #pregunta_21').val()) {
                    error = true;
                    msg = "Debe completar todos los campos";
                    jQuery('#formulario_describir_necesidad #pregunta_21').css('border', '1px solid red');

            }             	
	} 
    
        // Necesidad a cubrir
	if ( !jQuery('#formulario_describir_necesidad textarea[name=pregunta_7]').val()) {
		error = true;
		msg = "Debe completar todos los campos";
		jQuery('#formulario_describir_necesidad textarea[name=pregunta_7]').css('border', '1px solid red');
		
	} 
        
        // Presupuesto
	if ( !jQuery('#formulario_describir_necesidad #pregunta_19').val()) {
		error = true;
		msg = "Debe completar todos los campos";
		jQuery('#formulario_describir_necesidad #pregunta_19').css('border', '1px solid red');
		
	} 
        
        // Nombre
	if ( !jQuery('#formulario_describir_necesidad input[name=pregunta_9]').val()) {
		error = true;
		msg = "Debe completar todos los campos";
		jQuery('#formulario_describir_necesidad input[name=pregunta_9]').css('border', '1px solid red');
		
	}        
        
        // Telefono
	if ( !jQuery('#formulario_describir_necesidad input[name=pregunta_13]').val()) {
		error = true;
		msg = "Debe completar todos los campos";
		jQuery('#formulario_describir_necesidad input[name=pregunta_13]').css('border', '1px solid red');
		
	}        
        
        // Empresa
	if ( !jQuery('#formulario_describir_necesidad input[name=pregunta_14]').val()) {
		error = true;
		msg = "Debe completar todos los campos";
		jQuery('#formulario_describir_necesidad input[name=pregunta_14]').css('border', '1px solid red');
		
	}        
        
        // Cargo
	if ( !jQuery('#formulario_describir_necesidad input[name=pregunta_11]').val()) {
		error = true;
		msg = "Debe completar todos los campos";
		jQuery('#formulario_describir_necesidad input[name=pregunta_11]').css('border', '1px solid red');
		
	}                
        	        
        // Email
	expr = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	
	if (!expr.test(jQuery('#formulario_describir_necesidad input[name=pregunta_12]').val())){
		error = true;
		msg = "Email no vÃ¡lido";
		jQuery('#formulario_describir_necesidad input[name=pregunta_12]').css('border', '1px solid red');		
	}
	
	if ( !jQuery('#formulario_describir_necesidad input[name=pregunta_12]').val()) {
		error = true;
		msg = "Debe completar todos los campos";
		jQuery('#formulario_describir_necesidad input[name=pregunta_12]').css('border', '1px solid red');
	}
	
        // Condiciones legales
	if ( !jQuery('#formulario_describir_necesidad input[name=acepto]').is(':checked') ) {
		error = true;
		msg = "Debe aceptar las condiciones legales";
	}
	

	if (!error) {
            
                var site = jQuery('#formulario_describir_necesidad input[name=procedencia]').val();
                        
		jQuery.post(
                    MyAjax.url, {
                            action : 'enviar_formulario_describir_necesidad',
                            datos_form: jQuery('#formulario_describir_necesidad').serializeArray(),
                            site: jQuery('#formulario_describir_necesidad input[name=procedencia]').val()
                    }, function(response) {
                            if (site == "industria")
                                window.location.href = "/industria/enviada-necesidad/";						
                            else
                                window.location.href = "/servicios/enviada-necesidad/";														
                    }
								
		);		
		
	}
	else {
		
		jQuery('#formulario_describir_necesidad *').css('cursor', 'auto');
		jQuery('#status_form_describir_necesidad').html('&lt;div&gt;'+msg+'&lt;/div&gt;');
				
		submit_formulario = false;
	}	
	
}


function solicitar_info_landing_guias() {
	
	var msg;
	error = false;
	submit_formulario = true;
	
	jQuery('#formulario_landing_guias *').css('cursor', 'wait');
	
	jQuery('#formulario_landing_guias [name]').css('border', '1px solid #ccc');
	
	if ( !jQuery('#formulario_landing_guias input[name=nombre]').val()) {
		error = true;
		msg = "Debe completar todos los campos nombre";
		jQuery('#formulario_landing_guias input[name=nombre]').css('border', '1px solid red');
		
	}

	if ( !jQuery('#formulario_landing_guias input[name=empresa]').val()) {
		error = true;
		msg = "Debe completar todos los campos empresa";
		jQuery('#formulario_landing_guias input[name=empresa]').css('border', '1px solid red');
		
	}		
	
        
	if ( !jQuery('#formulario_landing_guias #sector').val()) {
		error = true;
		msg = "Debe completar todos los campos sector";
		jQuery('#formulario_landing_guias #sector').css('border', '1px solid red');
		
	}        
        
	if ( !jQuery('#formulario_landing_guias input[name=telefono]').val()) {
		msg = "Debe completar todos los campos telefono";
		error = true;
		jQuery('#formulario_landing_guias input[name=telefono]').css('border', '1px solid red');
	}
	
	expr = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	
	if (!expr.test(jQuery('#formulario_landing_guias input[name=email]').val())){
		error = true;
		msg = "Email no vÃ¡lido";
		jQuery('#formulario_landing_guias input[name=email]').css('border', '1px solid red');		
	}
	
	if ( !jQuery('#formulario_landing_guias input[name=email]').val()) {
		error = true;
		msg = "Debe completar todos los campos email";
		jQuery('#formulario_hazte_proveedor input[name=email]').css('border', '1px solid red');
	}
		
	if ( !jQuery('#formulario_landing_guias input[name=acepto]').is(':checked') ) {
		error = true;
		msg = "Debe aceptar la polÃ­tica de privacidad";
	}
	

	if (!error) {
		
		jQuery.post(
				MyAjax.url, {
					action : 'enviar_consulta_landing_guias',
					nombre: jQuery('#formulario_landing_guias input[name=nombre]').val(),					
					empresa: jQuery('#formulario_landing_guias input[name=empresa]').val(),
					telefono: jQuery('#formulario_landing_guias input[name=telefono]').val(),
					email: jQuery('#formulario_landing_guias input[name=email]').val(),
                                        sector: jQuery('#formulario_landing_guias #sector').val(),
                                        id_guia: jQuery('#formulario_landing_guias #id_guia').val()
				}, function(response) {
                                       
                                        //alert(response);
                                        window.location.href = response;						
                            
					submit_formulario = false;										
                                        
					
				}
								
		);		
		
	}
	else {
		
		jQuery('#formulario_landing_guias *').css('cursor', 'auto');
		jQuery('#status_form_landing_guias').html('&lt;div&gt;'+msg+'&lt;/div&gt;');
				
		submit_formulario = false;
	}	
	
}

function solicitar_info_descarga_guias() {

	var msg;
	error = false;
	submit_formulario = true;
	
	jQuery('#formulario_descarga_guias *').css('cursor', 'wait');
	jQuery('#formulario_descarga_guias').css('border', '0px');
	jQuery('#formulario_descarga_guias input').css('border', '1px solid #fff');
	
	if ( !jQuery('#formulario_descarga_guias input[name=nombre]').val()) {
		error = true;
		msg = "Debe completar todos los campos: nombre";
		jQuery('#formulario_descarga_guias input[name=nombre]').css('border', '1px solid black');
		
	}

	if ( !jQuery('#formulario_descarga_guias input[name=empresa]').val()) {
		error = true;
		msg = "Debe completar todos los campos: empresa";
		jQuery('#formulario_descarga_guias input[name=empresa]').css('border', '1px solid black');
		
	}		
	
        
	if ( !jQuery('#formulario_descarga_guias #sector').val()) {
		error = true;
		msg = "Debe completar todos los campos: sector";
		jQuery('#formulario_descarga_guias #sector').css('border', '1px solid black');
		
	}        
        
	if ( !jQuery('#formulario_descarga_guias input[name=telefono]').val()) {
		msg = "Debe completar todos los campos: telÃ©fono";
		error = true;
		jQuery('#formulario_descarga_guias input[name=telefono]').css('border', '1px solid black');
	}
	
	expr = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	
	if (!expr.test(jQuery('#formulario_descarga_guias input[name=email]').val())){
		error = true;
		msg = "Email no vÃ¡lido";
		jQuery('#formulario_descarga_guias input[name=email]').css('border', '1px solid black');		
	}
	
	if ( !jQuery('#formulario_descarga_guias input[name=email]').val()) {
		error = true;
		msg = "Debe completar todos los campos: email";
		jQuery('#formulario_descarga_guias input[name=email]').css('border', '1px solid black');
	}
		
	if ( !jQuery('#formulario_descarga_guias input[name=acepto]').is(':checked') ) {
		error = true;
		msg = "Debe aceptar la polÃ­tica de privacidad";
	}
	

	if (!error) {
		
		jQuery.post(
				MyAjax.url, {
					action : 'enviar_consulta_descarga_guias',
					nombre: jQuery('#formulario_descarga_guias input[name=nombre]').val(),					
					empresa: jQuery('#formulario_descarga_guias input[name=empresa]').val(),
					telefono: jQuery('#formulario_descarga_guias input[name=telefono]').val(),
					email: jQuery('#formulario_descarga_guias input[name=email]').val(),
					sector: jQuery('#formulario_descarga_guias #sector').val(),
					id_guia: jQuery('#formulario_descarga_guias #id_guia').val()
				}, function(response) {
                                       
                                        jQuery('#formulario_descarga_guias').html('&lt;div&gt;'+response+'&lt;/div&gt;');
                                        submit_formulario = false;
                                        jQuery('#formulario_descarga_guias *').css('cursor', 'auto');

					
				}
								
		);		
		
	}
	else {
		
		jQuery('#formulario_descarga_guias *').css('cursor', 'auto');
		jQuery('#status_form_descarga_guias').html('&lt;div&gt;'+msg+'&lt;/div&gt;');
				
		submit_formulario = false;
	}	
	
}

function solicitar_info_tendencias() {
	
	var msg;
	error = false;
	submit_formulario = true;
	
	jQuery('#formulario_tendencias *').css('cursor', 'wait');
	
	jQuery('#formulario_tendencias [name]').css('border', '1px solid #ccc');
	
	if ( !jQuery('#formulario_tendencias input[name=nombre]').val()) {
		error = true;
		msg = "Debe completar todos los campos nombre";
		jQuery('#formulario_tendencias input[name=nombre]').css('border', '1px solid red');
		
	}

	if ( !jQuery('#formulario_tendencias input[name=empresa]').val()) {
		error = true;
		msg = "Debe completar todos los campos empresa";
		jQuery('#formulario_tendencias input[name=empresa]').css('border', '1px solid red');
		
	}		
	
        
	if ( !jQuery('#formulario_tendencias #sector').val()) {
		error = true;
		msg = "Debe completar todos los campos sector";
		jQuery('#formulario_tendencias #sector').css('border', '1px solid red');
		
	}        
        
	if ( !jQuery('#formulario_tendencias input[name=telefono]').val()) {
		msg = "Debe completar todos los campos telefono";
		error = true;
		jQuery('#formulario_tendencias input[name=telefono]').css('border', '1px solid red');
	}
	
	expr = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	
	if (!expr.test(jQuery('#formulario_tendencias input[name=email]').val())){
		error = true;
		msg = "Email no vÃ¡lido";
		jQuery('#formulario_tendencias input[name=email]').css('border', '1px solid red');		
	}
	
	if ( !jQuery('#formulario_tendencias input[name=email]').val()) {
		error = true;
		msg = "Debe completar todos los campos email";
		jQuery('#formulario_tendencias input[name=email]').css('border', '1px solid red');
	}
		
	if ( !jQuery('#formulario_tendencias input[name=acepto]').is(':checked') ) {
		error = true;
		msg = "Debe aceptar la polÃ­tica de privacidad";
	}
	

	if (!error) {
		
		jQuery.post(
				MyAjax.url, {
					action : 'enviar_consulta_tendencias',
					nombre: jQuery('#formulario_tendencias input[name=nombre]').val(),					
					empresa: jQuery('#formulario_tendencias input[name=empresa]').val(),
					telefono: jQuery('#formulario_tendencias input[name=telefono]').val(),
					email: jQuery('#formulario_tendencias input[name=email]').val(),
                                        sector: jQuery('#formulario_tendencias #sector').val(),
                                        site: jQuery('#formulario_tendencias #site').val(),
                                        id_tendencia: jQuery('#formulario_tendencias #id_tendencia').val()
				}, function(response) {
					jQuery('#status_form_tendencias').html('&lt;div&gt;'+response+'&lt;/div&gt;');
					jQuery('#formulario_tendencias *').css('cursor', 'auto');
					jQuery('#formulario_tendencias [name]').val('');
					jQuery('#formulario_tendencias select').val('');					
					jQuery('#formulario_tendencias input[name=acepto]').prop('checked',false);
					submit_formulario = false;										
                                        
					
				}
								
		);		
		
	}
	else {
		
		jQuery('#formulario_tendencias *').css('cursor', 'auto');
		jQuery('#status_form_tendencias').html('&lt;div&gt;'+msg+'&lt;/div&gt;');
				
		submit_formulario = false;
	}	
	
}


function solicitar_info_oficina(uniqid) {
	
	var msg;
	error = false;
	submit_formulario = true;
	
	jQuery('#formulario_oficina_'+uniqid+' *').css('cursor', 'wait');
	
	jQuery('#formulario_oficina_'+uniqid+' [name]').css('border', '1px solid #ccc');
	
	if ( !jQuery('#formulario_oficina_'+uniqid+' input[name=nombre]').val()) {
		error = true;
		msg = "Debe completar todos los campos nombre";
		jQuery('#formulario_oficina_'+uniqid+' input[name=nombre]').css('border', '1px solid red');
		
	}

	if ( !jQuery('#formulario_oficina_'+uniqid+' input[name=empresa]').val()) {
		error = true;
		msg = "Debe completar todos los campos empresa";
		jQuery('#formulario_oficina_'+uniqid+' input[name=empresa]').css('border', '1px solid red');
		
	}		
	
        
	if ( !jQuery('#formulario_oficina_'+uniqid+' #sector').val()) {
		error = true;
		msg = "Debe completar todos los campos sector";
		jQuery('#formulario_oficina_'+uniqid+' #sector').css('border', '1px solid red');
		
	}        
        
	if ( !jQuery('#formulario_oficina_'+uniqid+' input[name=telefono]').val()) {
		msg = "Debe completar todos los campos telefono";
		error = true;
		jQuery('#formulario_oficina_'+uniqid+' input[name=telefono]').css('border', '1px solid red');
	}
	
	expr = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	
	if (!expr.test(jQuery('#formulario_oficina_'+uniqid+' input[name=email]').val())){
		error = true;
		msg = "Email no vÃ¡lido";
		jQuery('#formulario_oficina_'+uniqid+' input[name=email]').css('border', '1px solid red');		
	}
	
	if ( !jQuery('#formulario_oficina_'+uniqid+' input[name=email]').val()) {
		error = true;
		msg = "Debe completar todos los campos email";
		jQuery('#formulario_oficina_'+uniqid+' input[name=email]').css('border', '1px solid red');
	}
		
	if ( !jQuery('#formulario_oficina_'+uniqid+' input[name=acepto]').is(':checked') ) {
		error = true;
		msg = "Debe aceptar la polÃ­tica de privacidad";
	}
	

	if (!error) {
		
		jQuery.post(
				MyAjax.url, {
					action : 'enviar_consulta_oficina',
					nombre: jQuery('#formulario_oficina_'+uniqid+' input[name=nombre]').val(),					
					empresa: jQuery('#formulario_oficina_'+uniqid+' input[name=empresa]').val(),
					telefono: jQuery('#formulario_oficina_'+uniqid+' input[name=telefono]').val(),
					email: jQuery('#formulario_oficina_'+uniqid+' input[name=email]').val(),
                                        sector: jQuery('#formulario_oficina_'+uniqid+' #sector').val(),
				}, function(response) {
                                    
					jQuery('#status_form_oficina_'+uniqid).html('&lt;div&gt;'+response+'&lt;/div&gt;');
					jQuery('#formulario_oficina_'+uniqid+' *').css('cursor', 'auto');
					jQuery('#formulario_oficina_'+uniqid+' [name]').val('');
					jQuery('#formulario_oficina_'+uniqid+' select').val('');					
					jQuery('#formulario_oficina_'+uniqid+' input[name=acepto]').prop('checked',false);
					submit_formulario = false;										
                                        
					
				}
								
		);		
		
	}
	else {
		
		jQuery('#formulario_oficina_'+uniqid+' *').css('cursor', 'auto');
		jQuery('#status_form_oficina_'+uniqid).html('&lt;div&gt;'+msg+'&lt;/div&gt;');
				
		submit_formulario = false;
	}	
	
}

function ver_video_v2 (idvideo,iddestino){
	var alto = jQuery("#video_destino_"+iddestino).height();
	jQuery('#video_destino_'+iddestino).html('&lt;iframe width="100%" height="100%" src="https://www.youtube.com/embed/' + idvideo + '?autoplay=1&amp;rel=0" frameborder="0" allowfullscreen allow="autoplay"&gt;&lt;/iframe&gt;');
        jQuery("#video_destino_"+iddestino).height(alto);
}

function solicitar_info_landing_informes() {
	
	var msg;
	error = false;
	submit_formulario = true;
	
	jQuery('#formulario_landing_informes *').css('cursor', 'wait');
	
	jQuery('#formulario_landing_informes [name]').css('border', '1px solid #ccc');
	
	if ( !jQuery('#formulario_landing_informes input[name=nombre]').val()) {
		error = true;
		msg = "Debe completar todos los campos nombre";
		jQuery('#formulario_landing_informes input[name=nombre]').css('border', '1px solid red');
		
	}

	if ( !jQuery('#formulario_landing_informes input[name=empresa]').val()) {
		error = true;
		msg = "Debe completar todos los campos empresa";
		jQuery('#formulario_landing_informes input[name=empresa]').css('border', '1px solid red');
		
	}		
	        
	if ( !jQuery('#formulario_landing_informes #sector').val()) {
		error = true;
		msg = "Debe completar todos los campos sector";
		jQuery('#formulario_landing_informes #sector').css('border', '1px solid red');
		
	}        
        
	if ( !jQuery('#formulario_landing_informes input[name=telefono]').val()) {
		msg = "Debe completar todos los campos telefono";
		error = true;
		jQuery('#formulario_landing_informes input[name=telefono]').css('border', '1px solid red');
	}
	
	expr = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	
	if (!expr.test(jQuery('#formulario_landing_informes input[name=email]').val())){
		error = true;
		msg = "Email no vÃ¡lido";
		jQuery('#formulario_landing_informes input[name=email]').css('border', '1px solid red');		
	}
	
	if ( !jQuery('#formulario_landing_informes input[name=email]').val()) {
		error = true;
		msg = "Debe completar todos los campos email";
		jQuery('#formulario_hazte_proveedor input[name=email]').css('border', '1px solid red');
	}
		
	if ( !jQuery('#formulario_landing_informes input[name=acepto]').is(':checked') ) {
		error = true;
		msg = "Debe aceptar la polÃ­tica de privacidad";
	}
	

	if (!error) {
		
		jQuery.post(
				MyAjax.url, {
					action : 'enviar_consulta_landing_informes',
					nombre: jQuery('#formulario_landing_informes input[name=nombre]').val(),					
					empresa: jQuery('#formulario_landing_informes input[name=empresa]').val(),
					telefono: jQuery('#formulario_landing_informes input[name=telefono]').val(),
					email: jQuery('#formulario_landing_informes input[name=email]').val(),
					sector: jQuery('#formulario_landing_informes #sector').val(),
					id_informe: jQuery('#formulario_landing_informes #id_informe').val()
				}, function(response) {
                                       
					//alert(response);
					//window.location.href = response;						
					jQuery('#status_form_landing_informes').html('&lt;div&gt;'+response+'&lt;/div&gt;');
					jQuery('#formulario_landing_informes *').css('cursor', 'auto');
					jQuery('#formulario_landing_informes [name]').val('');
					jQuery('#formulario_landing_informes select').val('');					
					jQuery('#formulario_landing_informes input[name=acepto]').prop('checked',false);
						
					submit_formulario = false;										
                                        					
				}
								
		);		
		
	}
	else {
		
		jQuery('#formulario_landing_informes *').css('cursor', 'auto');
		jQuery('#status_form_landing_informes').html('&lt;div&gt;'+msg+'&lt;/div&gt;');
				
		submit_formulario = false;
	}	
	
}</pre></body></html>