function getRadioButtonSelectedValue(ctrl)
	{
    for(i=0;i<ctrl.length;i++)
        if(ctrl[i].checked) return ctrl[i].value;
	}
	
function mensaje_cargando(capa,mensaje)
{
$(capa).html("<img src='img/ajax-loader.gif' />"+mensaje);
}

function selectItemCombo(formulario,tuSelect,elemento) {
   var combo = document.forms[formulario].tuSelect;
   var cantidad = combo.length;
   for (i = 0; i < cantidad; i++) {
      if (combo[i].value == elemento) {
         combo[i].selected = true;
      }   
   }
}