
function privContinuados() {


    document.getElementById("divTerminar").style.display = "none";
    document.getElementById("cuestions").style.display = "inline";
    document.getElementById("divBtnEnviar").style.display = "inline";

    if (document.getElementById("ctl00_ContentPlaceHolder1_ddlConsentimiento").value == "Sí") {

        document.getElementById("ctl00_ContentPlaceHolder1_deseasinfo_0").checked;
        document.getElementById("divDatosConsentimiento").style.display = "inline";

    }
    else {
        document.getElementById("divDatosConsentimiento").style.display = "none";
    }
}


function llenaEstado()
{
	if(document.getElementById("cp").value.length == 6)
	{
		 __doPostBack('btnLlenaEdo', '');
	}	
}

function clearText(control)
{
	document.getElementById(control).style.backgroundColor='f0d7d7';
	document.getElementById(control).style.color='black';
	document.getElementById(control).value="";
}

function clearTextcp(control)
{
		if(document.getElementById("codigo_postal").value =="Campo obligatorio")
		{
			document.getElementById(control).style.backgroundColor='f0d7d7';
			document.getElementById(control).style.color='black';
			document.getElementById(control).value="";
		}
}

function clearTextcps(control) {
    if (document.getElementById("cp").value == "Campo obligatorio") {
        document.getElementById(control).style.backgroundColor = 'f0d7d7';
        document.getElementById(control).style.color = 'black';
        document.getElementById(control).value = "";
    }
}

function privRegLinea()
{
			var j = 0	
	
	Nombres = "Nombre|Apellido Paterno|Apellido Materno|Código Postal|eMail|Confirmar eMail|Lada|Teléfono";
	Etiquetas = "nombre|apell_paterno|materno|codigo_postal|email|email2|lada|telefono";
	var Errores = ""
	Nombres = Nombres.split("|");
	Etiquetas = Etiquetas.split("|");
	
	for (j=0;j<Etiquetas.length;j++)
	{				
		if (document.getElementById(Etiquetas[j]).value == "" || document.getElementById(Etiquetas[j]).value == "Campo obligatorio")
		{
			Errores = Errores + "\n-" + Nombres[j];	
			document.getElementById(Etiquetas[j]).value = "Campo obligatorio";
			document.getElementById(Etiquetas[j]).style.backgroundColor='#f0d7d7';
			document.getElementById(Etiquetas[j]).style.color="#FF0000";
		}
				
	}
	
	for (i=0;i<Etiquetas.length;i++ )
	{
		if (document.getElementById(Etiquetas[i]).value == "")	
		{
			document.getElementById(Etiquetas[i]).value = "Campo obligatorio";
			document.getElementById(Etiquetas[i]).style.backgroundColor='#f0d7d7';
			document.getElementById(Etiquetas[i]).style.color="#FF0000"; 
			return false;				
		}
	
	}
	
	
	if (Errores != "")	
	{
	return  false;
	}
	else
	{	
	
				document.getElementById("divDatosInicio").style.display = "none";
				document.getElementById("divTerminar").style.display = "inline";
	
			/*document.getElementById("divCuestionario").style.display = "none";
			document.getElementById("divBotonO").style.display = "none";
			document.getElementById("via").style.display = "none";	
			*/
	}
	
	
}



function  privacidadReg()
{
		var j = 0	
	
	Nombres = "Nombre|Apellido Paterno|Apellido Materno|Fecha|eMail|Código Postal";
	Etiquetas = "nombre|paterno|materno|fecha|email|cp";
	var Errores = ""
	Nombres = Nombres.split("|");
	Etiquetas = Etiquetas.split("|");
	
	for (j=0;j<Etiquetas.length;j++)
	{				
		if (document.getElementById(Etiquetas[j]).value == "" || document.getElementById(Etiquetas[j]).value == "Campo obligatorio")
		{
			Errores = Errores + "\n-" + Nombres[j];	
			document.getElementById(Etiquetas[j]).value = "Campo obligatorio";
			document.getElementById(Etiquetas[j]).style.backgroundColor='#f0d7d7';
			document.getElementById(Etiquetas[j]).style.color="#FF0000";
		}
				
	}
	
	for (i=0;i<Etiquetas.length;i++ )
	{
		if (document.getElementById(Etiquetas[i]).value == "")	
		{
			document.getElementById(Etiquetas[i]).value = "Campo obligatorio";
			document.getElementById(Etiquetas[i]).style.backgroundColor='#f0d7d7';
			document.getElementById(Etiquetas[i]).style.color="#FF0000"; 
			return false;				
		}
	
	}
	
	
	if (Errores != "")	
	{
	return  false;
	}
	else
	{	
			document.getElementById("divCuestionario").style.display = "none";
			document.getElementById("divBotonO").style.display = "none";
			document.getElementById("via").style.display = "none";	
			document.getElementById("divTerminar").style.display = "inline";
	}
}

function clickder(evt)
{
	 
	key=(document.all) ? evt.keyCode :evt.which;
	
	    if(window.event){ /*/ IE*/
                //(event.button == 2 || event.button == 3)
				
				     if( event.button == 2 || event.button == 3 )
					 {
			  alert("Derechos reservados Canon Mexicana, S. de R.L. de C.V.");
				return false;}
              }
			  else
			  {
				  if(key == 3 || key == 2 )
				  {
					  alert("Derechos reservados Canon Mexicana, S. de R.L. de C.V.");
				 	return false;
					key.returnValue = false;
				  }

			  }
			  
	
}  


function clickder2(evt)
{
	 
	key=(document.all) ? evt.keyCode :evt.which;
	
	    if(window.event){ /*/ IE*/
                //(event.button == 2 || event.button == 3)
				
				     if( event.button == 2 || event.button == 3 || event.button == 1)
					 {
			  alert("Derechos reservadosasdf  Canon Mexicana, S. de R.L. de C.V.");
			  window.close();	
				return false;}
              }
			  else
			  {
				  if(key == 3 || key == 2 || key == 1)
				  {
					  alert("Derechos reservadosasdf sadf Canon Mexicana, S. de R.L. de C.V.");
					  window.close();	
				 	return false;
					key.returnValue = false;
				  }

			  }
		  
	
} 

 document.oncontextmenu=new Function( "return false"); 
   function recargaDriver()
   {
	   window.location="drivers.aspx";
   }
    function mostrarDescargar(sist) {
        document.getElementById("ctl00_ContentPlaceHolder1_hdeSistemaOp").value = sist;
        document.aspnetForm.submit();

    }

function abreVideo(video)
{
	
	window.open("videospixma/video2.asp?v="+video,'','width=520, height=330, status=no, scrollbars=no');
}
function abreVideo_dif()
{
	window.open('videospixma/video_hd/video_hd.html','','width=300, height=250, status=no, scrollbars=no');
	
}
function abreVideo_otro(video)
{
	window.open("videosOtros/video.asp?v="+video,'','width=400, height=270, status=no, scrollbars=no');
}

function abreVideo_otro2(video)
{
	window.open("videosOtros/video2.asp?v="+video,'','width=420, height=350, status=no, scrollbars=no');
}
function abreVideo_otro3(video)
{
	window.open("videosOtros/video3.asp?v="+video,'','width=440, height=290, status=no, scrollbars=no');
}
// Tabs

	function mostrarTabs(obj, sel)
	{
		//	document.getElementById('hdeArea').value = sel;
		
		
		if(obj == "1")
		{
			document.getElementById('tabulador1').style.visibility ="visible"; 
			document.getElementById('tabulador2').style.visibility="hidden";
			document.getElementById('tabulador3').style.visibility="hidden"; 
			
		}
		else if(obj == "2")
		{
			
			document.getElementById('tabulador1').style.visibility ="hidden"; 
			document.getElementById('tabulador2').style.visibility="visible"; 
			document.getElementById('tabulador3').style.visibility="hidden"; 
			
		}
		else
		{
			
			document.getElementById('tabulador1').style.visibility ="hidden"; 
			document.getElementById('tabulador2').style.visibility="hidden"; 
			document.getElementById('tabulador3').style.visibility="visible"; 
			
		}
		
		
		/*document.getElementById('tabulador1').style.visibility = (obj == 1) ? "" : "visible";
		document.getElementById('tabulador2').style.visibility  = (obj == 2) ? "" : "visible";
		document.getElementById('tabulador3').style.visibility = (obj == 3) ? "" : "visible";*/

		
		
		document.getElementById('seleccionado1').className = sel == 1 ? "select" : "";
		document.getElementById('seleccionado2').className = sel == 2 ? "select" : "";
		document.getElementById('seleccionado3').className = sel == 3 ? "select" : "";
		
	
	}

// Select
function mostrar(nombreCapa){ 
	
	if(document.getElementById(nombreCapa).style.visibility!="visible")
		document.getElementById(nombreCapa).style.visibility="visible"; 
	else
		document.getElementById(nombreCapa).style.visibility="hidden";	
}

function mostrarAcomp() {

    if(document.getElementById("ctl00_ContentPlaceHolder1_rblAcompanado_1").checked )
	{
	
    	document.getElementById("divAc").style.display = "none";
		document.getElementById("ctl00_ContentPlaceHolder1_hdeAcomp").value = "0";
	}
    else if(document.getElementById("ctl00_ContentPlaceHolder1_rblAcompanado_0").checked )
	{
        document.getElementById("divAc").style.display = "inline";
		document.getElementById("ctl00_ContentPlaceHolder1_hdeAcomp").value = "1";
	}

}

function whiteControls(control)
{
	
	if(document.getElementById(control).value == "Obligatorio")
	document.getElementById(control).value = "";
	if(document.getElementById(control).value == "formato: nombre@dominio.sub")
	document.getElementById(control).value = "";
		
}


