function isBlog()
{
    if (getRootNS(getID()) == 'blog' || noNSorNS(getID()) == 'blog') {
        return true;
    } else {
        return false;
    }
}
function checkNS($ns)
{
    // This tests for root NS or pagename
    //if ( (getRootNS(getID()) == $ns) || (noNSorNS(getID()) == $ns ) ) {
    // This version just tests the namespace, not a pagename.
    if (getRootNS(getID()) == $ns) {
        return true;
    }
    return false;
}