title: How to send image id as function parameter?
body: <p>So i have this function:</p>
  <pre><code>function toggle()
  {
    var Blur=document.getElementById('blur');
    Blur.classList.toggle('active');
    var PopUp=document.getElementById('PopUp');
    PopUp.classList.toggle('active');
  }
  </code></pre>
  <p>which when you click an image opens a preview for that image. Instead of creating n functions for n photos on my website is there any way to send an image id as parameter?
  I'm thinking something like:</p>
  <pre><code>function toggle(IdParameter)
  {
    var Blur=document.getElementById('blur');
    Blur.classList.toggle('active');
    var PopUp=document.getElementById('IdParameter');
    PopUp.classList.toggle('active');
  }
  </code></pre>