  function win(name, url, x, y, sb) { 
    var winl = (screen.width - x) / 2;
    var wint = (screen.height - y) / 2;
    if (sb == "") sb = "auto";
    winprops = 'height='+y+',width='+x+',top='+wint+',left='+winl+',scrollbars='+sb;
    window.open(url, name, winprops);
  } 

  function dlg(name, url, x, y) { 
    var winl = (screen.width - x) / 2;
    var wint = (screen.height - y) / 2;
    winprops = 'height='+y+',width='+x+',top='+wint+',left='+winl+'modal=yes; resizable=no; status=no;';
    window.open(url, '', winprops);
  } 

  function setPointer(theRow, thePointerColor) {
    if (thePointerColor == '' || typeof(theRow.style) == 'undefined') { return false; }
    if (typeof(document.getElementsByTagName) != 'undefined') { 
      var theCells = theRow.getElementsByTagName('td'); 
    } else if (typeof(theRow.cells) != 'undefined') {
      var theCells = theRow.cells;
    } else { 
      return false; 
    }

    var rowCellsCnt  = theCells.length;
    for (var c = 0; c < rowCellsCnt; c++)  theCells[c].style.backgroundColor = thePointerColor;
    return true;
  }
	
	function tover(t) { 
		t.style.backgroundColor='#e8e8e8'; 
		t.style.borderStyle='solid';
		t.style.borderColor='#a0a0a0';
		t.style.borderTopWidth='1px';
		t.style.borderBottomWidth='1px';
		t.style.borderLeftWidth='1px';
		t.style.borderRightWidth='1px';
	}
	function tout(t) { 
		t.style.backgroundColor='#edf5f7'; 
		t.style.borderStyle='solid';
		t.style.borderColor='#edf5f7';
		t.style.borderTopWidth='1px';
		t.style.borderBottomWidth='1px';
		t.style.borderLeftWidth='1px';
		t.style.borderRightWidth='1px';
	}

	var DG_DOM = (document.getElementById) ? true : false;
	var DG_NS4 = (document.layers) ? true : false;
	var DG_IE = (document.all) ? true : false;
	var DG_IE4 = DG_IE && !DG_DOM;
	var DG_Mac = (navigator.appVersion.indexOf("Mac") != -1);
	var DG_IE4M = DG_IE4 && DG_Mac;
	var DG_IE5M = DG_IE && DG_Mac;
	var DG_IE5W = DG_IE && !DG_Mac;
	var DG_NS6 = (navigator.vendor == ("Netscape6") || navigator.product == ("Gecko"));
	var DG_IEpos = DG_IE || (DG_NS6 && parseInt(navigator.productSub)>=20010710);
	var DG_IEDTD = (DG_IE && document.doctype) ? document.doctype.name.indexOf(".dtd")!=-1 : false;
	var DG_IEnoDTD = DG_IE && !DG_IEDTD;
	var DG_Opera = (navigator.userAgent.indexOf("Opera")!=-1);
	var DG_Konqueror = (navigator.userAgent.indexOf("Konqueror")!=-1);
	
	function getByID(id) {
    if (DG_DOM) {
      el = document.getElementById(id);
    } else {
      el = eval("document.all."+id);
    }
		return el;
	}


