if(top.location!=document.location){top.location=document.location;}var t=[0,0,0,0,0,0,0,1];var prima_impartire_steag=0;var timp_impartire;function stop_start(){t[t[2]]=(new Date()).valueOf();t[2]=1-t[2];if(0==t[2]){clearInterval(t[4]);t[3]+=t[1]-t[0];document.getElementById("cr_button").value="Start";document.getElementById("parte").innerHTML+=("Stop #"+t[7]++)+": "+format(t[1]-t[0])+"<br>";t[4]=t[1]=t[0]=0;display();prima_impartire_steag=0;}else{document.getElementById("cr_button").value="Stop";t[4]=setInterval(display,43);}};function do_imparte(){if(0!==t[2]){document.getElementById("parte").innerHTML+=("Partea / Split #"+t[7]++)+": "+format(t[1]-t[0])+"<br>";}};function reseteaza(){if(t[2]){stop_start();}t[4]=t[3]=t[2]=t[1]=t[0]=0;display();document.getElementById("parte").innerHTML="";t[7]=1;};function display(){if(t[2]){t[1]=(new Date()).valueOf();}t[6].value=format(t[3]+t[1]-t[0]);};function format(ms){var d=new Date(ms+t[5]).toString().replace(/.*([0-9][0-9]:[0-9][0-9]:[0-9][0-9]).*/,"$1");var x=String(ms%1000);while(x.length<3){x="0"+x;}d+="."+x;return d;};function load(){t[5]=new Date(1970,1,1,0,0,0,0).valueOf();t[6]=document.getElementById("display");display();};
