")
removeItemFromToDoList(contentsCode)
}
function removeItemFromToDoList(ItemToRemove) {
ItemToRemove = " "+ItemToRemove+" "
if(toDoList.indexOf(ItemToRemove) >= 0) {
toDoList = toDoList.substr(0,toDoList.indexOf(ItemToRemove))+toDoList.substr(toDoList.indexOf(ItemToRemove)+ItemToRemove.length-1)
}
}
// not sure if i need the UNLISTED GRIDBOX function now that I check for title not found:
function printUnlistedGridBox(contentsCode) {
document.write("")
}
function printGridBox_JEFF(contentsCode) {
document.write("
")
}
function nextGridBox() {
var nextContent = ""
// FIRST check to see if there is an UPCOMING show that should be PLUGGED (i.e. placed higher on the Grid)
for (var j = 0; j <= ListOfPlaysToPlug.length-1; j++) {
if(nextContent == "") {
upcomingPlays("FindShow",ListOfPlaysToPlug[j])
if (Found == "yes" && toDoList.indexOf(" "+ListOfPlaysToPlug[j]+" ") >= 0) {
nextContent = ListOfPlaysToPlug[j]
}
}
}
if(nextContent == "") {
var nextContent = toDoList.substr(1)
nextContent = nextContent.substr(0,nextContent.indexOf(" "))
}
printGridBox(nextContent)
}
// BEGIN PRINTING THE GRID using functions:
var gridRow = 0
document.write("