var refreshIMGs = Array();
/*refreshIMGs[0] = "images/homepage/indexBanner02.jpg$<p id='picTxt' class='cardP' style='color:#ED1D24;'>Gestión documental, asistencia jurídica telefónica,<br /> defensa legal, sanciones de tráfico... <br />Todo esto y mucho más por <span>90&euro;</span> al a&ntilde;o  $proteccionlegal.html";*/
refreshIMGs[0] = "images/homepage/indexBanner01.jpg$<p id='picTxt'>&nbsp;<br />Has perdido las tarjetas y no sabes qué hacer? <br /> Disfruta de la tranquilidad que te aporta <br />CPP Protecci&oacute;n de Tarjetas. desde <span>25,50&euro;</span> al a&ntilde;o. $protecciondetarjetas.html";
refreshIMGs[1] = "images/homepage/indexBanner02.jpg$<p id='picTxt'>&nbsp;<br />&iquest;Qu&eacute; har&iacute;as si sufrieras un robo de identidad? <br /> No dejes que te pase. Prot&eacute;gete <br />CPP Protección de Identidad por s&oacute;lo <span>90&euro;</span> al a&ntilde;o. $protecciondeidentidad.html";
/*refreshIMGs[2] = "images/homepage/indexBanner03.jpg$<p id='picTxt'>I'm here, I'm OK. Press one key<br />Let them know you're safe for just<br /><span>&pound;39.99</span> a year!$phoneangel.html";*/
var i = Math.round(1*Math.random()); //CHANGE NUMBER!

function showImage(){
sepIMGs = refreshIMGs[i].split("$");
document.write('<img id="menuPic" src="' + sepIMGs[0] + '" alt="CPP" />' + sepIMGs[1] + '<br /><a href="' + sepIMGs[2] + '" title="Ver más...">Ver más <img src="images/rightpanel/arrow.gif" alt="arrow" width="3" height="6" /></a></p>');
}

function reveal(click) {
	var text = click.nextSibling;
	if (text.style.display == 'block') {
		text.style.display = 'none';
		click.parentNode.style.listStyleImage = 'url(images/rightpanel/revealOff.gif)';
	}
	else { 
		text.style.display = 'block';
		click.parentNode.style.listStyleImage = 'url(images/rightpanel/revealOn.gif)';
	}
}

function launchRiskAssessment(){
	window.open('../riskassessment/riskassessment.html','RiskAssessmentForm','height=800,width=660,menubar=no,toolbar=no,resizeable=no,scrollbars=yes,location=no,titlebar=no,status=yes,screenX=0,screenY=0,left=0,top=0');
}

function launchPhonesafe(){	
	window.open('https://www.cpp.co.uk/chameleon/request?option=1&business=50005&product=4&campaign=3&referee=1&region=1&referrerCode=CPPUKPHXXX','Phonesafe','height=555,width=776,menubar=no,toolbar=no,resizeable=no,scrollbars=yes,location=no,titlebar=no,status=yes,screenX=0,screenY=0,left=0,top=0');
}

function launchExperianCreditReport() {

  window.open('https://www.protectmyidentity.experian.co.uk/ipp/referrer.html','ExperianCreditReport','resizable=yes,menubar=no,toolbar=no,location=no,titlebar=no,screenX=0,screenY=0,left=0,top=0');
}
function launchGarlik(){

window.open('https://www.garlik.com/cpp/home.php');
}

// Funcion para cargar los formularios
function setOptions(chosen) {
var selbox = document.myform.opttwo;
 
selbox.options.length = 0;
if (chosen == " ") {
  selbox.options[selbox.options.length] = new Option('Formularios','');
}
// Protección de Tarjetas Plus
if (chosen == "1") {
	selbox.options[selbox.options.length] = new Option('Formularios','');
  	selbox.options[selbox.options.length] = new Option('Términos y Condiciones','pdfdocs/TC_Plus.pdf');
  	selbox.options[selbox.options.length] = new Option('Cambio de Domicilio Tarjetas','pdfdocs/Cambio_de_Domicilio_Tarjetas.pdf');
  	selbox.options[selbox.options.length] = new Option('Cambio de Forma de Pago Tarjetas','pdfdocs/Cambio_de_Forma_de_Pago_Tarjetas.pdf');
  	selbox.options[selbox.options.length] = new Option('Hoja de Registro Tarjetas','pdfdocs/Hoja_de_Registro_Tarjetas.pdf');
  	selbox.options[selbox.options.length] = new Option('Orden de Pago Tarjetas','pdfdocs/Orden_de_Pago_Tarjetas.pdf');
  	selbox.options[selbox.options.length] = new Option('Reclamación Siniestros','pdfdocs/Siniestros_Tarjetas.pdf');
    }
// Protección de Tarjetas Premier
if (chosen == "2") {
  	selbox.options[selbox.options.length] = new Option('Formularios','');
  	selbox.options[selbox.options.length] = new Option('Términos y Condiciones','pdfdocs/TC_Premier.pdf');
  	selbox.options[selbox.options.length] = new Option('Cambio de Domicilio Tarjetas','pdfdocs/Cambio_de_Domicilio_Tarjetas.pdf');
  	selbox.options[selbox.options.length] = new Option('Cambio de Forma de Pago Tarjetas','pdfdocs/Cambio_de_Forma_de_Pago_Tarjetas.pdf');
  	selbox.options[selbox.options.length] = new Option('Hoja de Registro Tarjetas','pdfdocs/Hoja_de_Registro_Tarjetas.pdf');
  	selbox.options[selbox.options.length] = new Option('Orden de Pago Tarjetas','pdfdocs/Orden_de_Pago_Tarjetas.pdf');
  	selbox.options[selbox.options.length] = new Option('Reclamación Siniestros','pdfdocs/Siniestros_Tarjetas.pdf');
    }
// Protección Legal Plus
if (chosen == "3") {
	selbox.options[selbox.options.length] = new Option('Formularios','');
	selbox.options[selbox.options.length] = new Option('Términos y Condiciones','pdfdocs/TC_Legal_Plus.pdf');
	selbox.options[selbox.options.length] = new Option('Cambio de domicilio legal','pdfdocs/Cambio_de_Domicilio_Legal.pdf');
	selbox.options[selbox.options.length] = new Option('Cambio de forma de pago Legal','pdfdocs/Cambio_de_Forma_de_Pago_Legal.pdf');
    }
// Protección Legal Asesoramiento
if (chosen == "4") {
	selbox.options[selbox.options.length] = new Option('Formularios','');
	selbox.options[selbox.options.length] = new Option('Términos y Condiciones','pdfdocs/TC_Legal_Asesoramiento.pdf');
	selbox.options[selbox.options.length] = new Option('Cambio de Domicilio Legal','pdfdocs/Cambio_de_Domicilio_Legal.pdf');
	selbox.options[selbox.options.length] = new Option('Cambio de Forma de Pago Legal','pdfdocs/Cambio_de_Forma_de_Pago_Legal.pdf');		
    }
// Protección Legal Básico
if (chosen == "5") {
	selbox.options[selbox.options.length] = new Option('Formularios','');
	selbox.options[selbox.options.length] = new Option('Términos y Condiciones','pdfdocs/TC_Legal_Basico.pdf');
	selbox.options[selbox.options.length] = new Option('Cambio de Domicilio Legal','pdfdocs/Cambio_de_Domicilio_Legal.pdf');
	selbox.options[selbox.options.length] = new Option('Cambio de Forma de Pago Legal','pdfdocs/Cambio_de_Forma_de_Pago_Legal.pdf');
    }
// Gadgets
if (chosen == "6") {
	selbox.options[selbox.options.length] = new Option('Formularios','');
	selbox.options[selbox.options.length] = new Option('Formulario de Registro','pdfdocs/Formulario_de_Registro_Gadgets.pdf');
	selbox.options[selbox.options.length] = new Option('Reclamación Siniestros','pdfdocs/Siniestros_Gadgets.pdf');
	selbox.options[selbox.options.length] = new Option('Términos y Condiciones','pdfdocs/Terminos_y_Condiciones_Gadgets.pdf');
    }
// Móvil Seguro
if (chosen == "7") {
	selbox.options[selbox.options.length] = new Option('Formularios','');
	selbox.options[selbox.options.length] = new Option('Términos y Condiciones','pdfdocs/TC_Movil_Seguro.pdf');
	selbox.options[selbox.options.length] = new Option('Actualización de Datos','pdfdocs/Actualizacion_Datos_Movil_Seguro.pdf');
	selbox.options[selbox.options.length] = new Option('Cambio de domicilio Móvil Seguro','pdfdocs/Cambio_de_Domicilio_Movil_Seguro.pdf');
	selbox.options[selbox.options.length] = new Option('Cambio Forma de Pago Móvil Seguro','pdfdocs/Cambio_Forma_de_pago_Movil_Seguro.pdf');
	selbox.options[selbox.options.length] = new Option('Reclamación Siniestros','pdfdocs/Siniestros_Movil_Seguro.pdf');
    }
// Protección Legal
if (chosen == "8") {
	selbox.options[selbox.options.length] = new Option('Formularios','');
	selbox.options[selbox.options.length] = new Option('Términos y Condiciones','pdfdocs/Terminos-Condiciones-Identidad.pdf');
	selbox.options[selbox.options.length] = new Option('Cambio de Forma de Pago','pdfdocs/Formulario-Cambio-de-Forma-de-Pago.pdf');
	selbox.options[selbox.options.length] = new Option('Autoinclusión','pdfdocs/Formulario-de-Autoinclusion.pdf');
	selbox.options[selbox.options.length] = new Option('Siniestro','pdfdocs/Formulario-de-Siniestro.pdf');
	selbox.options[selbox.options.length] = new Option('Solicitud de Limpieza de Nombre','pdfdocs/Formulario-de-Solicitud-de-Limpieza-Nombre.pdf');
	selbox.options[selbox.options.length] = new Option('Solicitud del Gestor Personal','pdfdocs/Formulario-de-Solicitud-del-Gestor-Personal.pdf');
	selbox.options[selbox.options.length] = new Option('Cancelación de Alertas','pdfdocs/Cancelacion-de-Alertas.pdf');
    }
}


// Funcion para cargar los formularios DE ALTA
function setOptionsAlta(chosen) {
var selbox = document.myform.opttwo;
 
selbox.options.length = 0;
if (chosen == " ") {
  selbox.options[selbox.options.length] = new Option('Formularios','');
}
// Protección de Tarjetas Plus
if (chosen == "1") {
	selbox.options[selbox.options.length] = new Option('Formularios','');
  	selbox.options[selbox.options.length] = new Option('Alta Tarjetas Plus','pdfdocs/Alta_Tarjetas.pdf');
	selbox.options[selbox.options.length] = new Option('Términos y Condiciones','pdfdocs/TC_Plus.pdf');
    }
// Protección de Tarjetas Premier
if (chosen == "2") {
  	selbox.options[selbox.options.length] = new Option('Formularios','');
  	selbox.options[selbox.options.length] = new Option('Alta Tarjetas Premier','pdfdocs/Alta_Tarjetas.pdf');
	selbox.options[selbox.options.length] = new Option('Términos y Condiciones','pdfdocs/TC_Premier.pdf');
    }
// Protección Legal Plus
if (chosen == "3") {
	selbox.options[selbox.options.length] = new Option('Formularios','');
	selbox.options[selbox.options.length] = new Option('Alta Legal','pdfdocs/Alta_Legal_Plus.pdf');
	selbox.options[selbox.options.length] = new Option('Términos y Condiciones','pdfdocs/TC_Legal_Plus.pdf');
    }
// Protección Legal Asesoramiento
if (chosen == "4") {
	selbox.options[selbox.options.length] = new Option('Formularios','');
	selbox.options[selbox.options.length] = new Option('Alta Legal Asesoramiento','pdfdocs/Alta_Legal_Asesoramiento_Telefonico.pdf');
	selbox.options[selbox.options.length] = new Option('Términos y Condiciones','pdfdocs/TC_Legal_Asesoramiento.pdf');
    }
// Protección Legal Básico
if (chosen == "5") {
	selbox.options[selbox.options.length] = new Option('Formularios','');
	selbox.options[selbox.options.length] = new Option('Alta Legal Básico','pdfdocs/Alta_Legal_Basico.pdf');
	selbox.options[selbox.options.length] = new Option('Términos y Condiciones','pdfdocs/TC_Legal_Basico.pdf');
    }
// Gadgets
if (chosen == "6") {
	selbox.options[selbox.options.length] = new Option('Formularios','');
	selbox.options[selbox.options.length] = new Option('Alta Gadgets','pdfdocs/Alta_Gadgets.pdf');
	selbox.options[selbox.options.length] = new Option('Formulario de Registro','pdfdocs/Formulario_de_Registro_Gadgets.pdf');
	selbox.options[selbox.options.length] = new Option('Términos y Condiciones','pdfdocs/Terminos_y_Condiciones_Gadgets.pdf');
    }
// Móvil Seguro
if (chosen == "7") {
	selbox.options[selbox.options.length] = new Option('Formularios','');
	selbox.options[selbox.options.length] = new Option('Alta Móvil Seguro','pdfdocs/Alta_Movil_Seguro.pdf');
	selbox.options[selbox.options.length] = new Option('Términos y Condiciones','pdfdocs/TC_Movil_Seguro.pdf');
    }

}

// Funcion para cargar los formularios DE PROTECCION DE IDENTIDAD
function setOptionsIdentidad(chosen) {
var selbox = document.myform.opttwo;
 
selbox.options.length = 0;
if (chosen == " ") {
  selbox.options[selbox.options.length] = new Option('Formularios','');
}
// Documentos
if (chosen == "1") {
	selbox.options[selbox.options.length] = new Option('Formularios','');
	selbox.options[selbox.options.length] = new Option('Cambio de Forma de Pago','pdfdocs/Formulario-Cambio-de-Forma-de-Pago.pdf');
	selbox.options[selbox.options.length] = new Option('Autoinclusión','pdfdocs/Formulario-de-Autoinclusion.pdf');
	selbox.options[selbox.options.length] = new Option('Siniestro','pdfdocs/Formulario-de-Siniestro.pdf');
	selbox.options[selbox.options.length] = new Option('Solicitud de Limpieza de Nombre','pdfdocs/Formulario-de-Solicitud-de-Limpieza-Nombre.pdf');
	selbox.options[selbox.options.length] = new Option('Solicitud del Gestor Personal','pdfdocs/Formulario-de-Solicitud-del-Gestor-Personal.pdf');
	selbox.options[selbox.options.length] = new Option('Cancelación de Alertas','pdfdocs/Cancelacion-de-Alertas.pdf');
    }
}