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