﻿// Archivo JScript
function addRemove(control, id)
{
  
  var strValor=document.getElementById(id).value;
  var intValor=parseInt(strValor);
  alert(control + " " + id);
  if(control == "plus")
  {
    intValor ++;
  }
  else
  {
    if(intValor > 0)
    {
      intValor --;
    }
  }
  document.getElementById(id).value=intValor;
}

