addLoadListener(init);

function init()
{
	

	document.getElementById('joyce_work_WMV').onclick = function()
	{var survey = makePopup(this.href, 670, 420, 'scroll'); return survey.closed;};
	document.getElementById('joyce_work_QT').onclick = function()
	{var survey = makePopup(this.href, 670, 420, 'scroll'); return survey.closed;};

	document.getElementById('Joan_ladies_WMV').onclick = function()
	{var survey = makePopup(this.href, 670, 420, 'scroll'); return survey.closed;};
	document.getElementById('Joan_ladies_QT').onclick = function()
	{var survey = makePopup(this.href, 670, 420, 'scroll'); return survey.closed;};
	
	
	document.getElementById('Joyce_demolition_WMV').onclick = function()
	{var survey = makePopup(this.href, 670, 420, 'scroll'); return survey.closed;};
	document.getElementById('Joyce_demolition_QT').onclick = function()
	{var survey = makePopup(this.href, 670, 420, 'scroll'); return survey.closed;};
	
	document.getElementById('Ruby_carnival_WMV').onclick = function()
	{var survey = makePopup(this.href, 670, 420, 'scroll'); return survey.closed;};
	document.getElementById('Ruby_carnival_QT').onclick = function()
	{var survey = makePopup(this.href, 670, 420, 'scroll'); return survey.closed;};
	
	
	document.getElementById('Joyce_women_WMV').onclick = function()
	{var survey = makePopup(this.href, 670, 420, 'scroll'); return survey.closed;};
	document.getElementById('Joyce_women_QT').onclick = function()
	{var survey = makePopup(this.href, 670, 420, 'scroll'); return survey.closed;};
	
	document.getElementById('joyce_doorstep_WMV').onclick = function()
	{var survey = makePopup(this.href, 670, 420, 'scroll'); return survey.closed;};
	document.getElementById('joyce_doorstep_QT').onclick = function()
	{var survey = makePopup(this.href, 670, 420, 'scroll'); return survey.closed;};
	


  return true;
}

function makePopup(url, width, height, overflow)
{

  if (overflow == '' || !/^(scroll|resize|both)$/.test(overflow))
  {
    overflow = 'both';
  }

  var win = window.open(url, '',
      'width=' + width + ',height=' + height
      + ',scrollbars=' + (/^(scroll|both)$/.test(overflow) ? 'yes' : 'no')
      + ',resizable=' + (/^(resize|both)$/.test(overflow) ? 'yes' : 'no')
      + ',status=yes,toolbar=no,menubar=no,location=no'
  );

  return win;
}

function addLoadListener(fn)
{
  if (typeof window.addEventListener != 'undefined')
  {
    window.addEventListener('load', fn, false);
  }
  else if (typeof document.addEventListener != 'undefined')
  {
    document.addEventListener('load', fn, false);
  }
  else if (typeof window.attachEvent != 'undefined')
  {
    window.attachEvent('onload', fn);
  }
  else
  {
    var oldfn = window.onload;
    if (typeof window.onload != 'function')
    {
      window.onload = fn;
    }
    else
    {
      window.onload = function()
      {
        oldfn();
        fn();
      };
    }
  }
}

