//ALGEMEEN 
function setSubInfo(tgt,src){

getElement(tgt).innerHTML = getElement(src).innerHTML;

}

function setDivHeight(){

    var midheight = getElement('mid').scrollHeight;
    var rightheight = getElement('tableRight').scrollHeight;    
    if (midheight > rightheight){ 
		getElement('tableRight').style.height = (midheight-20)+"px";
	}
    
}

    function showOnly(showId, parentId, tagName) {
                var parObj = document.getElementById(parentId);
                var tagType = "DIV";
                if (tagName) {
                    tagType = tagName.toUpperCase();
                }
                if (parObj) {
                    var children = parObj.childNodes;
                    // alert(db_DumpTree(children, ''));
                    for(c = 0; c < children.length; c++) {
                        if (children[c].nodeName == tagType ) {
                            if (children[c].id == showId) {
                                children[c].style.display = 'block';
                            } else {
                                children[c].style.display = 'none';
                            }
                        }
                    }
                }
            }




// HULPFUNCTIES
function getElement(id) {
    if (document.getElementById(id)) {
        return document.getElementById(id);
    } else {
        alert('Element ' + id + ' is niet gevonden!');
    }
}

function getPageHeight() {
    if (window.innerHeight && window.scrollMaxY) { // Firefox
        yWithScroll = window.innerHeight + window.scrollMaxY;
    } else if (document.body.scrollHeight > document.body.offsetHeight) { // all but Explorer Mac
        yWithScroll = document.body.scrollHeight;
    } else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
        yWithScroll = document.body.offsetHeight;
    }
    return yWithScroll;
}

function inpFocus(obj, stdText) {
  if (obj.value == stdText) {
     obj.value = '';
  }
}

function inpBlur(obj, stdText) {
  if (obj.value == '') {
     obj.value = stdText;
  }
}








