<!--//begin
var isNN = (navigator.appName.indexOf("Netscape")!=-1);
function autoTab(input,len, e) 
  {
    var keyCode = (isNN) ? e.which : e.keyCode; 
    var filter = (isNN) ? [0,8,9] : [0,8,9,16,17,18,37,38,39,40,46];
    if(input.value.length >= len && !containsElement(filter,keyCode)) 
    {
      input.value = input.value.slice(0, len);
      input.form[(getIndex(input)+1) % input.form.length].focus();
    }

    function containsElement(arr, ele) 
      {
        var found = false, index = 0;
        while(!found && index < arr.length)
        if(arr[index] == ele)
        found = true;
        else
        index++;
        return found;
      }
    function getIndex(input) 
      {
        var index = -1, i = 0, found = false;
        while (i < input.form.length && index == -1)
        if (input.form[i] == input)index = i;
        else i++;
        return index;
      }
    return true;
  }

function testcollapsehow(object)
  { 
    if (document.getElementById(object).style.display == 'none')
      {
        document.getElementById(object).style.display = 'block';
        document.images(object + 'Img').src = 'images/openfolder2.jpg';
      }
    else
      {
        document.getElementById(object).style.display = 'none';
        document.images(object + 'Img').src = 'images/closedfolder2.jpg';
      }
  }
  

//Browser checking and syntax variables
var docLayers = (document.layers) ? true:false;
var docId = (document.getElementById) ? true:false;
var docAll = (document.all) ? true:false;
var docbitK = (docLayers) ? "document.layers['":(docId) ? "document.getElementById('":(docAll) ? "document.all['":"document."
var docbitendK = (docLayers) ? "']":(docId) ? "')":(docAll) ? "']":""
var stylebitK = (docLayers) ? "":".style"
var showbitK = (docLayers) ? "show":"visible"
var hidebitK = (docLayers) ? "hide":"hidden"
var ns6=document.getElementById&&!document.all

function popout(url,wheight,wwidth) {
var winl = (screen.width - wwidth) / 2;
var wint = (screen.height - wheight) / 2;
var openString
openString = "'toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=" + wwidth + ",height=" + wheight + ",top="+wint+",left="+winl+"'"
sealWin=window.open(url,"",openString);
//javascript:window.close()
}

function popup(url,wheight,wwidth) {
var winl = (screen.width - wwidth) / 2;
var wint = (screen.height - wheight) / 2;
var openString
openString = "'width=" + wwidth + ",height=" + wheight + ",top="+wint+",left="+winl+"'"
sealWin=window.open(url,"",openString);
//javascript:window.close()
}

function GetPage(s)
   {
	var d = s.options[s.selectedIndex].value;
        window.top.location.href = d;
        s.selectedIndex=0;
   }
//end-->