function gotoURL(link){
	window.location.href = link;
	}
	


function setContent(){
  

    if(document.getElementById){
    if(document.getElementById('content') && document.getElementById('rightcol')){
        var windowHeight = getWindowHeight();
        if (windowHeight > 0) {}
        var contentElement = document.getElementById('content');
        var rightElement = document.getElementById('rightcol');

        var contentHeight  = contentElement.offsetHeight;
        var rightHeight  = rightElement.offsetHeight;
        
        if(contentHeight < rightHeight){
            contentElement.style.height = rightHeight+"px";
        }
        
        else{
            rightElement.style.height = contentHeight+"px";
        }
       
        }

	    
    }
}


function getWindowHeight() {
	var windowHeight = 0;
	if (typeof(window.innerHeight) == 'number') {
		windowHeight = window.innerHeight;
	}
	else {
		if (document.documentElement && document.documentElement.clientHeight) {
			windowHeight = document.documentElement.clientHeight;
		}
		else {
			if (document.body && document.body.clientHeight) {
				windowHeight = document.body.clientHeight;
			}
		}
	}
	return windowHeight;
}



window.onload = function() {

		setContent();
}

