// JavaScript Document for Cillit Bang

function showHide (id) {
	alert('hello');
  // var numArticles will change depending on how many articles are on a particular page.  Needs to be set in each page that will call this function.

  for (i=1;i<=numArticles;i++) {
	document.getElementById("article" + i).style.display = 'none';
  }
  
  document.getElementById("article" + id).style.display = 'block';
  
}

function optOutPopUp(URL) {
day = new Date();
id = day.getTime();
eval("popup" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=200,left=180,top=240');");
}

function videopopup(URL) {
day = new Date();
id = day.getTime();
eval("popup" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=280,height=330,left=180,top=240');");
}
