var steps, mar, m, r, g, b; 
var sty=null;

function centerNow(nd, rr, gg, bb, st)
{  return 0 }

/****
function centerNow(nd, rr, gg, bb, st)
{   mar = -60; steps = st;
    r =rr;    g =gg;      b=bb;
    if ( sty == null ) 
        sty = document.getElementById(nd).style;
    margin_d = mar/steps;
    m = 100/Math.max(Math.max(r, g), b);
    color_d = (m-1.0)/steps;
    centering();
}
****/
function centering()
{   if (steps > 1)
    {   sty.marginLeft=mar+"%";
        str1="rgb("+r*m+"%,"+g*m+"%,"+b*m+"%)";
        sty.color=str1;
        mar-=margin_d;
        m-=color_d;
        steps--;
        setTimeout("centering()", 18);
    }
    else   // final position and color
    {   sty.marginRight="0%";
        sty.color="rgb("+r+"%,"+g+"%,"+b+"%)";
    }
}

/* above for moving certering headlines  */

/* below for guided forms */

var high="#99FFFF";
var base="";

function highlight(nd)
{  base=nd.style.backgroundColor;
   nd.style.backgroundColor=high;
}

function normal(nd)
{ nd.style.backgroundColor=base;
}

var billb = null;
                                                                                
function popbb(ref)
{   if ( billb == null || billb.closed )
    {  billb=window.open(ref, "WME_Bill_Board","scrollbars=yes,resizable=yes,toolbar=no,menubar=no,innerwidth=450,innerheight=320,alwaysRaised=yes");
       billb.focus();
    }
    else
    {  billb.location=ref;
       billb.focus();
    }
}

