function formSubmit() {
  if(document.getElementById("rowNum").value < 2 || document.getElementById("rowNum").value == "") {
    alert('You did not enter a valid number of rows. You must have at least 2 rows in the grid!');
  } else if(document.getElementById("colNum").value < 2 || document.getElementById("colNum").value == "") {
    alert('You did not enter a valid number of columns. You must have at least 2 columns in the grid!');
  } else {
    var URL = 'crossword/';
    URL += 'startSession.php?';

    URL += '&rn=';
    URL += document.getElementById("rowNum").value;
    URL += '&ln=';
    URL += document.getElementById("colNum").value;

    var winops = 'width=650,resizable,address=no,menubar=no,scrollbars=yes,statusbar=no';
    var newwin;
    newwin = window.open(URL,'',winops);
  }

  return false;
}

function saveWordList() {
  var newwin;
  newwin = window.open("saveWordListHelp.php","","resizable,scrollbars");
}