
function Transacciones ( )
{

	this.JantoUrl 	 = "";
	this.UserSession = "";

	Transacciones.prototype.Init = function ( url )
	{
		this.JantoUrl 		 = url;
	}

	Transacciones.prototype.DefineUserSession = function ( pSession )
	{
		this.UserSession  = pSession;
	}


	Transacciones.prototype.Qservlet = function ( url, qString )
	{

		var urlDatos = "";
		for ( var campo in qString )
		{
			if ( qString[campo] != "" )
			{
				urlDatos += campo + "=" + qString[campo] + "&";
			}
		}
		urlDatos += "Idioma=" + IDIOMA + "&";
		urlDatos += "UserSession=" + this.UserSession;

		url = this.JantoUrl + "/" + url;
		// return this.URL ( this.UrlProgramacion, urlDatos );
		return this.URL ( url, urlDatos );

	}

	Transacciones.prototype.URL = function ( url, urlDatos )
	{
		var info   = new Object ( );
		info.Url   = url;
		info.Datos = urlDatos;
		return info;
	}

}

