
<!-- Hide script from older browsers
/*---------------------------------------------------------------------
  dom.js
  Functions used in cross browser methodology
---------------------------------------------------------------------*/

/*---------------------------------------------------------------------
  de
  Retrieve an object
---------------------------------------------------------------------*/
function de(o){
	if (document.getElementById){
		return document.getElementById(o);
		}
	else if (document.all){
		return document.all[o];
		}
	else if (document.layers){
		return document.layers[o];
		}
	else {
		return document.elements[o];
		}
	}

function next_element(obj){
	while (obj = obj.nextSibling){
		if (obj.nodeType == 1) return obj;
		}
	return false;
	}

function child_ofTag(obj, tag){
	for (var i=obj.firstChild;i;i=i.nextSibling){
		if (i.tagName == tag) return i
		}
        return false;
        }

/*---------------------------------------------------------------------
  lO
  Loop through an object's children looking for a nodeType 1 ( object )
  Return it... Use conditional loop to determine direction
---------------------------------------------------------------------*/
function lO(o,d){
	var x = (d)?(o.childNodes.length-1):0;
	while (o.childNodes[x].nodeType != 1){ (d)?x--:x++; }
	return o.childNodes[x];
	}

/*---------------------------------------------------------------------
  lRB
  Loop through a radiobox's children to find the selected node
  return the value.
---------------------------------------------------------------------*/
function lRO(o){
	var i=0;
	while (o[i]){
		if (o[i++].checked) return o[--i];
		}
	return false;
	}
function lRB (o){
	if ( o.nodeType ) return o.value;
	var i=0;
	var p = lRO(o);
	if (p) return p.value;
	return false;
	}


