function activarObjeto2(nombreObjeto, modo) {
	var objeto = document.getElementById('id_' + nombreObjeto); 
	if (objeto != null) {
		objeto.disabled = !modo;
	}

} // De activarObjeto2.	


function activarObjeto(nombreObjeto, modo) {
	//Generamos objecto enumerator
	arrObjeto= new Enumerator(document.all);
	//recorremos cada item en un bucle
	for(arrObjeto.moveFirst(); !arrObjeto.atEnd(); arrObjeto.moveNext()) 
	{
		if (arrObjeto.item().name == nombreObjeto) {
			arrObjeto.item().disabled = !modo;
		}

	}		

} // De activarObjeto.

function isChecked2(checkboxId) {
	
	return isChecked('id_' + checkboxId);
}

function isChecked(checkboxId) {
	var cbox = document.getElementById(checkboxId); 
	if (cbox == null) {
		return false; 
	}
	
	if(cbox.checked) {
		return true; 
	} 
	
	return false; 
} 

function sendClick(checkboxId) { 
	var cbox = document.getElementById(checkboxId); 
	if(cbox ) cbox.click();
} 

function valueOf(textId) { 
	var text = document.getElementById(textId); 
	if(!text ) return false; 
	return text.value ;

} 


