// Documento para la Documentación del historial de noticias



	
	
function ver_mashn(id_data){

var entrada=1
//document.getElementById("conte_noticia").src='conteo_visita.asp?id_noticia='+id_data;
document.getElementById("conteo_visita").src='conteo_visita.php?id_noticia='+id_data;
location.href="listado_noticiaisa2.php?id_noticia="+id_data+"&cata="+entrada;


}


function ver_paginas2(valor){

FAjax('history_noticia2.php?pag='+valor 
,'muestra2','','get');

}








// para validar fecha de adceso a datos

function validate_fecha(valor1,valor2){
var fecha1=document.getElementById(valor1).value;
var fecha2=document.getElementById(valor2).value;

var datos, datos1

datos1="";
submitOK="true";

		if(fecha1==""){ datos='*** DEBE SELECCIONAR LA FECHA DE INICIO\n '; 
			datos1+=datos;

			submitOK="false";
		}

		if(fecha2==""){ datos='*** FALTA SELECCIONAR LA FECHA TOPE \n'; 
			datos1+=datos;
			submitOK="false";
		}

		if(fecha1=="" && fecha2){ datos='*** FALTA  SELECCIONAR LA FECHA DE INICIO Y FECHA TOPE \n'; 
			datos1+=datos;

			submitOK="false";
		}
		
		 if(submitOK=='false'){
			alert(datos1);
		}else{
		
//FAjax('ajax.php?campo1='+document.getElementById('campo1').value+'&amp;campo2='+document.getElementById('campo2').value,'capaContenedora','','get'); return false
		
		//FAjax('ajax.php','capaContenedora','campo1='+document.getElementById('campo1').value+'&amp;campo2='+document.getElementById('campo2').value,'POST'); return false
		FAjax('rrr.php','capa12','fechainicio='+fecha1+'&fechatope='+fecha2,'POST'); 
		//FAjax('rrr.php?fechainicio='+fecha1+'&fechatope='+fecha2,'capacontenedora','','GET'); 
		
		document.getElementById("tabulacion").style.display="none";
		}
	
	
	
}





