	  function jsphp_shtml(contenedor_id,url,params,async)
	  {
	  		//var url = encodeURIComponent(fuente_datos);
	  		new Ajax.Request(url, {
	  		method: 'post',
	  		parameters: params,
	  		asynchronous: async,
	  		onSuccess: function(transport)
	  		{
	  			if(transport.responseText.length > 0)
	  			{
	  				document.getElementById(contenedor_id).innerHTML=transport.responseText;
	  			}
	  		},
	  		onLoading: function()
	  		{
	  			//document.getElementById('prueba').innerHTML="Leyendo...";
	  			document.getElementById('apDiv1').style.visibility = 'visible';
	  		},
	  		onLoaded: function()
	  		{
	  			//document.getElementById('prueba').innerHTML="";
	  			document.getElementById('apDiv1').style.visibility = 'hidden';
	  		},
	  		onException: function()
	  		{
	  			alert("ha ocurrido un error, vuelva a intentarlo");
	  		}
	  		}
	  		);
	  }

	  
	  
	  function jsphp_exec(url,params,async)
	  {
	  		//var url = encodeURIComponent(fuente_datos);
	  		new Ajax.Request(url, {
	  		method: 'post',
	  		parameters: params,
	  		asynchronous: async,
	  		onSuccess: function(transport)
	  		{
	  			if(transport.responseText.length > 0)
	  			{
	  				eval(transport.responseText);
	  			}
                //document.getElementById('apDiv1').style.visibility = 'hidden';
	  		},
	  		onLoading: function()
	  		{
	  			//document.getElementById('prueba').innerHTML="Leyendo...";
	  			document.getElementById('apDiv1').style.visibility = 'visible';
	  		},
	  		onLoaded: function()
	  		{
	  			//document.getElementById('prueba').innerHTML="";
	  			document.getElementById('apDiv1').style.visibility = 'hidden';
	  		},
	  		onException: function()
	  		{
	  			alert("ha ocurrido un error, vuelva a intentarlo");
	  		},
	  		onComplete: function()
	  		{
	  			//document.getElementById('prueba').innerHTML="";
	  			document.getElementById('apDiv1').style.visibility = 'hidden';
	  		}

	  		}
	  		);
	  }
	  
	  function jsphp_exec_calif(url,params,async,mensaje)
	  {
	  		//var url = encodeURIComponent(fuente_datos);
	  		new Ajax.Request(url, {
	  		method: 'post',
	  		parameters: params,
	  		asynchronous: async,
	  		onSuccess: function(transport)
	  		{
	  			if(transport.responseText.length > 0)
	  			{
	  				eval(transport.responseText);
	  			}
                //document.getElementById('apDiv1').style.visibility = 'hidden';
	  		},
	  		onLoading: function()
	  		{
	  			//document.getElementById('prueba').innerHTML="Leyendo...";
	  			document.getElementById(mensaje).style.visibility = 'visible';
	  		},
	  		onLoaded: function()
	  		{
	  			//document.getElementById('prueba').innerHTML="";
	  			document.getElementById(mensaje).style.visibility = 'hidden';
	  		},
	  		onException: function()
	  		{
	  			alert("ha ocurrido un error, vuelva a intentarlo");
	  		},
	  		onComplete: function()
	  		{
	  			//document.getElementById('prueba').innerHTML="";
	  			document.getElementById(mensaje).style.visibility = 'hidden';
	  		}

	  		}
	  		);
	  }
