function perscheck()  {
  var alerttext = 'Please select something for all options.';
  var good = true;

  if(document.getElementById('perselect')) {
    if(document.getElementById('perselect').selectedIndex == 0) {
      alerttext = "Please select a personalization option.";
      markError('perselect');
      good = false;
    }
  }
  if(document.getElementById('selsize')) {
    if(document.getElementById('selsize').selectedIndex == 0) {
      alerttext = "Please select a size.";
      markError('selsize');
      good = false;
    }
  }
  if(document.getElementById('selstyle')) {
    if(document.getElementById('selstyle').selectedIndex == 0) {
      alerttext = "Please select a shirt style.";
      markError('selstyle');
      good = false;
    }
  }
  if(!good) {
    alert(alerttext);
  }

  return good;
}


function markError(item) {
  item = document.getElementById(item);
  item.className = 'bad';
  item.onfocus = function() {
    this.className = '';
  }
  return;
  item.focus();
}
