function calculateIndexCssProperties() { 

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

    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+124+'px'; 

} 

function calculatePopPrgCssProperties() { 

    var maximumHeight = calculateHeight();
//	maximumHeight = maximumHeight;

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

    if (  maximumHeight+'px' > leftHeight &&  maximumHeight+'px' > rightHeight ) {

        document.getElementById("popupLeftCopy").style.height=maximumHeight+20+'px';
        document.getElementById("popupMainCopy").style.height=maximumHeight+20+'px';
        document.getElementById("popupFooter").style.top=maximumHeight+120+'px';

    } else if(leftHeight < rightHeight) {

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

        document.getElementById("popupMainCopy").style.height=document.getElementById("popupLeftCopy").offsetHeight+'px';
        document.getElementById("popupFooter").style.top=document.getElementById("popupLeftCopy").offsetHeight+120+'px';
    }
	
    document.getElementById("popUpRightSpacer").style.height=document.getElementById("popupMainCopy").offsetHeight+'px';
} 

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

