function disableScript()
	{
		for(i=0;i< Page_Validators.length;i++)
			{		
				ValidatorEnable(Page_Validators[i], false);
			}	
	}
	
	function enableCabezoteValidators()
	{
		for(i=0;i< Page_Validators.length;i++)
		{
			ValidatorEnable(Page_Validators[i], false);
		}		
		var txtcodigo = document.getElementById("Cabezote1_tbBusquedaCodigo");
		if(txtcodigo.value!="")
		{
			ValidatorEnable(Cabezote1_rfvCodigo, true);
			ValidatorEnable(Cabezote1_revCodigo, true);			 
		}else{
			ValidatorEnable(Cabezote1_rfvTexto, true);
		}
	}
	
	
	
	function enableBusquedaValidators()
	{
		for(i=0;i< Page_Validators.length;i++)
		{
			ValidatorEnable(Page_Validators[i], false);
		}		
		ValidatorEnable(cvRango, true);				
		
	}
	function enableContactoValidators()
	{
		
		for(i=0;i< Page_Validators.length;i++)
		{
			ValidatorEnable(Page_Validators[i], false);
		}		
		ValidatorEnable(pre_inscripcion1_rfvNombre, true);					
		ValidatorEnable(pre_inscripcion1_rfvApellido, true);				
		ValidatorEnable(pre_inscripcion1_rfvCorreo, true);		
		ValidatorEnable(pre_inscripcion1_revCorreo, true);	
		ValidatorEnable(pre_inscripcion1_rfvTelefono, true);	
		ValidatorEnable(pre_inscripcion1_rfvDireccion, true);	
		ValidatorEnable(pre_inscripcion1_rfvEdad, true);	
		ValidatorEnable(pre_inscripcion1_revEdad, true);																										
		ValidatorEnable(pre_inscripcion1_rfvCiudad, true);
	}


        function enableContactenosCMSValidators()
	{
		
		for(i=0;i< Page_Validators.length;i++)
		{
			ValidatorEnable(Page_Validators[i], false);
		}		
		ValidatorEnable(contactenos_cms_rfvNombreContactenosCMS, true);			
		ValidatorEnable(contactenos_cms_rfvCorreoContactenosCMS, true);				
		
	}



	function enablePreValidators()
	{
		for(i=0;i< Page_Validators.length;i++)
		{
			ValidatorEnable(Page_Validators[i], false);
		}		
		ValidatorEnable(rfvNombre, true);					
		ValidatorEnable(rfvApellido, true);				
		ValidatorEnable(rfvCorreo, true);		
		ValidatorEnable(revCorreo, true);	
		ValidatorEnable(rfvTelefono, true);	
		ValidatorEnable(rfvDireccion, true);	
		ValidatorEnable(rfvEdad, true);
		ValidatorEnable(revEdad, true);																										
		ValidatorEnable(rfvCiudad, true);	
	}	
	function enableContactoInstitucionValidators()
	{
		for(i=0;i< Page_Validators.length;i++)
		{
			ValidatorEnable(Page_Validators[i], false);
		}		
		ValidatorEnable(HeaderContenido1_rfvNombre, true);					
		ValidatorEnable(HeaderContenido1_revEmail, true);				
		ValidatorEnable(HeaderContenido1_rfvEmail, true);		
		ValidatorEnable(HeaderContenido1_rfvContenido, true);			
	}
	function enableRegistroValidators()
	{
		for(i=0;i< Page_Validators.length;i++)
		{
			ValidatorEnable(Page_Validators[i], false);
		}
		ValidatorEnable(rfvNombres, true);					
		ValidatorEnable(Regularexpressionvalidator1, true);					
		ValidatorEnable(rfvApellidos, true);					
		ValidatorEnable(rev, true);					
		ValidatorEnable(rfvCorreo, true);							
	}
	
	
	
	function getStyleObject(objectId){
    if(document.getElementById && document.getElementById(objectId)){
	    // W3C DOM
	    return document.getElementById(objectId);}else if (document.all && document.all(objectId)){
	    // MSIE 4 DOM
	    return document.all(objectId);} else if (document.layers && document.layers[objectId]){
	    // NN 4 DOM.. note: this won't find nested layers
	    return document.layers[objectId];}else{ return false;	}
	}

	//Permite que la imagen se desplaze de arriba a bajo cuando se mueve el scroll vertical
	var initialTop = 0;
	function positionit(sElementId, itopAbsolute, iHeight){
		var dsoctop=document.all? document.documentElement.scrollTop : window.pageYOffset;
		var window_width=document.all? document.documentElement.clientWidth : window.innerWidth;
		var window_height=document.all? document.documentElement.clientHeight : window.innerHeight;
		var crossobj = getStyleObject(sElementId);
		var iTotalHeight = itopAbsolute + iHeight;
		var iNewTop;
	    
		if(crossobj.style != null){
			if (document.all || document.getElementById)
			{
				if (window_height < iTotalHeight)
				{
					if (dsoctop <= (iTotalHeight - window_height))
					{
						iNewTop = itopAbsolute;
						//crossobj.style.top = itopAbsolute
					}
					else 
					{
						iNewTop = ( dsoctop - (iHeight + window_height) );
						//crossobj.style.top = ( dsoctop - iHeight + window_height )
					}
	                
					crossobj.style.top = iNewTop + "px";
				}
				else
				{
					if(crossobj.offsetTop > dsoctop && initialTop==0)
					{
						//initialTop = crossobj.offsetTop - 100;
						initialTop = crossobj.offsetTop;
					}
					else if(crossobj.offsetTop > window_height)
					{
						if(dsoctop < initialTop)
						{
							crossobj.style.top = "0px";
						}
						else
						{
							crossobj.style.top = dsoctop + "px";
						}
					}
	                
					if(dsoctop > initialTop)
					{
						iNewTop = dsoctop - initialTop;
						//crossobj.style.top = dsoctop - initialTop;
						crossobj.style.top = iNewTop + "px";
					}
				}
			}
			else if (document.layers)
			{
				crossobj.top = dsoctop + itopAbsolute;
			}
		}
	}

