/*

Javascript File: General Library
Written By: Angelo Gullotta

Last Modified: 13 May 2006

*/

function popwindow(url) {
  
    var width,height;
    
    if (screen.width > 800) {
        width = 800;
        height = 600;
        w=window.open(url,'newWindow','menubar=no,toolbar=no,top=5,left=10,status=no,width='+(width+60)+',height='+(height)+',resizable=yes,scrollbars=yes');
    } else {
        width = 640;
        height = 480;
        w=window.open(url,'newWindow','menubar=no,toolbar=no,top=5,left=10,status=no,width='+(width+40)+',height='+(height)+',resizable=yes,scrollbars=yes');
    }

	if (window.focus) {
      w.focus();
    }
	return false;
}


function levelDivHeights(){
    var contentLeftHeight,contentRightHeight;
    
    contentLeftHeight=document.getElementById('content_left').offsetHeight;
    contentRightHeight=document.getElementById('content_right').offsetHeight;
    
    if (contentLeftHeight>contentRightHeight){
        document.getElementById('content_right').style.height = contentLeftHeight + "px";
    } else {
        document.getElementById('content_left').style.height = contentRightHeight + "px";
    }
    
}