//This function disables all style sheets currently loaded.
var noStyles = function() {
    var sheets = []; //Array for storing the sheets.
    var link_tags = $tag("link"); //Get all link tags.
    var link_tag; //A variable representing a single link tag.
    for (var i = 0; i < link_tags.length; i++) {
        link_tag = link_tags[i]; //Put each link tag in a position in the link_tags array.
        if (/stylesheet/.test(link_tag.rel)) { //Does the link_tag's rel attribute contain "stylesheet"?
            sheets.push(link_tag); //Put each link tag that is used for a stylesheet in the sheets array.
        }
    }
    for (var c = 0; c < sheets.length; c++) {
        var sheet = sheets[c]; //Set a variable for each sheet in the sheets array.
        if (sheet.id == "main" || sheet.id == "table" || sheet.id == "fly" || sheet.id == "picmap") {
            sheet.disabled = true; //If the above sheets are loaded, disable them.
        }
        else {
            sheet.disabled = false; //All other sheets, if present, remain enabled.
        }
    }
}