function goResource(url) {
    if (confirm("You are about to leave the GE Equipment Services, Rail Services web site.  Do you want to continue?"))
        window.location = url;
        //var w = window.open(url);
}
function goSelected(id) {
    if (document.getElementById(id).selectedIndex != 0)
        document.location = document.getElementById(id).options[document.getElementById(id).selectedIndex].value;
}

function getPageOffsetLeft(el)	{
	return el.offsetParent != null ? el.offsetLeft + getPageOffsetLeft(el.offsetParent) : el.offsetLeft;
} 

function getPageOffsetTop(el)	{
	return el.offsetParent != null ? el.offsetTop + getPageOffsetTop(el.offsetParent) : el.offsetTop;
} 

function getNodeByTagName(parentNode, nodeName, position) {
    var j = 0;
    for (var k = 0; k < parentNode.childNodes.length; k++) {
       if (parentNode.childNodes[k].nodeName == nodeName) {
            if (j == position)
                return  parentNode.childNodes[k]              
            else
                j++;
       }
    }
}
