function popComments(raceID,series) {
  popWindow = window.open('/comments?id=' + raceID + '&s=' + series,'','width=950,height=475,scrollbars=yes,resizable=yes,status=yes,toolbar=no');
//non-popup version:  popWindow = window.open('/comments?id=' + raceID + '&s=' + series);
  return false;
}

function popBlogComments(blogID) { 
  popWindow = window.open('/comments?blogid=' + blogID,'','width=950,height=475,scrollbars=yes,resizable=yes,status=yes,toolbar=no');
  return false;
}

function popCommentsD(drvID) { 
  popWindow = window.open('/comments?drvid=' + drvID,'','width=950,height=475,scrollbars=yes,resizable=yes,status=yes,toolbar=no');
  return false;
}

function popCommentsO(ownID) { 
  popWindow = window.open('/comments?ownid=' + ownID,'','width=950,height=475,scrollbars=yes,resizable=yes,status=yes,toolbar=no');
  return false;
}

function popCommentsT(trkID) { 
  popWindow = window.open('/comments?trkid=' + trkID,'','width=950,height=475,scrollbars=yes,resizable=yes,status=yes,toolbar=no');
  return false;
}

function popCommentsC(ccID) { 
  popWindow = window.open('/comments?ccid=' + ccID,'','width=950,height=475,scrollbars=yes,resizable=yes,status=yes,toolbar=no');
  return false;
}

function popVideo(raceID,series) {
  popWindow = window.open('/video_links?id=' + raceID + '&s=' + series,'','width=950,height=475,scrollbars=yes,resizable=yes,status=yes,toolbar=no');
  return false;
}

function popVideoD(drvID) {
  popWindow = window.open('/video_links?drvid=' + drvID,'','width=950,height=475,scrollbars=yes,resizable=yes,status=yes,toolbar=no');
  return false;
}

function popVideoO(ownID) {
  popWindow = window.open('/video_links?ownid=' + ownID,'','width=950,height=475,scrollbars=yes,resizable=yes,status=yes,toolbar=no');
  return false;
}

function popVideoT(trkID) {
  popWindow = window.open('/video_links?trkid=' + trkID,'','width=950,height=475,scrollbars=yes,resizable=yes,status=yes,toolbar=no');
  return false;
}

function popVideoC(ccID) {
  popWindow = window.open('/video_links?ccid=' + ccID,'','width=950,height=475,scrollbars=yes,resizable=yes,status=yes,toolbar=no');
  return false;
}

function popContactD(drvID) {
  popWindow = window.open('/contacts?drvid=' + drvID,'','width=950,height=475,scrollbars=yes,resizable=yes,status=yes,toolbar=no');
  return false;
}

function SponsorDriver() {
  document.f1.action = "/sponsor_page"
  document.f1.method = "post";
  document.f1.submit();
  return false;
}

function GoToPayment() {  
  document.f2.action = "/payment_page"
  document.f2.method = "post";
  document.f2.submit();
  return false;
}


function ValidateInput() {

  var yr,doWhat;
  yr = document.fNav.fYear.value;
  doWhat = document.fNav.fWhat.value;

  if(doWhat == 2 || doWhat == 9) {
    if(yr == 0) {
      alert("Please select a specific year.");
      return false;
    }
  }  
  else {
    document.fNav.fYear.value = 0;
  }
}

