function $get(id) {
  return document.getElementById(id);
}

function validateForm() {
  var inputs = document.getElementsByTagName('input');
  var itemChecked = false;
  var iAgree = false;
  var reVal = false;
  var message = 'There was a problem, please check all of your information before adding to cart.';
  for(i=0;i<inputs.length;i++) {
    if(inputs[i].type=='radio' && inputs[i].checked && inputs[i].name.indexOf('error') < 0) {
      itemChecked = true;
    }
    if(inputs[i].id=='iagree' && inputs[i].checked) {
      iAgree = true;
    }
  }
  if(!iAgree) {message = 'You must check the box to confirm placement and spelling of names.';}
  if(!itemChecked) {message = 'You must check \'Yes\' or \'No\' if you want the Current Year added.';}
  if(!itemChecked || !iAgree) {
    alert(message);
    reVal = false;
  } else {reVal = true;}
return reVal;
}
