/*---EXP-->--Cambios.de.formatos---*/
function Change_Formato( a , b , c , d , e )
{	/*---a---Exp-->--Cambiar.color.de.backhround---*/
 	/*---b---Exp-->--Cambiar.estilos---*/
	/*---c---Exp-->--Cambia.imagen.src---*/
	/*---d---Exp-->--Cambiar.clase.de.elemento---*/
	/*---e---Exp-->--Cambiar.imagen.background---*/

	if ( a != null )  if ( a != '' ) Change_Background_Color(a);
	if ( b != null )  if ( b != '' ) Change_Style(b);
	if ( c != null )  if ( c != '' ) Change_Imagen(c);
	if ( d != null )  if ( d != '' ) Change_Background_Imagen(d);
	if ( e != null )  if ( e != '' ) Change_Clase(e);
}

/*---EXP-->--Cambiar.color.de.background---*/
function Change_Background_Color(z)
{	cambios = z.split(  '@@@'  );
	for (valor in cambios)
	{	id = cambios[valor].substr(0,cambios[valor].lastIndexOf( '|' ));
		color = cambios[valor].substr(cambios[valor].lastIndexOf( '|' )+1,cambios[valor].length);
		ele = document.getElementById(id);
		ele.style['backgroundColor'] = color;
	}
}

/*---EXP-->--Cambiar.imagen.background---*/
function Change_Background_Imagen(z)
{	cambios = z.split( '@@@' );
	for (valor in cambios)
	{	id = cambios[valor].substr(0,cambios[valor].lastIndexOf( '|' ));
 		imagen_change = cambios[valor].substr(cambios[valor].lastIndexOf( '|' )+1,cambios[valor].length);
		ele = document.getElementById(id);
		ele.style['background'] = "url("+imagen_change+")";
	}
}

/*---EXP-->--Cambiar.imagen.serc---*/
function Change_Imagen(z)
{	cambios = z.split( '@@@' );
	for (valor in cambios)
	{	id = cambios[valor].substr(0,cambios[valor].lastIndexOf( '|' ));
		imagen_change = cambios[valor].substr(cambios[valor].lastIndexOf( '|' )+1,cambios[valor].length);
		ele = document.getElementById(id);
		ele['src'] = imagen_change;
	}
}

/*---EXP-->--Cambiar.clase---*/
function Change_Clase(z)
{	cambios = z.split( '@@@' );
	for (valor in cambios)
	{	id = cambios[valor].substr(0,cambios[valor].lastIndexOf( '|' ));
		clase = cambios[valor].substr(cambios[valor].lastIndexOf( '|' )+1,cambios[valor].length);
		ele = document.getElementById(id);
		ele.className=clase;
	}
}

/*---EXP-->--Cambiar.estilo.css---*/
function Change_Style(z)
{	cambios = z.split( '@@@' );
	for (valor in cambios)
	{	valores = cambios[valor].split( '|' );
		id = valores[0];
 		estilo = valores[1];
		valor = valores[2];
		ele = document.getElementById(id);
  		eval('ele.style["'+estilo+'"]= valor');

	}
}

/*---EXP-->--Modifico.valores---*/
function Change_Valores(a)
{	split_c = a.split( '@@@' );
	for (valor in split_c)
	{	split_v = split_c[valor].split( '|' );
		id = document.getElementById(split_v[0]);
		eval('id[split_v[1]] = split_v[2]');
	}
}


/*---EXP-->--Permitir.solo.la.aceptacion.de.caracteres-.numericos.en.uncampo.al.onkeypress---*/
function numAccept(evt)
{	var key = nav4 ? evt.which : evt.keyCode;
	return (key <= 13 || (key >= 48 && key <= 57));
}

/*---EXP-->--Obtencion.de.valor.de.un.elemento---*/
function Valoreal(a)
{	if ( document.getElementById(a) != 'undefined' ) return document.getElementById(a).value;
}