<!-- hide script from old browsers

    globalOn=false;
    globalOpen=false;
    function SetAllCheckBoxes(FormName, FieldName, ButtonName)
{
	if(!document.forms[FormName])
		return;
	var objCheckBoxes = document.forms[FormName].elements[FieldName];
    topButtonName = ButtonName + '_top';
    botButtonName = ButtonName + '_bottom';
    var objTopSubmitButton = document.forms[FormName].elements[topButtonName];
	var objBottomSubmitButton = document.forms[FormName].elements[botButtonName];
	if(!objCheckBoxes)
		return;
	var countCheckBoxes = objCheckBoxes.length;
	if (globalOn) {
	    CheckValue = '';
	    ButtonValue = 'Check All'; }
	else {
	    CheckValue = 'checked';
	    ButtonValue = 'Uncheck All'; }
	globalOn = !globalOn;
    objTopSubmitButton.value = ButtonValue;
    objBottomSubmitButton.value = ButtonValue;
	if(!countCheckBoxes)
		objCheckBoxes.checked = CheckValue;
	else
		// set the check value for all check boxes
		for(var i = 0; i < countCheckBoxes; i++)
			objCheckBoxes[i].checked = CheckValue;
}

function callAHAH(url, pageElement) {
     document.getElementById(pageElement).innerHTML = "<span style='color:#d1d1d1'>Loading...<span>";
     try {
     req = new XMLHttpRequest(); /* e.g. Firefox */
     } catch(e) {
       try {
       req = new ActiveXObject("Msxml2.XMLHTTP");
  /* some versions IE */
       } catch (e) {
         try {
         req = new ActiveXObject("Microsoft.XMLHTTP");
  /* some versions IE */
         } catch (E) {
          req = false;
         }
       }
     }
     req.onreadystatechange = function() {responseAHAH(pageElement);};
     req.open("GET",url,true);
     req.send(null);
}

function responseAHAH(pageElement) {
   
   var output = '';
   if (req.readyState == 4) {
      if(req.status == 200) {
         output = req.responseText;
         document.getElementById(pageElement).innerHTML = output;
         }
    }
}

function change(id,newtext)
//change rollover text.
{
    document.getElementById(id).innerHTML=newtext
}

function downloadCheckedFiles(whichForm, whichElement) {

for (var loop=0; loop < document.forms[whichForm].elements[whichElement].length; loop++ ) {
   if (document.forms[whichForm].elements[whichElement,loop].checked) {
      window.open(document.forms[whichForm].elements[whichElement,loop].value);
   } // end if
  }  // end for
}    // end downloadCheckedFiles

// end hiding script from old browsers -->