// <input id='submit_location' name='submit' class='"+btclass+"' type='submit' value='Save' >

function setToolInit(lastTool,currentTool){

  if(currentTool=='initialize' ){
      //rc += "   alert('initialize');
  }

  if(lastTool=='editpoint'){

	  // turn off the draging
     d_deinitPagePointDragging();
     document.getElementById('submit_location').style.visibility='hidden';

  }
  if(currentTool=='editpoint'){

	  // turn on the dragging
     d_initPagePointDragging();
     document.getElementById('submit_location').style.visibility='visible';


  }

}