var WindowObjectReferenceVideo = null;
var WindowVideo2 = null;
function disminuirLetra(){
//alert('aumentando letra');
	for (var j=0;j<document.styleSheets.length;j++){
		s=document.styleSheets[j].rules;
		for (var i=0;i<s.length;i++){
			T=s[i].style.fontSize;
			if (T!=''){
				N=parseFloat(T);
				if (!isNaN(N)) {
					U=T.substring(String(N).length,100);
					s[i].style.fontSize=(N/1.1)+U;
				}
			}
		}
	}
	return false;
}
function aumentarLetra(){
//alert('aumentando letra');
	for (var j=0;j<document.styleSheets.length;j++){
		s=document.styleSheets[j].rules;
		for (var i=0;i<s.length;i++){
			T=s[i].style.fontSize;
			if (T!=''){
				N=parseFloat(T);
				if (!isNaN(N)) {
					U=T.substring(String(N).length,100);
					s[i].style.fontSize=(N*1.1)+U;
				}
			}
		}
	}
	return false;
}

function Submitir(obj)
{

	document.Form2.EnviarCorreo.value="SI";
	document.getElementById("Form2").submit();
	
	
	return true;
}

function SubmitirBusqueda(obj)
{
	document.Form2.BuscarAhora.value="SI";

	document.getElementById("Form2").submit();
	
	return true;
}
function imprimir(camino){
	var pagImp = camino + "/paginaImprimir.html";
	window.open(pagImp,"ventanaImprimir","top=0,left=0,width=670,height=500,scrollbars=Yes,resizable=No,directories=No,location=no,menubar=No,status=No,titlebar=No,toolbar=No");
}
//*****************************************************************************
function AbreVentanaVideo(URL){

	
  if(WindowObjectReferenceVideo == null || WindowObjectReferenceVideo.closed)
  /* if the pointer to the window object in memory does not exist
     or if such pointer exists but the window was closed */

  {
  
    WindowObjectReferenceVideo = window.open(URL,"VideoDirecto","height=500,width=640,status=no,toolbar=no,menubar=no,location=no,resizable=no");
    /*WindowObjectReferenceVideo.Titlebar=texto;*/
  }
  else
  {
    WindowObjectReferenceVideo.focus();
  
  };

}
function AbreVentanaVideo2(URL){

	
  if(WindowVideo2 == null || WindowVideo2.closed)
  /* if the pointer to the window object in memory does not exist
     or if such pointer exists but the window was closed */

  {
  
    WindowVideo2 = window.open(URL,"VideoDirecto2","height=500,width=640,status=no,toolbar=no,menubar=no,location=no,resizable=no");
    /*WindowObjectReferenceVideo.Titlebar=texto;*/
  }
  else
  {
    WindowVideo2.focus();
  
  };

}
function AbreVentanaPresidente()
{
	var sWidth=screen.width;
	var sHeight =screen.height;

	
	if (sWidth>1024)
	{
		sWidth='700';
		sHeight='960';
	}

		

	window.open(" https://portal-scc.presidencia.gob.es/ciudadan@s/contacto.jsp","LaMoncloaFormPres","height="+sHeight+",width="+sWidth+",toolbar=no,menubar=no,directories=no,scrollbars=yes,status=no");


}
function AbreVentanaVoz(url)
{

	var VentanaVoz = window.open(url,"LaMoncloaVoz","height=300,width=600,toolbar=no,menubar=no,directories=no,scrollbars=yes,status=no");


}
