wxpos=200	
function animate()
{
if(elementById){
if (wxpos < 300)//ready to stop?
	{
	wxpos += 4;
	if (elementById) {
	
			document.getElementById("cmButton").style.left = wxpos + "px";
			}else{
	if (docAll) {
			cmButton.style.pixelLeft = wxpos;
					}}	
	setTimeout("animate()",20);//control speed of animation
	}
}
}

