function webpage0()
{
if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
{
//code = encodeURIComponent(document.getElementById(x).value);
xmlHttp.open("GET","mp.php?ms="+new Date().getTime(),true);
xmlHttp.onreadystatechange = handleServerResponsewp0;
xmlHttp.send(null);
}
else
{
alert("Problema con la comunicacion en el Servidor");
}
function handleServerResponsewp0()
{
	if(xmlHttp.readyState==4)
	{
		if(xmlHttp.status==200)
		{
			/*
			xmlResponse=xmlHttp.responseXML;
			xmlDocumentElement=xmlResponse.documentElement;
			helloMessage=xmlDocumentElement.firstChild.data;*/
			Texto=xmlHttp.responseText;
			cuerpo='content';
			document.getElementById(cuerpo).innerHTML=Texto;
		}
		else
		{
			alert("Existe un problema en la obtencion de datos");
		}
	}
}
}
//-------------------------------------------------
function webpagegal4(d)
{
if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
{
//code = encodeURIComponent(document.getElementById(x).value);
xmlHttp.open("GET","lg3.php?cod="+d+"ms="+new Date().getTime(),true);
xmlHttp.onreadystatechange = handleServerResponsewpgal4;
xmlHttp.send(null);
}
else
{
alert("Problema con la comunicacion en el Servidor");
}
function handleServerResponsewpgal4()
{
	if(xmlHttp.readyState==4)
	{
		if(xmlHttp.status==200)
		{
			/*
			xmlResponse=xmlHttp.responseXML;
			xmlDocumentElement=xmlResponse.documentElement;
			helloMessage=xmlDocumentElement.firstChild.data;*/
			Texto=xmlHttp.responseText;
			cuerpo='content';
			document.getElementById(cuerpo).innerHTML=Texto;
		}
		else
		{
			alert("Existe un problema en la obtencion de datos");
		}
	}
}
}
//----------------------------------------------------------------
function webpagegal6(f)
{
if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
{
//code = encodeURIComponent(document.getElementById(x).value);
xmlHttp.open("GET","altron2.php?cod="+f+"ms="+new Date().getTime(),true);
xmlHttp.onreadystatechange = handleServerResponsewpgal6;
xmlHttp.send(null);
}
else
{
alert("Problema con la comunicacion en el Servidor");
}
function handleServerResponsewpgal6()
{
	if(xmlHttp.readyState==4)
	{
		if(xmlHttp.status==200)
		{
			/*
			xmlResponse=xmlHttp.responseXML;
			xmlDocumentElement=xmlResponse.documentElement;
			helloMessage=xmlDocumentElement.firstChild.data;*/
			Texto=xmlHttp.responseText;
			cuerpo='content';
			document.getElementById(cuerpo).innerHTML=Texto;
		}
		else
		{
			alert("Existe un problema en la obtencion de datos");
		}
	}
}
}
//----------------------------------------------------------------
function webpagegal5(e)
{
if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
{
//code = encodeURIComponent(document.getElementById(x).value);
xmlHttp.open("GET","altron1.php?cod="+e+"ms="+new Date().getTime(),true);
xmlHttp.onreadystatechange = handleServerResponsewpgal5;
xmlHttp.send(null);
}
else
{
alert("Problema con la comunicacion en el Servidor");
}
function handleServerResponsewpgal5()
{
	if(xmlHttp.readyState==4)
	{
		if(xmlHttp.status==200)
		{
			/*
			xmlResponse=xmlHttp.responseXML;
			xmlDocumentElement=xmlResponse.documentElement;
			helloMessage=xmlDocumentElement.firstChild.data;*/
			Texto=xmlHttp.responseText;
			cuerpo='content';
			document.getElementById(cuerpo).innerHTML=Texto;
		}
		else
		{
			alert("Existe un problema en la obtencion de datos");
		}
	}
}
}

//-------------------------------------------------
function webpagegal3(c)
{
if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
{
//code = encodeURIComponent(document.getElementById(x).value);
xmlHttp.open("GET","lg2.php?cod="+c+"ms="+new Date().getTime(),true);
xmlHttp.onreadystatechange = handleServerResponsewpgal3;
xmlHttp.send(null);
}
else
{
alert("Problema con la comunicacion en el Servidor");
}
function handleServerResponsewpgal3()
{
	if(xmlHttp.readyState==4)
	{
		if(xmlHttp.status==200)
		{
			/*
			xmlResponse=xmlHttp.responseXML;
			xmlDocumentElement=xmlResponse.documentElement;
			helloMessage=xmlDocumentElement.firstChild.data;*/
			Texto=xmlHttp.responseText;
			cuerpo='content';
			document.getElementById(cuerpo).innerHTML=Texto;
		}
		else
		{
			alert("Existe un problema en la obtencion de datos");
		}
	}
}
}
//-----------------------------------------------
function webpagegal2(b)
{
if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
{
//code = encodeURIComponent(document.getElementById(x).value);
xmlHttp.open("GET","sam1.php?cod="+b+"ms="+new Date().getTime(),true);
xmlHttp.onreadystatechange = handleServerResponsewpgal2;
xmlHttp.send(null);
}
else
{
alert("Problema con la comunicacion en el Servidor");
}
function handleServerResponsewpgal2()
{
	if(xmlHttp.readyState==4)
	{
		if(xmlHttp.status==200)
		{
			/*
			xmlResponse=xmlHttp.responseXML;
			xmlDocumentElement=xmlResponse.documentElement;
			helloMessage=xmlDocumentElement.firstChild.data;*/
			Texto=xmlHttp.responseText;
			cuerpo='content';
			document.getElementById(cuerpo).innerHTML=Texto;
		}
		else
		{
			alert("Existe un problema en la obtencion de datos");
		}
	}
}
}
//-----------------------------------------------
//Evento galeria-----------------------------
function webpagegal(a)
{
if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
{
//code = encodeURIComponent(document.getElementById(x).value);
xmlHttp.open("GET","evengaleria.php?cod="+a+"ms="+new Date().getTime(),true);
xmlHttp.onreadystatechange = handleServerResponsewpgal;
xmlHttp.send(null);
}
else
{
alert("Problema con la comunicacion en el Servidor");
}
function  handleServerResponsewpgal()
{
	if(xmlHttp.readyState==4)
	{
		if(xmlHttp.status==200)
		{
			/*
			xmlResponse=xmlHttp.responseXML;
			xmlDocumentElement=xmlResponse.documentElement;
			helloMessage=xmlDocumentElement.firstChild.data;*/
			Texto=xmlHttp.responseText;
			cuerpo='content';
			document.getElementById(cuerpo).innerHTML=Texto;
		}
		else
		{
			alert("Existe un problema en la obtencion de datos");
		}
	}
}
}


function webpage1()
{
if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
{
//code = encodeURIComponent(document.getElementById(x).value);
xmlHttp.open("GET","m1.php?ms="+new Date().getTime(),true);
xmlHttp.onreadystatechange = handleServerResponsewp;
xmlHttp.send(null);
}
else
{
alert("Problema con la comunicacion en el Servidor");
}
function handleServerResponsewp()
{
	if(xmlHttp.readyState==4)
	{
		if(xmlHttp.status==200)
		{
			/*
			xmlResponse=xmlHttp.responseXML;
			xmlDocumentElement=xmlResponse.documentElement;
			helloMessage=xmlDocumentElement.firstChild.data;*/
			Texto=xmlHttp.responseText;
			cuerpo='content';
			document.getElementById(cuerpo).innerHTML=Texto;
		}
		else
		{
			alert("Existe un problema en la obtencion de datos");
		}
	}
}
}

function webpage2()
{
if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
{
//code = encodeURIComponent(document.getElementById(x).value);
xmlHttp.open("GET","m2.php?ms="+new Date().getTime(),true);
xmlHttp.onreadystatechange = handleServerResponsewp2;
xmlHttp.send(null);
}
else
{
alert("Problema con la comunicacion en el Servidor");
}
function handleServerResponsewp2()
{
	if(xmlHttp.readyState==4)
	{
		if(xmlHttp.status==200)
		{
			/*
			xmlResponse=xmlHttp.responseXML;
			xmlDocumentElement=xmlResponse.documentElement;
			helloMessage=xmlDocumentElement.firstChild.data;*/
			Texto=xmlHttp.responseText;
			cuerpo='content';
			document.getElementById(cuerpo).innerHTML=Texto;
		}
		else
		{
			alert("Existe un problema en la obtencion de datos");
		}
	}
}
}

function webpageev()
{
if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
{
//code = encodeURIComponent(document.getElementById(x).value);
xmlHttp.open("GET","evenindex.php?ms="+new Date().getTime(),true);
xmlHttp.onreadystatechange = handleServerResponsewpev;
xmlHttp.send(null);
}
else
{
alert("Problema con la comunicacion en el Servidor");
}

function handleServerResponsewpev()
{
	if(xmlHttp.readyState==4)
	{
		if(xmlHttp.status==200)
		{
			/*
			xmlResponse=xmlHttp.responseXML;
			xmlDocumentElement=xmlResponse.documentElement;
			helloMessage=xmlDocumentElement.firstChild.data;*/
			Texto=xmlHttp.responseText;
			cuerpo='content';
			document.getElementById(cuerpo).innerHTML=Texto;
		}
		else
		{
			alert("Existe un problema en la obtencion de datos");
		}
	}
}
}

	function saveuser()
	{
	if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
	{
	razon = encodeURIComponent(document.getElementById("rs").value);
	ruc1 = encodeURIComponent(document.getElementById("ruc").value);
	telefono = encodeURIComponent(document.getElementById("tel").value);
	direccion = encodeURIComponent(document.getElementById("dir").value);
	distrito = encodeURIComponent(document.getElementById("dis").value);
	departamento = encodeURIComponent(document.getElementById("dep").value);
	gerente = encodeURIComponent(document.getElementById("gg").value);
	representante = encodeURIComponent(document.getElementById("rl").value);
	correo = encodeURIComponent(document.getElementById("ce").value);
	xmlHttp.open("GET","m2b.php?rs="+razon+"&ruc="+ruc1+"&tel="+telefono+"&dir="+direccion+"&dis="+distrito+"&dep="+departamento+"&gg="+gerente+"&rl="+representante+"&ce="+correo+"&ms="+new Date().getTime(),true);
	xmlHttp.onreadystatechange = handleServerResponsesuser;
	xmlHttp.send(null);
	}
	else
	{
	alert("Problema con la comunicacion en el Servidor");
	}
	function handleServerResponsesuser()
	{
		if(xmlHttp.readyState==4)
		{
			if(xmlHttp.status==200)
			{
				/*
				xmlResponse=xmlHttp.responseXML;
				xmlDocumentElement=xmlResponse.documentElement;
				helloMessage=xmlDocumentElement.firstChild.data;*/
				Texto=xmlHttp.responseText;
				cuerpo='content';
				document.getElementById(cuerpo).innerHTML=Texto;
			}
			else
			{
				alert("Existe un problema en la obtencion de datos");
			}
		}
	}
	}

	function wop()
	{
	if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
	{
	//code = encodeURIComponent(document.getElementById(x).value);
	xmlHttp.open("GET","m2.php?r=ok&ms="+new Date().getTime(),true);
	xmlHttp.onreadystatechange = handleServerResponsewop;
	xmlHttp.send(null);
	}
	else
	{
	alert("Problema con la comunicacion en el Servidor");
	}
	function handleServerResponsewop()
	{
		if(xmlHttp.readyState==4)
		{
			if(xmlHttp.status==200)
			{
				/*
				xmlResponse=xmlHttp.responseXML;
				xmlDocumentElement=xmlResponse.documentElement;
				helloMessage=xmlDocumentElement.firstChild.data;*/
				Texto=xmlHttp.responseText;
				cuerpo='content';
				document.getElementById(cuerpo).innerHTML=Texto;
			}
			else
			{
				alert("Existe un problema en la obtencion de datos");
			}
		}
	}
	}

function webpage3()
{
if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
{
//code = encodeURIComponent(document.getElementById(x).value);
xmlHttp.open("GET","m3.php?ms="+new Date().getTime(),true);
xmlHttp.onreadystatechange = handleServerResponsewp3;
xmlHttp.send(null);
}
else
{
alert("Problema con la comunicacion en el Servidor");
}
function handleServerResponsewp3()
{
	if(xmlHttp.readyState==4)
	{
		if(xmlHttp.status==200)
		{
			/*
			xmlResponse=xmlHttp.responseXML;
			xmlDocumentElement=xmlResponse.documentElement;
			helloMessage=xmlDocumentElement.firstChild.data;*/
			Texto=xmlHttp.responseText;
			cuerpo='content';
			document.getElementById(cuerpo).innerHTML=Texto;
		}
		else
		{
			alert("Existe un problema en la obtencion de datos");
		}
	}
}
}

	function webpage3a()
	{
	if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
	{
	//code = encodeURIComponent(document.getElementById(x).value);
	xmlHttp.open("GET","m3a.php?ms="+new Date().getTime(),true);
	xmlHttp.onreadystatechange = handleServerResponsewp3a;
	xmlHttp.send(null);
	}
	else
	{
	alert("Problema con la comunicacion en el Servidor");
	}
	function handleServerResponsewp3a()
	{
		if(xmlHttp.readyState==4)
		{
			if(xmlHttp.status==200)
			{
				/*
				xmlResponse=xmlHttp.responseXML;
				xmlDocumentElement=xmlResponse.documentElement;
				helloMessage=xmlDocumentElement.firstChild.data;*/
				Texto=xmlHttp.responseText;
				cuerpo='content';
				document.getElementById(cuerpo).innerHTML=Texto;
			}
			else
			{
				alert("Existe un problema en la obtencion de datos");
			}
		}
	}
	}
	
	function webpage3t()
	{
	if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
	{
	//code = encodeURIComponent(document.getElementById(x).value);
	xmlHttp.open("GET","m3t.php?ms="+new Date().getTime(),true);
	xmlHttp.onreadystatechange = handleServerResponsewp3t;
	xmlHttp.send(null);
	}
	else
	{
	alert("Problema con la comunicacion en el Servidor");
	}
	function handleServerResponsewp3t()
	{
		if(xmlHttp.readyState==4)
		{
			if(xmlHttp.status==200)
			{
				/*
				xmlResponse=xmlHttp.responseXML;
				xmlDocumentElement=xmlResponse.documentElement;
				helloMessage=xmlDocumentElement.firstChild.data;*/
				Texto=xmlHttp.responseText;
				cuerpo='content';
				document.getElementById(cuerpo).innerHTML=Texto;
			}
			else
			{
				alert("Existe un problema en la obtencion de datos");
			}
		}
	}
	}

	function webpage3c()
	{
	if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
	{
	//code = encodeURIComponent(document.getElementById(x).value);
	xmlHttp.open("GET","m3c.php?ms="+new Date().getTime(),true);
	xmlHttp.onreadystatechange = handleServerResponsewp3c;
	xmlHttp.send(null);
	}
	else
	{
	alert("Problema con la comunicacion en el Servidor");
	}
	function handleServerResponsewp3c()
	{
		if(xmlHttp.readyState==4)
		{
			if(xmlHttp.status==200)
			{
				/*
				xmlResponse=xmlHttp.responseXML;
				xmlDocumentElement=xmlResponse.documentElement;
				helloMessage=xmlDocumentElement.firstChild.data;*/
				Texto=xmlHttp.responseText;
				cuerpo='content';
				document.getElementById(cuerpo).innerHTML=Texto;
			}
			else
			{
				alert("Existe un problema en la obtencion de datos");
			}
		}
	}
	}

function webpage4()
{
if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
{
//code = encodeURIComponent(document.getElementById(x).value);
xmlHttp.open("GET","m4.php?ms="+new Date().getTime(),true);
xmlHttp.onreadystatechange = handleServerResponsewp4;
xmlHttp.send(null);
}
else
{
alert("Problema con la comunicacion en el Servidor");
}
function handleServerResponsewp4()
{
	if(xmlHttp.readyState==4)
	{
		if(xmlHttp.status==200)
		{
			/*
			xmlResponse=xmlHttp.responseXML;
			xmlDocumentElement=xmlResponse.documentElement;
			helloMessage=xmlDocumentElement.firstChild.data;*/
			Texto=xmlHttp.responseText;
			cuerpo='content';
			document.getElementById(cuerpo).innerHTML=Texto;
		}
		else
		{
			alert("Existe un problema en la obtencion de datos");
		}
	}
}
}

function webpage5()
{
if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
{
//code = encodeURIComponent(document.getElementById(x).value);
xmlHttp.open("GET","m5.php?ms="+new Date().getTime(),true);
xmlHttp.onreadystatechange = handleServerResponsewp5;
xmlHttp.send(null);
}
else
{
alert("Problema con la comunicacion en el Servidor");
}
function handleServerResponsewp5()
{
	if(xmlHttp.readyState==4)
	{
		if(xmlHttp.status==200)
		{
			/*
			xmlResponse=xmlHttp.responseXML;
			xmlDocumentElement=xmlResponse.documentElement;
			helloMessage=xmlDocumentElement.firstChild.data;*/
			Texto=xmlHttp.responseText;
			cuerpo='content';
			document.getElementById(cuerpo).innerHTML=Texto;
		}
		else
		{
			alert("Existe un problema en la obtencion de datos");
		}
	}
}
}

	function webpage5a()
	{
	if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
	{
	//code = encodeURIComponent(document.getElementById(x).value);
	xmlHttp.open("GET","m5.php?dat=1&ms="+new Date().getTime(),true);
	xmlHttp.onreadystatechange = handleServerResponsewp5a;
	xmlHttp.send(null);
	}
	else
	{
	alert("Problema con la comunicacion en el Servidor");
	}
	function handleServerResponsewp5a()
	{
		if(xmlHttp.readyState==4)
		{
			if(xmlHttp.status==200)
			{
				/*
				xmlResponse=xmlHttp.responseXML;
				xmlDocumentElement=xmlResponse.documentElement;
				helloMessage=xmlDocumentElement.firstChild.data;*/
				Texto=xmlHttp.responseText;
				cuerpo='content';
				document.getElementById(cuerpo).innerHTML=Texto;
			}
			else
			{
				alert("Existe un problema en la obtencion de datos");
			}
		}
	}
	}

function webpage6()
{
if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
{
//code = encodeURIComponent(document.getElementById(x).value);
xmlHttp.open("GET","m6.php?ms="+new Date().getTime(),true);
xmlHttp.onreadystatechange = handleServerResponsewp6;
xmlHttp.send(null);
}
else
{
alert("Problema con la comunicacion en el Servidor");
}
function handleServerResponsewp6()
{
	if(xmlHttp.readyState==4)
	{
		if(xmlHttp.status==200)
		{
			/*
			xmlResponse=xmlHttp.responseXML;
			xmlDocumentElement=xmlResponse.documentElement;
			helloMessage=xmlDocumentElement.firstChild.data;*/
			Texto=xmlHttp.responseText;
			cuerpo='content';
			document.getElementById(cuerpo).innerHTML=Texto;
		}
		else
		{
			alert("Existe un problema en la obtencion de datos");
		}
	}
}
}

function webpage7()
{
if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
{
//code = encodeURIComponent(document.getElementById(x).value);
xmlHttp.open("GET","m7.php?ms="+new Date().getTime(),true);
xmlHttp.onreadystatechange = handleServerResponsewp7;
xmlHttp.send(null);
}
else
{
alert("Problema con la comunicacion en el Servidor");
}
function handleServerResponsewp7()
{
	if(xmlHttp.readyState==4)
	{
		if(xmlHttp.status==200)
		{
			/*
			xmlResponse=xmlHttp.responseXML;
			xmlDocumentElement=xmlResponse.documentElement;
			helloMessage=xmlDocumentElement.firstChild.data;*/
			Texto=xmlHttp.responseText;
			cuerpo='content';
			document.getElementById(cuerpo).innerHTML=Texto;
		}
		else
		{
			alert("Existe un problema en la obtencion de datos");
		}
	}
}
}

function webpage10()
{
if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
{
//code = encodeURIComponent(document.getElementById(x).value);
xmlHttp.open("GET","m10.php?ms="+new Date().getTime(),true);
xmlHttp.onreadystatechange = handleServerResponsewp10;
xmlHttp.send(null);
}
else
{
alert("Problema con la comunicacion en el Servidor");
}
function handleServerResponsewp10()
{
	if(xmlHttp.readyState==4)
	{
		if(xmlHttp.status==200)
		{
			/*
			xmlResponse=xmlHttp.responseXML;
			xmlDocumentElement=xmlResponse.documentElement;
			helloMessage=xmlDocumentElement.firstChild.data;*/
			Texto=xmlHttp.responseText;
			cuerpo='content';
			document.getElementById(cuerpo).innerHTML=Texto;
		}
		else
		{
			alert("Existe un problema en la obtencion de datos");
		}
	}
}
}

function webpage10a(ddc)
{
if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
{
//code = encodeURIComponent(document.getElementById(x).value);
xmlHttp.open("GET","md10.php?n="+ddc+"&ms="+new Date().getTime(),true);
xmlHttp.onreadystatechange = handleServerResponsewp10a;
xmlHttp.send(null);
}
else
{
alert("Problema con la comunicacion en el Servidor");
}
function handleServerResponsewp10a()
{
	if(xmlHttp.readyState==4)
	{
		if(xmlHttp.status==200)
		{
			/*
			xmlResponse=xmlHttp.responseXML;
			xmlDocumentElement=xmlResponse.documentElement;
			helloMessage=xmlDocumentElement.firstChild.data;*/
			Texto=xmlHttp.responseText;
			cuerpo='content';
			document.getElementById(cuerpo).innerHTML=Texto;
		}
		else
		{
			alert("Existe un problema en la obtencion de datos");
		}
	}
}
}

function webpage11()
{
if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
{
//code = encodeURIComponent(document.getElementById(x).value);
xmlHttp.open("GET","m11.php?ms="+new Date().getTime(),true);
xmlHttp.onreadystatechange = handleServerResponsewp11;
xmlHttp.send(null);
}
else
{
alert("Problema con la comunicacion en el Servidor");
}
function handleServerResponsewp11()
{
	if(xmlHttp.readyState==4)
	{
		if(xmlHttp.status==200)
		{
			/*
			xmlResponse=xmlHttp.responseXML;
			xmlDocumentElement=xmlResponse.documentElement;
			helloMessage=xmlDocumentElement.firstChild.data;*/
			Texto=xmlHttp.responseText;
			cuerpo='content';
			document.getElementById(cuerpo).innerHTML=Texto;
		}
		else
		{
			alert("Existe un problema en la obtencion de datos");
		}
	}
}
}

function webpage11a(ddp)
{
if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
{
//code = encodeURIComponent(document.getElementById(x).value);
xmlHttp.open("GET","md11.php?n="+ddp+"&ms="+new Date().getTime(),true);
xmlHttp.onreadystatechange = handleServerResponsewp11a;
xmlHttp.send(null);
}
else
{
alert("Problema con la comunicacion en el Servidor");
}
function handleServerResponsewp11a()
{
	if(xmlHttp.readyState==4)
	{
		if(xmlHttp.status==200)
		{
			/*
			xmlResponse=xmlHttp.responseXML;
			xmlDocumentElement=xmlResponse.documentElement;
			helloMessage=xmlDocumentElement.firstChild.data;*/
			Texto=xmlHttp.responseText;
			cuerpo='content';
			document.getElementById(cuerpo).innerHTML=Texto;
		}
		else
		{
			alert("Existe un problema en la obtencion de datos");
		}
	}
}
}

function com(cco)
{
if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
{
//code = encodeURIComponent(document.getElementById(x).value);
xmlHttp.open("GET","p.php?scid="+cco+"ms="+new Date().getTime(),true);
xmlHttp.onreadystatechange = handleServerResponsecom;
xmlHttp.send(null);
}
else
{
alert("Problema con la comunicacion en el Servidor");
}
function handleServerResponsecom()
{
	if(xmlHttp.readyState==4)
	{
		if(xmlHttp.status==200)
		{
			/*
			xmlResponse=xmlHttp.responseXML;
			xmlDocumentElement=xmlResponse.documentElement;
			helloMessage=xmlDocumentElement.firstChild.data;*/
			Texto=xmlHttp.responseText;
			cuerpo='content';
			document.getElementById(cuerpo).innerHTML=Texto;
		}
		else
		{
			alert("Existe un problema en la obtencion de datos");
		}
	}
}
}

	function searchword()
	{
	if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
	{
	palabra = encodeURIComponent(document.getElementById("word").value);
	xmlHttp.open("GET","s.php?word="+palabra+"&ms="+new Date().getTime(),true);
	xmlHttp.onreadystatechange = handleServerResponsesav;
	xmlHttp.send(null);
	}
	else
	{
	alert("Problema con la comunicacion en el Servidor");
	}
	function handleServerResponsesav()
	{
		if(xmlHttp.readyState==4)
		{
			if(xmlHttp.status==200)
			{
				/*
				xmlResponse=xmlHttp.responseXML;
				xmlDocumentElement=xmlResponse.documentElement;
				helloMessage=xmlDocumentElement.firstChild.data;*/
				Texto=xmlHttp.responseText;
				cuerpo='content';
				document.getElementById(cuerpo).innerHTML=Texto;
			}
			else
			{
				alert("Existe un problema en la obtencion de datos");
			}
		}
	}
	}
	
	function detailp(cp)
	{
	if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
	{
	//code = encodeURIComponent(document.getElementById(x).value);
	xmlHttp.open("GET","det.php?idp="+cp+"&ms="+new Date().getTime(),true);
	xmlHttp.onreadystatechange = handleServerResponsedtp;
	xmlHttp.send(null);
	}
	else
	{
	alert("Problema con la comunicacion en el Servidor");
	}
	function handleServerResponsedtp()
	{
		if(xmlHttp.readyState==4)
		{
			if(xmlHttp.status==200)
			{
				/*
				xmlResponse=xmlHttp.responseXML;
				xmlDocumentElement=xmlResponse.documentElement;
				helloMessage=xmlDocumentElement.firstChild.data;*/
				Texto=xmlHttp.responseText;
				cuerpo='content';
				document.getElementById(cuerpo).innerHTML=Texto;
			}
			else
			{
				alert("Existe un problema en la obtencion de datos");
			}
		}
	}
	}
	
	function detailmp(cpm)
	{
	if(xmlHttp.readyState==4 || xmlHttp.readyState==0)
	{
	//code = encodeURIComponent(document.getElementById(x).value);
	xmlHttp.open("GET","det.php?idp="+cpm+"&more=1&ms="+new Date().getTime(),true);
	xmlHttp.onreadystatechange = handleServerResponsedtpm;
	xmlHttp.send(null);
	}
	else
	{
	alert("Problema con la comunicacion en el Servidor");
	}
	function handleServerResponsedtpm()
	{
		if(xmlHttp.readyState==4)
		{
			if(xmlHttp.status==200)
			{
				/*
				xmlResponse=xmlHttp.responseXML;
				xmlDocumentElement=xmlResponse.documentElement;
				helloMessage=xmlDocumentElement.firstChild.data;*/
				Texto=xmlHttp.responseText;
				cuerpo='content';
				document.getElementById(cuerpo).innerHTML=Texto;
			}
			else
			{
				alert("Existe un problema en la obtencion de datos");
			}
		}
	}
	}