// JavaScript Document

function CambiaImagen(objImagen, source)
{
	objImagen.src = source;
}

function buscaenlista(lst,txt,op){
	if (op == 'text')
	{
		for (i=0;i<lst.options.length;i++){
			if (lst.options[i].text.toUpperCase() == txt.toUpperCase()){
				lst.options[i].selected = true;
				break;
			}
		}
	} else {
		for (i=0;i<lst.options.length;i++){
			if (lst.options[i].value.toUpperCase() == txt.toUpperCase()){
				lst.options[i].selected = true;
				break;
			}
		}
	}
}

function buscaenradio(inputObj,txt){
	for (counter = 0; counter < inputObj.length; counter++)
	{
		// If a radio button has been selected it will return true
		// (If not it will return false)
		if (inputObj[counter].value == txt)
		{
			inputObj[counter].checked = true;
		}
	}

}
