
    // setStyleByClass: given an element type and a class selector,
    // style property and value, apply the style.
    // args:
    //  t - type of tag to check for (e.g., SPAN)
    //  c - class name
    //  p - CSS property
    //  v - value
    var ie = (document.all) ? true : false;

    function setStyleByClass(t,c,p,v){
        var elements;
        if(t == '*') {
            // '*' not supported by IE/Win 5.5 and below
            elements = (ie) ? document.all : document.getElementsByTagName('*');
        } else {
            elements = document.getElementsByTagName(t);
        }
        for(var i = 0; i < elements.length; i++){
            var node = elements.item(i);
            for(var j = 0; j < node.attributes.length; j++) {
                if(node.attributes.item(j).nodeName == 'class') {
                    if(node.attributes.item(j).nodeValue.match(c) != null) {
                        eval('node.style.' + p + " = '" +v + "'");
                    }
                }
            }
        }
    }

    function popup(daLink) {
        if( daLink == "" ) {
            daLink = "";
        }
        winParams = "width=520,height=400,status=0,scrollbars=0,resizable=1,menubar=0,location=0,screenX=50,screenY=50,left=50,top=50"
        groupWnd=window.open(daLink,"groups",winParams);
        groupWnd.focus();
    }

