
<!----------ABRE CARRITO------------------->
function AbreVentanaCarrito(theForm)
{
    wCarrito = window.open("","Carrito","scrollbars=no,resizable=yes,width=300,height=300");
    theForm.submit()
    wCarrito.self.focus();
}

<!----------ABRE VENTANA------------------->
function AbreVentana(URL,Ancho,Alto,scroll,toolbar)
{
	//alert (Ancho);
	w = window.open(URL,"","toolbar=" + toolbar + ",scrollbars="+ scroll + ",height="+ Alto +",width="+ Ancho +",resizable=yes,left=0,top=0");
	w.self.focus();
}

<!---------- MARCA MATERIAS boletin.php ------------------->
function marca(Area)	{
	
	if(Area == "Derecho")	{
			
		var areatxt  = document.getElementById("t"+Area);
		
		if(areatxt.checked == 1)	{
			// Marco todas las materias del area
			for(i=0; i < matDerecho.length; i++)	{
				document.getElementById("Derecho_"+matDerecho[i]).checked = 1; 
			} 
		}
		else{
			// Marco todas las materias del area
			for(i=0; i < matDerecho.length; i++)	{
				document.getElementById("Derecho_"+matDerecho[i]).checked = 0; 
			} 
		}
	
	}
	if(Area == "Economía")	{
			
		var areatxt  = document.getElementById("t"+Area);
		
		if(areatxt.checked == 1)	{
			// Marco todas las materias del area
			for(i=0; i < matEconomía.length; i++)	{
				document.getElementById("Economía_"+matEconomía[i]).checked = 1; 
			} 
		}
		else{
			// Marco todas las materias del area
			for(i=0; i < matEconomía.length; i++)	{
				document.getElementById("Economía_"+matEconomía[i]).checked = 0; 
			} 
		}
	
	}
	if(Area == "Empresa")	{
			
		var areatxt  = document.getElementById("t"+Area);
		
		if(areatxt.checked == 1)	{
			// Marco todas las materias del area
			for(i=0; i < matEmpresa.length; i++)	{
				document.getElementById("Empresa_"+matEmpresa[i]).checked = 1; 
			} 
		}
		else{
			// Marco todas las materias del area
			for(i=0; i < matEmpresa.length; i++)	{
				document.getElementById("Empresa_"+matEmpresa[i]).checked = 0; 
			} 
		}
	
	}
	if(Area == "CienciasSociales")	{
			
		var areatxt  = document.getElementById("t"+Area);
		
		if(areatxt.checked == 1)	{
			// Marco todas las materias del area
			for(i=0; i < matCienciasSociales.length; i++)	{
				document.getElementById("CienciasSociales_"+matCienciasSociales[i]).checked = 1; 
			} 
		}
		else{
			// Marco todas las materias del area
			for(i=0; i < matCienciasSociales.length; i++)	{
				document.getElementById("CienciasSociales_"+matCienciasSociales[i]).checked = 0; 
			} 
		}
	
	}
	if(Area == "HistoriayCienciasHumanas")	{
			
		var areatxt  = document.getElementById("t"+Area);
		
		if(areatxt.checked == 1)	{
			// Marco todas las materias del area
			for(i=0; i < matHistoriayCienciasHumanas.length; i++)	{
				document.getElementById("HistoriayCienciasHumanas_"+matHistoriayCienciasHumanas[i]).checked = 1; 
			} 
		}
		else{
			// Marco todas las materias del area
			for(i=0; i < matHistoriayCienciasHumanas.length; i++)	{
				document.getElementById("HistoriayCienciasHumanas_"+matHistoriayCienciasHumanas[i]).checked = 0; 
			} 
		}
	
	}
	
	
}

function mismosdatos(checked)
{
	if (checked == true)
	{
		document.subscribeForm.direccion_env.disabled = true;
		document.subscribeForm.cp_env.disabled = true;
		document.subscribeForm.localidad_env.disabled = true;
		document.subscribeForm.provincia_env.disabled = true;
		document.subscribeForm.pais_env.disabled = true;
	}
	else
	{
		document.subscribeForm.direccion_env.disabled = false;
		document.subscribeForm.cp_env.disabled = false;
		document.subscribeForm.localidad_env.disabled = false;
		document.subscribeForm.provincia_env.disabled = false;
		document.subscribeForm.pais_env.disabled = false;
	}
}
