<!--
// value for the "blank" Option used to end the list:
//
var blankText = "                    ";

// move selected items from one list to the other
//

function hlit(s, c) {
  s.style.backgroundColor = c;
 }

function selMove( sFrom, sTo, doAll )
{
    // go through forwards, moving items to the "to" list:
    var ix;
    // where we start putting new values...
    toLoc = sTo.options.length - 1;

    for ( ix = 0; ix < sFrom.options.length; ++ix )
    {
        sopt = sFrom.options[ix];
        if ( ( sopt.value != 0 ) && ( doAll || sopt.selected ) )
        {
            // replace or append our new option...
            sTo.options[toLoc] = new Option( sopt.text, sopt.value );
            ++toLoc; 
        }
        // tack a new "blank" option onto end, to act
        // as a minimum width for the Select list:
        sTo.options[toLoc] = new Option( blankText, 0 ); // 0 value item?
    }
    // then go backwards, removing selected options
    for ( ix = sFrom.options.length - 1; ix >= 0; --ix )
    {
        sopt = sFrom.options[ix];
        if ( ( sopt.value != 0 ) && ( doAll || sopt.selected ) )
        {
            sFrom.options[ix] = null;
        }
    }
}

function forceSelect( which )
{
    var ix;
    for ( ix = 0; ix < which.options.length; ++ix )
    {
        sopt = which.options[ix];
        if ( sopt.value != 0 ) // if not the dummy item
        {
            sopt.selected = true;
        } else {
            sopt.selected = false; // ensure dummy not selected
        }
    }
}

function hLayer(namn, varde) {        //view or hide the tooltip
  if (document.all) {				//for ie
    document.all[namn].style.visibility=varde;
  }
  else if (document.layers) {			//for netscape
    document.layers[namn].visibility=varde;         
  }
}

var namn;
var varde;
var mu = 0;

function setactiveitem(itemnamn, itemvarde) {
  //namn = itemnamn;
  //varde = itemvarde;
}

function tooltip(e, namn, varde) {        //view or hide the tooltip
  if (document.all) {				//for ie
    document.all[namn].style.left=event.x-12;
    document.all[namn].style.top=event.y-40;
    document.all[namn].style.visibility=varde;

  }
  else if (document.layers) {			//for netscape
    document.layers[namn].left=e.pageX-12;
    document.layers[namn].top=e.pageY-40;
    document.layers[namn].visibility=varde;         
  }
}

//Status bar
function on(txt) {
	parent.self.status = txt
}

function off() {
	parent.self.status = ""
}

//-->

