// JavaScript Document
function getHttpObject()
{
	var xmlhttp=false;
	try
	{
	xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	catch(e)
	{
	xmlhttp=false;
	}
	if(window.XMLHttpRequest)
	xmlhttp = new XMLHttpRequest();
	return xmlhttp;
}

function viewNotice(id, DivID){
	var http = getHttpObject();
	
	if(http){
		
		var url= "/Sistema_Gestion/Web/view.php";
		var params = "id="+id;
		var combo = document.getElementById(DivID);

		http.open("POST",url,true);
		http.setRequestHeader("Content-type","application/x-www-form-urlencoded");
		http.setRequestHeader("Content-length",params.length);
		http.onreadystatechange = function(){		
		
				if(http.readyState == 1){
					combo.innerHTML='<div align="center" style="padding-top:200px;"><img src="/image/loading.gif" /></div>';
				}
		
				if(http.readyState == 4 && http.status == 200)
				{
					combo.innerHTML = http.responseText;
				}
		}
		http.send(params);					
	}
}