function calculateIndexCssProperties() { 

    leftHeight = document.getElementById("copy").offsetHeight;
    rightHeight = document.getElementById("formarea").offsetHeight+30;

    if(leftHeight < rightHeight) {
                
        document.getElementById("copy").style.height=document.getElementById("formarea").offsetHeight+20+'px';
    	document.getElementById("footer").style.top=document.getElementById("copy").offsetHeight+124+'px'; 
    
    } else {
     
        document.getElementById("formarea").style.height=document.getElementById("copy").offsetHeight+0+'px';
        document.getElementById("copy").style.height=document.getElementById("copy").offsetHeight+'px';
    	document.getElementById("footer").style.top=document.getElementById("copy").offsetHeight+124+'px'; 
		
    }

}

function calculateNonFormCssProperties() {

    document.getElementById("footer").style.top=document.getElementById("nonFormCopy").offsetHeight+120; 

} 

function calculatePopPrgCssProperties() { 

    var maximumHeight = calculateHeight();
    leftHeight = document.getElementById("popupLeftCopy").offsetHeight;
    rightHeight = document.getElementById("popupMainCopy").offsetHeight;

    if ( maximumHeight > leftHeight && maximumHeight > rightHeight ) {

        document.getElementById("popupLeftCopy").style.height=maximumHeight;
        document.getElementById("popupMainCopy").style.height=maximumHeight;
        document.getElementById("popupFooter").style.top=maximumHeight+100;

    } else if(leftHeight < rightHeight) {

        document.getElementById("popupLeftCopy").style.height=document.getElementById("popupMainCopy").offsetHeight;
        document.getElementById("popupFooter").style.top=document.getElementById("popupMainCopy").offsetHeight+100;
        
    } else {

        document.getElementById("popupMainCopy").style.height=document.getElementById("popupLeftCopy").offsetHeight;
        document.getElementById("popupFooter").style.top=document.getElementById("popupLeftCopy").offsetHeight+100+20;
    }
	
    document.getElementById("popUpRightSpacer").style.height=document.getElementById("popupMainCopy").offsetHeight;
} 

//pop launcher
function openWin(page, name, details) {
	newWin = window.open(page, name, details);
	if (window.focus) { newWin.focus() }
}
	

