// JavaScript Document

function Pregunta(Redireccion) {
    var answer = confirm("Aquest apartat sol aquesta disponible en Castellà. Desitja consultar-ho?")
     if (answer){
	     window.location = Redireccion;
     }
}


function cambioMenu(id) {
	id.className='MenuSelector';
}

function cambioMenu2(id,estilo) {
	id.className=estilo;	
}

function Ir(canal) {
parent.top.location = 'http://www.CeroCO2.org' + '/' + canal;
// parent.top.location = 'http://www.ceroco2.c/' + canal;
	} 

function ShowPopUp(t_intEntity,t_intEntityType,t_strCode,t_intOrder,t_bolDisplay,t_intDisposition) {
	var nombre = navigator.appName
	if (nombre == "Microsoft Internet Explorer") 
		{
			ancho='+10';//ancho='+0';
			alto='+30';//alto='+0';
		}
	else		
		{ 
			ancho='+23';
			alto='+48';
		}

	NewWindow = window.open("","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=100,height=100");
	NewWindow.document.write('<html><head><title>ZeroCO2 - Fitxes de reducci&oacute;</title><script language="JavaScript">function Repaint(){window.resizeTo(document.getElementById("ImageCard").width'+ancho+',document.getElementById("ImageCard").height'+alto+');}</script></head><body style="margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 0; background-color: White;"><img id="ImageCard" src="http://www.ceroco2.org/FileDownload.aspx?idEntity='+t_intEntity+'&idEntityType='+t_intEntityType+'&code='+t_strCode+'&order='+t_intOrder+'&displayErrorMessage='+t_bolDisplay+'&contentDisposition='+t_intDisposition+'&storeMethod=hd" onLoad="Repaint();"></body></html>');
																																																																																																		
	NewWindow.document.close();
}


