var timeoutCauciones;
                
function onLoadCauciones() {
    onLoadColumnaDerecha();
    // Defino el tiempo a esperar para obtener nuevamente los datos.
    timeoutCauciones = setTimeout("getCotizacionesCauciones()", timeToRefresh);
    // Defino el tiempo para cancelar la solicitud.
    DWREngine.setTimeout(timeToCancelRefresh);
    // Defino el manejador de errores para dwr.
    DWREngine.setErrorHandler(errorHandlerDwr);
}
  
function getCotizacionesCauciones() {
    // Cancelo el timer para que no refresque por el momento.
    window.clearTimeout(timeoutCauciones);
    // Obtengo los datos.
    Cauciones.getHTMLCotizaciones(onDatosRecibidosCotizacionCaucion);
    // Defino el tiempo a esperar para obtener nuevamente los datos.
    timeoutCauciones = setTimeout("getCotizacionesCauciones()", timeToRefresh);
}  

function onDatosRecibidosCotizacionCaucion(data) {
    // Cancelo el timer para que no refresque por el momento.
    window.clearTimeout(timeoutCauciones);
    // Cargo en la página los datos obtenidos.
    DWRUtil.setValue("cotizacioncaucion", data);
    // Defino el tiempo a esperar para obtener nuevamente los datos.
    timeoutCauciones = setTimeout("getCotizacionesCauciones()", timeToRefresh);
}

function errorHandlerDwr(msg) {
    window.defaultStatus="Error al obtener los datos... " + msg;
}