function ShowDate()
	{	var cSearchValue=showModalDialog("../../../../includes/QuickCalendar.asp",0,"dialogwidth=298px;dialogheight=280px");
		if (cSearchValue != -1 && cSearchValue != null && cSearchValue != "")
	    {		document.all.Fecha.value = cSearchValue;	}
	}
function ShowDate1()
	{	var cSearchValue=showModalDialog("../../../../includes/QuickCalendar.asp",0,"dialogwidth=298px;dialogheight=280px");
		if (cSearchValue != -1 && cSearchValue != null && cSearchValue != "")
	    {		document.all.strFechaDes.value = cSearchValue;	}
	}
function ShowDate2()
	{	var cSearchValue=showModalDialog("../../../../includes/QuickCalendar.asp",0,"dialogwidth=298px;dialogheight=280px");
		if (cSearchValue != -1 && cSearchValue != null && cSearchValue != "")
	    {		document.all.strFechaHas.value = cSearchValue;	}
	}
	
	
function SwitchMenu(obj){
	//top.PrincipalFAQs.document.location.href="presentacion.htm";
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
		if(el.style.display != "block"){ //DynamicDrive.com change
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") //DynamicDrive.com change
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}

function SelecTodos(){
	var i, cantPeriodos, periSel, cantSel;
	periSel = false;
	cantSel = 0;
	cantPeri = document.frmDatos.elements.length;
	
	if (document.frmDatos.elements["0"].checked==false){  
	    
		for (i = 0; i< cantPeri; i++)
			{			
			document.frmDatos.elements[i].checked= true;
			cantSel = cantSel +1;
			}
    }
    else {                                                   
		for (i = 0; i< cantPeri; i++)
			{
			document.frmDatos.elements[i].checked=false;
  			cantSel = cantSel +1;	
			}
		
		}
} 

function MM_openBrWindow(theURL,winName,features) { //v2.0
  //alert (theURL);
  window.open(theURL,winName,features);
}
