// utilities.js

function xb_clientHeight() {
ht=0;
if (window.innerHeight) { ht = window.innerHeight }
else if (document.documentElement && document.documentElement.clientHeight) { ht = document.documentElement.clientHeight}
else if (document.body) { ht = document.body.clientHeight }
return ht;
}

function xb_clientWidth() {
wd=0;
if (window.innerWidth) { wd = window.innerWidth }
else if (document.documentElement && document.documentElement.clientWidth) { wd = document.documentElement.clientWidth}
else if (document.body) { wd = document.body.clientWidth }
return wd;
}