//alert("dentro")
//'-------------------------------------------------------------------------------------------------------------
//'----------------- 				FUNCIONES DE DEPURACION 								-----------------
//'-------------------------------------------------------------------------------------------------------------
//' Esta función nos devuelve una cadena (string) con el Nombre del objeto 
//'pasado como parametro asi como todos los value y text de sus option y el 
//'indice de la option que esta seleccionada.
function Obtener_Inf_ObjSelect(prmtrObjSelect)
	{
	var i; var strAlert = "\n-----------------------------------------------------------------------\n"
	
	strAlert = strAlert + prmtrObjSelect.name + "\n"
	for (i=0; i<prmtrObjSelect.options.length;++i)
		{
		strAlert = strAlert + "\n" + i + "> value: " + prmtrObjSelect[i].value
		strAlert = strAlert + ", text: " + prmtrObjSelect[i].text
		}
	strAlert = strAlert + "\n\nopcion seleccionada: " + prmtrObjSelect.selectedIndex + "\n"
	return strAlert
	}
	
//'-------------------------------------------------------------------------------------------------------------
//' Conseguimos que nos de una relacion de todas las propiedades, eventos, metodos y objetos hijo
//'del objeto pasado como parámetro asi como sus valores
	function Mostrar_Propiedades(prmtrObjeto)
	{
	var E //Contendra el objeto 
	var X //Contendra cada uno de los elementos del objeto 
	var i //Contador del for
	var numProps //Numero de propiedades
	var strProps

	//for (i in miMenu) alert("1) " + i + ": " + eval("miMenu." + i))
	E = prmtrObjeto
	strProps ="Propiedades del objeto " + "\n \n"//+ prmtrObjeto.toUpperCase() + "\n \n"
	i = 1
	numProps = 0

	for (X in E) 
		{
		numProps++						
		if (i <= 20)
			{
			//alert(strProps)
			strProps = strProps + numProps + ": " +  X.toUpperCase() + " (" + X + ") " + ": " + eval("E."+ X) + "\n";
			i++
			}
		else
			{
			alert(strProps)
			strProps ="Propiedades del objeto " + "\n \n"//+ prmtrObjeto + "\n \n"
			strProps = strProps + numProps + ": " +  X.toUpperCase() + " (" + X + ") " + ": " + E.X + "\n";
			i=1
			}
		}
	// En caso de q hubiera 20 o menos de 20 propiedades
	if (numProps <= 20)
		{
		alert(strProps)		
		}
		alert(strProps)		
	//alert ("El numero de propiedades ha sido " + numProps)			
	}
	
	
	
	
	function Depurar_Document_Write(prmtrContenido)
		{
		var winDepuracion, strParametros, strHTML
		strParametros = "toolbar=no,location=no,directories=no,status=yes,menubar=no,"
		strParametros += "scrollbars=yes,copyhistory=no, left=50,screenX=50,top=50,screenY=50"
		strParametros += ",width=700,height=450"
		// Evito que se vuelva a escribir la tabla si esta ya lo 
		strHTML = "<html><head><title>Depurar_Document_Write</title></head><body bgcolor='olive'>"
		strHTML +=  prmtrContenido 
		strHTML += "</body></html>"
		if (winDepuracion == null)
			{
			winDepuracion = window.open("", "winDepuracion2", strParametros)
			winDepuracion.document.open()
			winDepuracion.document.write(strHTML)
			winDepuracion.document.close()
			}
		else
			{winDepuracion.focus()}			
		}