/*
#######################################################
###													###
###		FUNCIONES EXTRAS PARA AJAX					###
###		----------------------------------			###
###													###
###		Desarrolladas por Wallace Solution			###
###		www.ws.com.ve								###
###		Valerio Piselli / Rodrigo Velásquez			###
###													###
###		______________________________________		###
###		En caso de necesitar información sobre		###
###		derechos, sugerencias, preguntas o 			###
###		comentearios. Escribir a: info@ws.com.ve	###
###													###
#######################################################
*/ 



/********************************************************/
/* CARGA DE TEXTO SIMPLE								*/
/********************************************************/
/* 
V1.0
RECIBE COMO PARÁMETROS
	$codigo_usr		: La clave o contrasena que el usuario usara en AEI

VARIABLES GLOBALES
		id			: Elemento que se desa cambiar de fondo
		input		: Nombre del input que realiza la accion de cambiar el fondo

RETURN
					: Regresa el color que se desa cambiar en el fondo del elemento
		
NOTA:
*/
function extra_resaltar(id,input)
{
	//alert('id '+id);
	//alert('id color fondo '+document.getElementById(id).style.background);
	document.getElementById(id).style.background = '#EEEEEE';
	//alert('input :..' + document.getElementById(input).value+'..');
	if(document.getElementById(input).value != '')
	{
		id_resaltado = document.getElementById(input).value;
		//alert('id_resaltado :'+id_resaltado );
		document.getElementById(id_resaltado).style.background = '#FFFFFF';
		//alert(id_resaltado);
	}
	document.getElementById(input).value = id;
	//alert(document.getElementById('resaltado').value);
	//alert('ok');
}	
