Sorry for delay, had a lot of other things to do.
I understand your reply and will try it as soon as I have the opportunity.
Will let you know.
However, if you can suggest how to store any session variable in the standard scriptroutine, I'd be very grateful.
I am using this function, directly copied from W3Schools:
---
function openPage(pageName,elmnt,color) {
var i, tabcontent, tablinks;
**** I suppose I would have to add code here ****
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i < tabcontent.length; i++) {
tabcontent.style.display = "none";
}
tablinks = document.getElementsByClassName("tablink");
for (i = 0; i < tablinks.length; i++) {
tablinks.style.backgroundColor = "";
}
document.getElementById(pageName).style.display = "block";
elmnt.style.backgroundColor = color;
}
// Get the element with id="defaultOpen" and click on it
document.getElementById("defaultOpen").click();
---
/Kamau