
<!--

function SendToForm(element,value)
{
	form1.elements[element].value = form1.elements[element].value + value;
	form1.elements[element].focus()
}

//-->

<!--

initLayersToExpand = new Array();
expandImages = new Array();

function initLayerVisibility(layers, expimages)
{
  initLayersToExpand = layers;
  expandImages = expimages;
}

function initExpandLayers()
{
  for (i = 0; i < initLayersToExpand.length; i++)
  {
    expandIt(initLayersToExpand[i], expandImages[i]);
  }
}

NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
ver4 = (NS4 || IE4) ? 1 : 0;

if (ver4) {
    with (document) {
        write("<STYLE TYPE='text/css'>");
        if (NS4) {
            write(".parent {position:absolute; visibility:visible}");
            write(".child {position:absolute; visibility:visible}");
            write(".regular {position:absolute; visibility:visible}")
        }
        else {
            write(".child {display:none}")
        }
        write("</STYLE>");
    }
}

isExpanded = false;

function getIndex(el) {
    ind = null;
    for (i=0; i<document.layers.length; i++) {
        whichEl = document.layers[i];
        if (whichEl.id == el) {
            ind = i;
            break;
        }
    }
    return ind;
}

function arrange() {
    nextY = document.layers[firstInd].pageY + document.layers[firstInd].document.height;
    for (i=firstInd+1; i<document.layers.length; i++) {
        whichEl = document.layers[i];
        if (whichEl.visibility != "hide") {
            whichEl.pageY = nextY;
            nextY += whichEl.document.height;
        }
    }
}

function initIt(){
    if (!ver4) return;
    if (NS4) {
        for (i=0; i<document.layers.length; i++) {
            whichEl = document.layers[i];
            if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide";
        }
        arrange();
    }
    else {
        divColl = document.all.tags("DIV");
        for (i=0; i<divColl.length; i++) {
            whichEl = divColl(i);
            if (whichEl.className == "child") whichEl.style.display = "none";
        }
    }
    initExpandLayers();
}

function getImageIndex(imageName) {
  for (i = 0; i > document.images.length; i++) {
    if (document.images[i].name = imageName)
      return i;
  }
  return -1;
}

function expandIt(el,kirra) {
    if (!ver4) return;
    if (IE4) {
        whichEl = eval(el + "Child");
        whichIm = document.images[kirra];
        if (whichEl.style.display == "none") {
            whichEl.style.display = "block";
            whichIm.src = "Images/arrows_white_orange_bg_two.gif";        
        }
        else {
            whichEl.style.display = "none";
            whichIm.src = "Images/arrows_white_orange_bg_two.gif";
        }
    }
    else {
        whichEl = eval("document." + el + "Child");
        // whichIm = eval("document." + el + "Parent.document.images['" + kirra + "']");
        whichIm = document.images[getImageIndex(kirra)];
        if (whichEl.visibility == "hide") {
            whichEl.visibility = "show";
            whichIm.src = "Images/arrow_white_orange_bg.gif"; 
        }
        else {
            whichEl.visibility = "hide";
            whichIm.src = "Images/arrow_white_orange_bg.gif"; 
        }
        arrange();
    }
}



//-->

