if (!PlusImg) {
	var PlusImg = "/images/grn_plus.gif";
}
if (!MinusImg) {
	var MinusImg = "/images/grn_minus.gif";
}

function ToggleLayer(oLayer) {
  if (document.getElementById) {
    var LayerStyle = document.getElementById(oLayer).style;
    LayerStyle.display = LayerStyle.display? "" : "none";
  }
  else if (document.all) {
    var LayerStyle = document.all[oLayer].style;
    LayerStyle.display = LayerStyle.display? "" : "none";
  }
  else if (document.layers) {
    var LayerStyle = document.layers[oLayer].style;
    LayerStyle.display = LayerStyle.display? "" : "none";
  } 
  if(document.getElementById(oLayer+'_stat')) {
     var bShow = false;
     if(LayerStyle.display == "") { bShow = true; }
     ToggleImage(bShow, document.getElementById(oLayer+'_stat'));
  }
}

function ToggleAllLayers(bShow) {
  var DivList = Array();
  var Show = '';
  if(bShow == false) { Show = "none"; }
  if (document.getElementsByTagName) {
    var DivList = document.getElementsByTagName("div");
  }
  else if (document.all.tags) {
    var DivList = document.all.tags("div");
  }
  for(i=0; i<DivList.length; i++) {
    if(DivList[i].id.substr(0,4) == 'div_') {
      DivList[i].style.display = Show;
      if(document.getElementById(DivList[i].id+'_stat')) {
         ToggleImage(bShow, document.getElementById(DivList[i].id+'_stat'))
      }
    }
  }
}

function ToggleAllSectionLayers(bShow) {
  var DivList = Array();
  var Show = '';
  if(bShow == false) { Show = "none"; }
  if (document.getElementsByTagName) {
    var DivList = document.getElementsByTagName("div");
  }
  else if (document.all.tags) {
    var DivList = document.all.tags("div");
  }
  for(i=0; i<DivList.length; i++) {
    if(DivList[i].id.substr(0,8) != 'div_faq_' && DivList[i].id.substr(0,4) == 'div_') {
      DivList[i].style.display = Show;
      if(document.getElementById(DivList[i].id+'_stat')) {
         ToggleImage(bShow, document.getElementById(DivList[i].id+'_stat'))
      }
    }
  }
}

function ToggleLayerPointer(sID, sColor, sCursor) {
    if (document.getElementById(sID) && document.getElementById(sID).style) {
      document.getElementById(sID).style.backgroundColor = sColor;
      document.getElementById(sID).style.cursor = sCursor;
    }
}

function ToggleImage(bShow, oImage) {
  if(bShow == false) { oImage.src = PlusImg; }
  else { oImage.src = MinusImg; }
}


function show(which){
if (!document.getElementById)
return
document.getElementById("dateselected").style.display = 'inline';
}
function hide(which){
if (!document.getElementById)
return
document.getElementById("dateselected").style.display = 'none';
}




function showhidedateselected(selectObj) {
 var idx = selectObj.selectedIndex;
 var which = selectObj.options[idx].value;

 if (which==232) {
  document.getElementById("dateselected").style.display = 'inline';
 } else {
  document.getElementById("dateselected").style.display = 'none';
 }
}

function showhidedateselected11(selectObj) {
 // get the index of the selected option
 var idx = selectObj.selectedIndex;
 // get the value of the selected option
 var which = selectObj.options[idx].value;
 // use the selected option value to retrieve the list of items from the countryLists array

 if (which==232) {
   show(document.getElementById("dateselected"));
 } else {
   hide(document.getElementById("dateselected"));
 }
}


