window.onload = function(){
var contpos = document.getElementById("contpos");
var b1 = document.getElementById("b1");
b1.onclick = myclick1;
}
var timer1;
var StopClick=false;
function myclick1(){
if(!StopClick){StopClick=true;
timer1 = setInterval(animate1,15);
}}
function animate1(){
var left = parseInt(contpos.style.left);
left+=10;
contpos.style.left = left + "px";
if(left == 100){
StopClick=false;
clearInterval(timer1);
}
}