//Copyright © 2001 InfoJet S.R.L. - Realizado por Macroaldea S.I. 
/*********** COMIENZO PARAMETROS CONFIGURABLES ***********/

// URL_BASE: URL donde se encuentran los archivos javascript
var URL_BASE = "http://www.123info.com.ar/novedades/js/";

// origenDetalles: indica si mostrara el detalle de las peliculas (ficha tecnica)
// y el origen de la informacion para mostrar el detalle.
// Valores posibles:
// JS: si utiliza los archivos JavaScript
// LOCAL: si utiliza una pagina en su sitio
// 123INFO: si utiliza la pagina del sitio 123info.com.ar (http://www.123info.com.ar/html/cpelicula.asp)
var origenDetalles = "JS";

// urlDetalles: url de pagina para mostrar el detalle de la informacion (ficha tecnica de peliculas)
// si no desea link solo dejelo igualado a un string vacio
// en todos los casos que desee mostra los detalles de las peliculas tanto en forma local a su
// sitio como en forma remota referenciando al sitio de 123info.com.ar debera indicar la URL
// de la pagina de detalles en esta variable

// var urlDetalles = "http://www.123info.com.ar/cpelicula.asp";
 // 123INFO: si utiliza la pagina del sitio 123info.com.ar (http://www.123info.com.ar/html/cpelicula.asp)

var urlDetalles = "ficha_tecnica.htm";



/******** TIPOGRAFIAS DE DETALLE DE RESULTADOS DE BUSQUEDA ********/

// itemFONT_FACE: tipografia de los items (peliculas o cines)
var itemFONT_FACE = "Verdana,Arial,Helvetica,Univers,Zurich BT";

// itemFONT_COLOR: color de tipografia de los items (peliculas o cines)
var itemFONT_COLOR = "#A79878";

// itemFONT_SIZE: tamaño de tipografia de los items (peliculas o cines)
var itemFONT_SIZE = "-2";

// itemFONT_BOLD: indica si la tipografia de los items (peliculas o cines), es en negrita o no (valores posibles: SI, NO)
var itemFONT_BOLD = "SI";

// itemdatosFONT_FACE: tipografia de los datos asociados a los items (horario, direccion, TE, FAX, email. )
var itemdatosFONT_FACE = "Verdana,Arial,Helvetica,Univers,Zurich BT";

// itemdatosFONT_COLOR: color de tipografia de los datos asociados a los items (horario, direccion, TE, FAX, email. )
var itemdatosFONT_COLOR = "#000000";

// itemdatosFONT_SIZE: tamaño de tipografia de los datos asociados a los items (horario, direccion, TE, FAX, email. )
var itemdatosFONT_SIZE = "-2";

// itemdatosFONT_BOLD: indica si la tipografia de los items (peliculas o cines), es en negrita o no (valores posibles: SI, NO)
var itemdatosFONT_BOLD = "SI";

/******** TIPOGRAFIAS DE ENCABEZADO DE RESULTADOS DE BUSQUEDA ********/

// encabezadoFONT_FACE: tipografia del encabezado de resultados de busqueda (Cine, Pelicula, etc)
var encabezadoFONT_FACE = "Arial,Helvetica,Univers,Zurich BT";

// encabezadoFONT_COLOR: color de tipografia del encabezado de resultados de busqueda (Cine, Pelicula, etc)
var encabezadoFONT_COLOR = "#A79878";

// encabezadoFONT_SIZE: tamaño de tipografia del encabezado de resultados de busqueda (Cine, Pelicula, etc)
var encabezadoFONT_SIZE = "-1";

// encabezadoFONT_BOLD: indica si la tipografia tipografia del encabezado de resultados de busqueda (Cine, Pelicula, etc), es en negrita o no (valores posibles: SI, NO)
var encabezadoFONT_BOLD = "SI";

// encabezadodatosFONT_FACE: tipografia de los datos del encabezado de resultados de busqueda (Cine, Pelicula, etc)
var encabezadodatosFONT_FACE = "Verdana,Arial,Helvetica,Univers,Zurich BT";

// encabezadoFONT_COLOR: color de tipografia de los datos del encabezado de resultados de busqueda (Cine, Pelicula, etc)
var encabezadodatosFONT_COLOR = "#000000";

// encabezadodatosFONT_SIZE: tamaño de tipografia de los datos del encabezado de resultados de busqueda (Cine, Pelicula, etc)
var encabezadodatosFONT_SIZE = "-2";

// encabezadoFONT_BOLD: indica si la tipografia tipografia de los datos del encabezado de resultados de busqueda (Cine, Pelicula, etc), es en negrita o no (valores posibles: SI, NO)
var encabezadodatosFONT_BOLD = "NO";

/*********** FIN PARAMETROS CONFIGURABLES ***********/

function openNewWindow()
{
	var argv = openNewWindow.arguments;
	var argc = argv.length;
	
	var URLtoOpen = argv[0];
	var ancho = argv[1];
	var alto = argv[2];
	var windowName = ancho + alto;

	var windowFeatures = 'toolbar=no, location=no, directories=no,status=yes,menubar=no, scrollbars=yes, resizable=yes, width=' + ancho + ', height=' + alto;

	newWindow=window.open(URLtoOpen, ancho + alto, windowFeatures);
	newWindow.focus();
}

function get_Page_Name()
{
//descripcion: devuelve el nombre de la pagina donde se ejecuta el script

	var sLocation = document.URL;
	var sQry = sLocation.substring(sLocation.lastIndexOf("/") + 1);
	if ( sQry.indexOf("?") > -1 )
	{
		return ( sQry.substring(0, sQry.indexOf("?") ) );
	}
	else
	{
		if ( sQry.indexOf("#") > -1 )
		{
			return ( sQry.substring(0, sQry.indexOf("#") ) );
		}
		else
		{
			return(sQry);
		}
	}
}

function splitQuerystring()
{
	var sLocation = document.URL;
	var sQry = "";
	var sPar = "";
	var aVarName = new Array();
	var aVarValue = new Array();
	var iPosIni = sLocation.indexOf("?") + 1;

	if ( iPosIni > 0 )
	{
		sQry = sLocation.substring(iPosIni);
		var iAuxPosFin = -1;
		var i = 0;
		while ( sQry.length > 0 )
		{
			if ( sQry.indexOf("&") > -1 )
			{
				iAuxPosFin = sQry.indexOf("&");
			}
			else
			{
				iAuxPosFin = sQry.length;
			}
			sPar = sQry.substring(0, iAuxPosFin);
			aVarName[i] = sPar.substring(0, sPar.indexOf("="));
			aVarValue[i] = sPar.substring(sPar.indexOf("=") + 1, iAuxPosFin);

			sQry = sQry.substring(iAuxPosFin + 1);
			iAuxPosFin = -1;
			i++;
		}
		for ( var j = 0; j < i; j++)
		{
			if ( aVarName[j].toLowerCase() == "criterio" )
			{
				this.criterio = aVarValue[j];
			}
			if ( aVarName[j].toLowerCase() == "origendatos" )
			{
				this.origendatos = aVarValue[j];
			}
		}
	}
	return;
}

function searchIt(form) {
//descripcion: recarga la pagina actual con los parametros de busqueda seleccionados
	
	if (form.cmbCines.options[form.cmbCines.selectedIndex].value!="") { 
	       	document.location= pageName + '?criterio=cine' + '&origendatos=cine' + form.cmbCines.options[form.cmbCines.selectedIndex].value;
	       	return;
	}
	if (form.cmbPeliculas.options[form.cmbPeliculas.selectedIndex].value!="") { 
	       	document.location= pageName + '?criterio=pelicula' + '&origendatos=pelicula' + form.cmbPeliculas.options[form.cmbPeliculas.selectedIndex].value;
	       	return;
	}
	if (form.cmbGeneros.options[form.cmbGeneros.selectedIndex].value!="") { 
	       	document.location= pageName + '?criterio=genero' + '&origendatos=genero' + form.cmbGeneros.options[form.cmbGeneros.selectedIndex].value;
	       	return;
	}
	if (form.cmbZonas.options[form.cmbZonas.selectedIndex].value!="") { 
	       	document.location= pageName + '?criterio=zona' + '&origendatos=zona' + form.cmbZonas.options[form.cmbZonas.selectedIndex].value;
	       	return;
	}
}

function resetCriterio(form, curCriterio){
//esta funcion resetea los restantes combos sin modificar al combo corriente que
//le es pasado como parametro (curCriterio: criterio actual)
//valores de curCriterio: cine, pelicula, genero, zona

if ( curCriterio.toLowerCase() != "cine" ) form.cmbCines.selectedIndex = 0;
if ( curCriterio.toLowerCase() != "pelicula" ) form.cmbPeliculas.selectedIndex = 0;
if ( curCriterio.toLowerCase() != "genero" ) form.cmbGeneros.selectedIndex = 0;
if ( curCriterio.toLowerCase() != "zona" ) form.cmbZonas.selectedIndex = 0;

}

function w_Form(){
//descripcion: escribe el formulario de busqueda

document.writeln("<FORM NAME='formCine' ACTION='' METHOD=POST>")
document.writeln("<FONT COLOR='" + encabezadoFONT_COLOR + "' SIZE='" + encabezadoFONT_SIZE + "' FACE='" + encabezadoFONT_FACE + "'><B>Buscador de Películas</font></B><BR><BR>")

//descripcion: coloca en la página el combo de cines
w_cmbCines();
document.writeln("<br><BR>");
//descripcion: coloca en la página el combo de zonas
w_cmbZonas();
document.writeln("<br><BR>");
//descripcion: coloca en la página el combo de peliculas
w_cmbPeliculas();
document.writeln("<br><BR>");
//descripcion: coloca en la página el combo de generos
w_cmbGeneros();
document.writeln("<br><br><CENTER>");
document.writeln("<input type='button' value='Buscar' onclick='searchIt(document.formCine)'>");
document.writeln("</CENTER></FORM>");

}



function w_cmbCines(){
//descripcion: escribe el combo de cines

document.writeln("<SELECT ID='cmbCines' NAME='cmbCines' ONCHANGE='resetCriterio(document.formCine,\"cine\")'>")
document.writeln("<OPTION VALUE='' SELECTED>por Cines</OPTION>")
document.writeln("<OPTION>_______________</OPTION>")

for (var nro=0; nro < aCines.length; nro++)
{
document.writeln("<OPTION value='" + aCines[nro].c_cine + "'>")
document.writeln(aCines[nro].nombre)
document.writeln("</OPTION>")
}
document.writeln("</SELECT>");
}

function w_cmbPeliculas(){
//descripcion: escribe el combo de peliculas

document.writeln("<SELECT ID='cmbPeliculas' NAME='cmbPeliculas' ONCHANGE='resetCriterio(document.formCine,\"pelicula\");'>")
document.writeln("<OPTION VALUE='' SELECTED>por Películas</OPTION>")
document.writeln("<OPTION>_______________</OPTION>")

for (var nro=0; nro < aPeliculas.length; nro++)
{
document.writeln("<OPTION value='" + aPeliculas[nro].c_pelicula + "'>")
document.writeln(aPeliculas[nro].nombre)
document.writeln("</OPTION>")
}
document.writeln("</SELECT>");
}

function w_cmbGeneros(){
//descripcion: escribe el combo de generos

document.writeln("<SELECT ID='cmbGeneros' NAME='cmbGeneros' ONCHANGE='resetCriterio(document.formCine,\"genero\")'>")
document.writeln("<OPTION VALUE='' SELECTED>por Género</OPTION>")
document.writeln("<OPTION>_______________</OPTION>")

for (var nro=0; nro < aGeneros.length; nro++)
{
document.writeln("<OPTION value='" + aGeneros[nro].c_genero + "'>")
document.writeln(aGeneros[nro].nombre)
document.writeln("</OPTION>")
}
document.writeln("</SELECT>");
}

function w_cmbZonas(){
//descripcion: escribe el combo de zonas

document.writeln("<SELECT ID='cmbZonas' NAME='cmbZonas' ONCHANGE='resetCriterio(document.formCine,\"zona\")'>")
document.writeln("<OPTION VALUE='' SELECTED>por Zona</OPTION>")
document.writeln("<OPTION>_______________</OPTION>")

for (var nro=0; nro < aZonas.length; nro++)
{
document.writeln("<OPTION value='" + aZonas[nro].c_zona + "'>")
document.writeln(aZonas[nro].nombre)
document.writeln("</OPTION>")
}
document.writeln("</SELECT>");
}

function w_Search_Results()
{
	if ( pageParams.criterio == "cine" )
	{
		document.writeln( (encabezadoFONT_BOLD.toUpperCase() == 'SI')?"<b>":"" );
		document.writeln("<FONT COLOR='" + encabezadoFONT_COLOR + "' SIZE='" + encabezadoFONT_SIZE + "' FACE='" + encabezadoFONT_FACE + "'>" + aResultados_Encabezado.nombre + "</font>");
		document.writeln( (encabezadoFONT_BOLD.toUpperCase() == 'SI')?"</b><br>":"<br>" );

		document.writeln( (encabezadodatosFONT_BOLD.toUpperCase() == 'SI')?"<b>":"" );
		document.writeln("<FONT COLOR='" + encabezadodatosFONT_COLOR + "' SIZE='" + encabezadodatosFONT_SIZE + "' FACE='" + encabezadodatosFONT_FACE + "'>" + aResultados_Encabezado.direccion + " - " + aResultados_Encabezado.masdatos + "</font>");
		document.writeln( (encabezadodatosFONT_BOLD.toUpperCase() == 'SI')?"</b><br><br>":"<br><br>" );
		for (var i=0;i<aResultados.length;i++)
		{
			document.writeln( (itemFONT_BOLD.toUpperCase() == 'SI')?"<b>":"" );
			if (origenDetalles.toUpperCase()!="")
			{
				if (origenDetalles.toUpperCase()=="JS")
				{
					document.writeln( (urlDetalles != '')?"<A HREF=\"" + urlDetalles + "?origendatos=ficha" + aResultados[i].c_pelicula + "\" STYLE='text-decoration: none ;'>":"" );
				}
				if (origenDetalles.toUpperCase()=="LOCAL")
				{
				document.writeln( (urlDetalles != '')?"<A HREF=\"" + urlDetalles + "\" STYLE='text-decoration: none ;' target=\"_top\">":"" );
				}
				if (origenDetalles.toUpperCase()=="123INFO")
				{
				document.writeln( (urlDetalles != '')?"<A HREF=\"" + urlDetalles + "?h=" + pageParams.criterio + "&p=" + aResultados[i].c_pelicula + "\" STYLE='text-decoration: none ; ' target=\"_blank\">":"" );
				}
			}
			document.writeln("<FONT COLOR='" + itemFONT_COLOR + "' SIZE='" + itemFONT_SIZE + "' FACE='" + itemFONT_FACE + "'>" + aResultados[i].nombre + ",&nbsp;</font>");
			if (origenDetalles.toUpperCase()!="")
			{
				document.writeln( (urlDetalles != '')?"</A>":"" );
			}
			document.writeln( (itemFONT_BOLD.toUpperCase() == 'SI')?"</b>":"" );
			document.writeln( (itemdatosFONT_BOLD.toUpperCase() == 'SI')?"<b>":"" );
			document.writeln("<FONT COLOR='" + itemdatosFONT_COLOR + "' SIZE='" + itemdatosFONT_SIZE + "' FACE='" + itemdatosFONT_FACE + "'>" + aResultados[i].horario + "</font>");
			document.writeln( (itemdatosFONT_BOLD.toUpperCase() == 'SI')?"</b><br><br>":"<br><br>" );
		}
		return;
	}
	if ( pageParams.criterio == "pelicula" )
	{
		if (origenDetalles.toUpperCase()!="")
		{
			if (origenDetalles.toUpperCase()=="JS")
			{
				document.writeln( (urlDetalles != '')?"<A HREF=\"" + urlDetalles + "?origendatos=ficha" + aResultados_Encabezado.c_pelicula + "\" STYLE='text-decoration: none ;'>":"" );
			}
			if (origenDetalles.toUpperCase()=="LOCAL")
			{
			document.writeln( (urlDetalles != '')?"<A HREF=\"" + urlDetalles + "\" STYLE='text-decoration: none ;' target=\"_top\">":"" );
			}
			if (origenDetalles.toUpperCase()=="123INFO")
			{
			document.writeln( (urlDetalles != '')?"<A HREF=\"" + urlDetalles + "?h=cine" + "&p=" + aResultados_Encabezado.c_pelicula + "\" STYLE='text-decoration: none ; ' target=\"_blank\">":"" );
			}
		}
		document.writeln( (encabezadoFONT_BOLD.toUpperCase() == 'SI')?"<b>":"" );
		document.writeln("<FONT COLOR='" + encabezadoFONT_COLOR + "' SIZE='" + encabezadoFONT_SIZE + "' FACE='" + encabezadoFONT_FACE + "'>");
		document.writeln( aResultados_Encabezado.nombre );
		document.writeln("</font>");
		document.writeln( (encabezadoFONT_BOLD.toUpperCase() == 'SI')?"</b>":"" );
		if (origenDetalles.toUpperCase()!="")
		{
			document.writeln( (urlDetalles != '')?"</A>":"" );
		}
		document.writeln( "<br>" );

		for (var i=0;i<aResultados.length;i++)
		{
			//escribe nombre del cine
			document.writeln( (itemFONT_BOLD.toUpperCase() == 'SI')?"<b>":"" );
			document.writeln( "<A HREF='" + pageName + "?criterio=cine" + "&origendatos=cine" + aResultados[i].c_cine + "' target='_self' STYLE='text-decoration: none ;'>" );
			document.writeln("<FONT COLOR='" + itemFONT_COLOR + "' SIZE='" + itemFONT_SIZE + "' FACE='" + itemFONT_FACE + "'>" + aResultados[i].nombre + ",&nbsp;</font>");
			document.writeln( "</A>" );
			document.writeln( (itemFONT_BOLD.toUpperCase() == 'SI')?"</b>":"" );
			//escribe datos (direccion, tel, fax, email) del cine
			document.writeln( (itemdatosFONT_BOLD.toUpperCase() == 'SI')?"<b>":"" );
			document.writeln("<FONT COLOR='" + itemdatosFONT_COLOR + "' SIZE='" + itemdatosFONT_SIZE + "' FACE='" + itemdatosFONT_FACE + "'>" + aResultados[i].datos + "</font>");
			document.writeln( (itemdatosFONT_BOLD.toUpperCase() == 'SI')?"</b><br>":"<br>" );
			//escribe horarios en el cine
			document.writeln( (itemdatosFONT_BOLD.toUpperCase() == 'SI')?"<b>":"" );
			document.writeln("<FONT COLOR='" + itemdatosFONT_COLOR + "' SIZE='" + itemdatosFONT_SIZE + "' FACE='" + itemdatosFONT_FACE + "'>" + aResultados[i].horario + "</font>");
			document.writeln( (itemdatosFONT_BOLD.toUpperCase() == 'SI')?"</b><br><br>":"<br><br>" );
		}
		return;
	}
	if ( pageParams.criterio == "genero" )
	{
		var curID;
		for (var i=0;i<aResultados.length;i++)
		{
			curID = aResultados[i].c_pelicula;

			//escribe como encabezado el nombre de la pelicula
			document.writeln( (encabezadoFONT_BOLD.toUpperCase() == 'SI')?"<b>":"" );
			if (origenDetalles.toUpperCase()!="")
			{
				if (origenDetalles.toUpperCase()=="JS")
				{
					document.writeln( (urlDetalles != '')?"<A HREF=\"" + urlDetalles + "?origendatos=ficha" + aResultados[i].c_pelicula + "\" STYLE='text-decoration: none ;'>":"" );
				}
				if (origenDetalles.toUpperCase()=="LOCAL")
				{
				document.writeln( (urlDetalles != '')?"<A HREF=\"" + urlDetalles + "\" STYLE='text-decoration: none ;' target=\"_top\">":"" );
				}
				if (origenDetalles.toUpperCase()=="123INFO")
				{
				document.writeln( (urlDetalles != '')?"<A HREF=\"" + urlDetalles + "?h=cine" + "&p=" + aResultados[i].c_pelicula + "\" STYLE='text-decoration: none ; ' target=\"_blank\">":"" );
				
				}
			}
			document.writeln("<FONT COLOR='" + encabezadoFONT_COLOR + "' SIZE='" + encabezadoFONT_SIZE + "' FACE='" + encabezadoFONT_FACE + "'>" + aResultados[i].n_pelicula + "</font>");
			if (origenDetalles.toUpperCase()!="")
			{
				document.writeln( (urlDetalles != '')?"</A>":"" );
			}
			document.writeln( (encabezadoFONT_BOLD.toUpperCase() == 'SI')?"</b><br><br>":"<br><br>" );



			while ( ( i < aResultados.length ) && ( curID == aResultados[i].c_pelicula ) )
			{
				//escribe nombre del cine
				document.writeln( (itemFONT_BOLD.toUpperCase() == 'SI')?"<b>":"" );
				document.writeln( "<A HREF='" + pageName + "?criterio=cine" + "&origendatos=cine" + aResultados[i].c_cine + "' target='_self' STYLE='text-decoration: none ;'>" );
				document.writeln("<FONT COLOR='" + itemFONT_COLOR + "' SIZE='" + itemFONT_SIZE + "' FACE='" + itemFONT_FACE + "'>" + aResultados[i].n_cine + ",&nbsp;</font>");
				document.writeln( "</A>" );
				document.writeln( (itemFONT_BOLD.toUpperCase() == 'SI')?"</b>":"" );
				//escribe datos (direccion, tel, fax, email) del cine
				document.writeln( (itemdatosFONT_BOLD.toUpperCase() == 'SI')?"<b>":"" );
				document.writeln("<FONT COLOR='" + itemdatosFONT_COLOR + "' SIZE='" + itemdatosFONT_SIZE + "' FACE='" + itemdatosFONT_FACE + "'>" + aResultados[i].d_cine + "</font>");
				document.writeln( (itemdatosFONT_BOLD.toUpperCase() == 'SI')?"</b><br>":"<br>" );
				//escribe horarios en el cine
				document.writeln( (itemdatosFONT_BOLD.toUpperCase() == 'SI')?"<b>":"" );
				document.writeln("<FONT COLOR='" + itemdatosFONT_COLOR + "' SIZE='" + itemdatosFONT_SIZE + "' FACE='" + itemdatosFONT_FACE + "'>" + aResultados[i].h_cine + "</font>");
				document.writeln( (itemdatosFONT_BOLD.toUpperCase() == 'SI')?"</b><br><br>":"<br><br>" );
				i++;
			}
		}
		return;
	}
	if ( pageParams.criterio == "zona" )
	{
		var curID;
		for (var i=0;i<aResultados.length;i++)
		{
			curID = aResultados[i].c_cine;

			//escribe como encabezado el nombre del cine
			document.writeln( (encabezadoFONT_BOLD.toUpperCase() == 'SI')?"<b>":"" );
			document.writeln("<br><FONT COLOR='" + encabezadoFONT_COLOR + "' SIZE='" + encabezadoFONT_SIZE + "' FACE='" + encabezadoFONT_FACE + "'>" + aResultados[i].n_cine + "</font>");
			document.writeln( (encabezadoFONT_BOLD.toUpperCase() == 'SI')?"</b><br>":"<br>" );
			//escribe datos (direccion, tel, fax, email) del cine
			document.writeln( (itemdatosFONT_BOLD.toUpperCase() == 'SI')?"<b>":"" );
			document.writeln("<FONT COLOR='" + itemdatosFONT_COLOR + "' SIZE='" + itemdatosFONT_SIZE + "' FACE='" + itemdatosFONT_FACE + "'>" + aResultados[i].d_cine + "</font>");
			document.writeln( (itemdatosFONT_BOLD.toUpperCase() == 'SI')?"</b><br><br>":"<br><br>" );

			while ( ( i < aResultados.length ) && ( curID == aResultados[i].c_cine ) )
			{
				//escribe nombre de la pelicula
				document.writeln( (itemFONT_BOLD.toUpperCase() == 'SI')?"<b>":"" );
				if (origenDetalles.toUpperCase()!="")
				{
					if (origenDetalles.toUpperCase()=="JS")
					{
						document.writeln( (urlDetalles != '')?"<A HREF=\"" + urlDetalles + "?origendatos=ficha" + aResultados[i].c_pelicula + "\" STYLE='text-decoration: none ;'>":"" );
					}
					if (origenDetalles.toUpperCase()=="LOCAL")
					{
					document.writeln( (urlDetalles != '')?"<A HREF=\"" + urlDetalles + "\" STYLE='text-decoration: none ;' target=\"_top\">":"" );
					}
					if (origenDetalles.toUpperCase()=="123INFO")
					{
					
					document.writeln( (urlDetalles != '')?"<A HREF=\"" + urlDetalles + "?h=cine" + "&p=" + aResultados[i].c_pelicula + "\" STYLE='text-decoration: none ; ' target=\"_blank\">":"" );
					}
				}
				document.writeln("<FONT COLOR='" + itemFONT_COLOR + "' SIZE='" + itemFONT_SIZE + "' FACE='" + itemFONT_FACE + "'>" + aResultados[i].n_pelicula + ",&nbsp;</font>");
				if (origenDetalles.toUpperCase()!="")
				{
					document.writeln( (urlDetalles != '')?"</A>":"" );
				}
				document.writeln( (itemFONT_BOLD.toUpperCase() == 'SI')?"</b>":"" );
				//escribe horarios de la pelicula
				document.writeln( (itemdatosFONT_BOLD.toUpperCase() == 'SI')?"<b>":"" );
				document.writeln("<FONT COLOR='" + itemdatosFONT_COLOR + "' SIZE='" + itemdatosFONT_SIZE + "' FACE='" + itemdatosFONT_FACE + "'>" + aResultados[i].h_pelicula + ",&nbsp;</font>");
				document.writeln( (itemdatosFONT_BOLD.toUpperCase() == 'SI')?"</b><br>":"<br>" );
				i++;
			}
		}
		return;
	}
}

function show_Search_Results()
{
	if ( pageParams.origendatos != null )
	{
		document.onload=w_Search_Results();
		document.writeln("<p align='center'><a href='http://www.123info.com.ar' target='_blank'><img src='http://www.123info.com.ar/banner_286x40.gif' border='0' width='286' height='40'></a></p>")
document.writeln("<BR>");
	}
}

var pageName=get_Page_Name();
var pageParams = new splitQuerystring();

if ( pageParams.origendatos != null )
{
document.writeln("<script LANGUAGE='Javascript' src='" + URL_BASE + pageParams.origendatos + ".js'></script>");
}

//Copyright © 2001 InfoJet S.R.L. - Realizado por Macroaldea S.I. 
