function openWin(page) {
    var win_width = 518;
    var win_height = 500;
    var options = "scrollbars=yes, width=" + win_width + ", height=" + win_height;
    var win = window.open(page, 'MyWin', options);
    if (window.focus) { win.focus() }
}

function sizeContent() {
        //Initialize the variables
        var leftColumn = 0;
	var rightColumn = 0;
        var contentColumn = 0;
        
        if(document.getElementById("leftcolumn") != null){
        	var leftColumn = document.getElementById("leftcolumn").offsetHeight;
        }
        if(document.getElementById("rightcolumn") != null){
        	var rightColumn = document.getElementById("rightcolumn").offsetHeight;
        }
        if(document.getElementById("contentwrapper") != null){
        	var contentColumn = document.getElementById("contentwrapper").offsetHeight;
        }
            
        //Find the tallest DIV element
        var maxHeight = leftColumn > rightColumn ? leftColumn+30 : rightColumn+30;
        maxHeight = contentColumn > maxHeight ? contentColumn+30 : maxHeight+30;
        
        //Set the value
	if(document.getElementById("leftcolumn") != null){
	        document.getElementById("leftcolumn").style.height=maxHeight+'px';
	        document.getElementById("leftcolumn").style.minHeight=maxHeight+'px';
	}
	if(document.getElementById("rightcolumn") != null){
	        document.getElementById("rightcolumn").style.height=maxHeight+'px';
        	document.getElementById("rightcolumn").style.minHeight=maxHeight+'px';
	}
	if(document.getElementById("contentwrapper") != null){
	        document.getElementById("contentwrapper").style.height=maxHeight+'px';
        	document.getElementById("contentwrapper").style.minHeight=maxHeight+'px';
        }
}
