function id(ID){ return document.getElementById(ID); } var URL=window.location.toLocaleString(); var querystring; var query = {}; var page; if(URL.indexOf("?")>-1){ querystring = URL.split("?")[1] //Extract the query string from the URL. var queryterms = querystring.split("&") //Array of query terms. for(i=0;i-1){ iframetarget="pages/"+page+".html"; //By default, display the file whose name is specified in the query. } else { iframetarget = "pages/home.html"; //If the query specifies a page name that doesn't exist, open the home page. } } navibar = document.getElementsByClassName("navibar"); for(k=0;k