- // $("imm2").style.left = 600;
- // $("imm2").style.top = 400;
- var zigu = new slowimg($("imm"),300,100,15,"fin");
- zigu.settime(1000);
- zigu.start();
- // setTimeout(function() { alert("FIN:" + fin); }, 5000);
+function onunload_cb () {
+ var u = 0;
+ if (onunload_times == 0) {
+ var res = window.confirm(" Vuoi veramente abbandonare la briscola ?\n(clicca annulla o cancel se vuoi ricaricare la briscola)");
+ if (res == true) {
+ the_end = true;
+ act_shutdown();
+ for (i = 0 ; i < 1000000 ; i++)
+ u++;
+ }
+ else {
+ try {
+ location = self.location;
+ } catch (e) {
+ alert("Ripristino della briscola fallito, per non perdere la sessione ricaricare la pagina manualmente.");
+ }
+ }
+ onunload_times++;
+ }
+
+ return(false);