
function calculateIndexCssProperties() { 

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

    if(leftHeight < rightHeight) {
                
        document.getElementById("copy").style.height=document.getElementById("formarea").offsetHeight+10+'px';
    	document.getElementById("footer").style.top=document.getElementById("copy").offsetHeight+180+'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+180+'px'; 
		
    }

}

function calculateNonFormCssProperties() {

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

} 

function calculatePopPrgCssProperties() { 

    var maximumHeight = calculateHeight();
	//maximumHeight = maximumHeight + 'px';

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

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

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

    } else if(leftHeight < rightHeight) {

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

        document.getElementById("popupMainCopy").style.height=document.getElementById("popupLeftCopy").offsetHeight+'px';
        document.getElementById("popupFooter").style.top=document.getElementById("popupLeftCopy").offsetHeight+170+'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() }
}
	
