function test_completed( download_speed , upload_speed , latency , server_id ) { try { xmlhttp = null; if( window.XMLHttpRequest ) { xmlhttp = new XMLHttpRequest(); }else if ( window.ActiveXObject ) { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } if ( xmlhttp != null ) { //STORE RESULT xmlhttp.onreadystatechange = fuBlank; xmlhttp.open( "GET" , ( 'php/store.result.php?DOWN='+download_speed+'&UP='+upload_speed+'&LATENCY='+latency) , true ); xmlhttp.send( null ); try { document.getElementById('HTMLDOWN').innerHTML = download_speed; } catch( MsgError ) { //alert('Error al procesar'); } } else { //alert("Error de Navegador"); } } catch( MsgError ) { //alert('Error al procesar'); } } function fuBlank() { return 0; }