var url = document.location.href; var xend = url.lastIndexOf("/") + 1; var base_url = url.substring(0, xend); function navigate (url) { if (url.substring(0, 4) != 'http') { url = base_url + url; } // Create new JS element var jsel = document.createElement('SCRIPT'); jsel.type = 'text/javascript'; jsel.src = url; // Append JS element (therefore executing the 'AJAX' call) document.body.appendChild (jsel); } function setValue(target) { var junt = target.id; navigate('/cell?&block=' + junt); } function claim() { navigate('/claim?&block=' + document.all.clm.value + '&url=' + document.all.rep.value ); } function setValue2(target) { var junt2 = target.id; navigate('/cell2?&block=' + junt2); navigate('/cell3?&block=' + junt2); var rand_no = Math.random(); rand_no = rand_no * 625; rand_no = Math.ceil(rand_no); navigate('/cell?&block=' + rand_no); } function fir() { var rand_no = Math.random(); rand_no = rand_no * 625; rand_no = Math.ceil(rand_no); navigate('/cell?&block=' + rand_no); navigate('/cell2?&block=' + rand_no); navigate('/cell3?&block=' + rand_no); } var msec=10 var sec=0 var min=0 function start() { go1=setTimeout("start(),2") msec++ if(msec==40) { var rand_no = Math.random(); rand_no = rand_no * 625; rand_no = Math.ceil(rand_no); navigate('/cell?&block=' + rand_no); sec++ } if(msec==100) { msec=0 sec++ } if(sec==60) { sec=0 min++ } } function stop() { msec=0 clearTimeout(go1) }