//*popup-menu.js

function show(object) {
    if (document.getElementById && document.getElementById(object) != null)
        node = document.getElementById(object).style.visibility='visible';
    else if (document.layers && document.layers[object] != null)
        document.layers[object].visibility = 'visible';
    else if (document.all)
        document.all[object].style.visibility = 'visible';
}

function hide(object) {
    if (document.getElementById && document.getElementById(object) != null)
        node = document.getElementById(object).style.visibility='hidden';
    else if (document.layers && document.layers[object] != null)
        document.layers[object].visibility = 'hidden';
    else if (document.all)
        document.all[object].style.visibility = 'hidden';
}

// 

function find(n, d) { //v3.0
    var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
    }
    if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=find(n,d.layers[i].document); return x;
}


//>
function showTable() { //v3.0
    var i,p,v,obj,args=showTable.arguments;
    for (i=0; i<(args.length-2); i+=3) if ((obj=find(args[i]))!=null) {
        v=args[i+2];
        if (obj.style) {
            obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v;
        }
        obj.visibility=v;
    }
}


//>
function SubIt() {  
    document.form1.submit()
}

function showS()
{
    showTable('S','','show','T','','hide','A','','hide');
}

function showT()
{
    showTable('S','','hide','T','','show','A','','hide');
}

function showAds()
{
    showTable('S','','hide','T','','hide','A','','show');
}

function notable()
{
    showTable('S','','hide','T','','hide','A','','hide','PT','','hide','C1','','hide','C2','','hide','C3','','hide','C4','','hide','C5','','hide','C6','','hide','C7','','hide','C8','','hide','C9','','hide','Edinburgh','','hide','GS','','hide','EastS','','hide','WestS','','hide','NorthS','','hide','SouthS','','hide','RS','','hide','GS','','hide','Wales','','hide','CentralW','','hide','NorthW','','hide','SouthW','','hide');
}