/** ONLOAD FUNCTIONS **/
//this empty variable (loadFunctions) is a list of functions
//that is filled by the document as it prints. when the window is loaded, it calls these functions
var loadFunctions = new Array();

//it can include documents that must be called on submit.
function callLoadFunctions()
{
    //loop through all the entries in the loadFunctions Array
    for ( numfunctions=0; numfunctions < loadFunctions.length; numfunctions++ )
    {
        //if this funciton, when called, fails, return false
        loadFunctions[numfunctions]();
    }
    //else, all functions ran, return true
    return true;
}
