addLoadListener(init);

function init()
{
  var submit = document.getElementById("submit");
  submit.onclick = validate;

  return true;
};

function validate()
{
  function CheckBoxStatus(name)
  {
	
	var output = 0
	var Element = document.getElementById(name)
	
	if  (Element.checked == true) {
		output = 1;
	} 
	return output;
  }


 if (CheckBoxStatus('faq_read') == 0)
  {
    alert("Please read our FAQ first. If you did please select the box above the submit button.");
  }
  else
  {
    return true;
  }


  return false;
}

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();
      };
    }
  }
};
