/* $Revision: 1.4 $ */
var flashOnEditing = false;


function flashEditStart(idObj) {
  mapDebugMessage("flashEditStart, wasEditing="+flashOnEditing);
  var wasEditing = flashOnEditing; // potrebbe cambiare con stop
    toolStopOp(window.document.processa.op.value);
  // lo start č chiamato dal click sul bottone, ma puņ essere start o stop
  if (wasEditing==false) {
    //winChangeImage(toolDescrizione,Gimgpath + idObj + '_desc.gif');
    toolAttivaImmagine(idObj + 'Img',Gimgpath + idObj + '_on.gif');
    layerSwitchVisibility('flash_edit');
    form_setAction(idObj);
     flashOnEditing = true;
  } else {
      flashEditStop(idObj);
}
  return false;
}

function flashEditStop(idObj) {
  mapDebugMessage("flashEditStop");
  toolAttivaImmagine(idObj + 'Img',Gimgpath + idObj + '_off.gif');
  flashOnEditing = false;
  layerHide('flash_edit');
  return false;
}
