function calculateIndexCssProperties() { 

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

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

}

function calculateNonFormCssProperties() {

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

} 

function calculatePopPrgCssProperties() { 

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

    if ( maximumHeight > leftHeight && maximumHeight > rightHeight ) {
		//alert("in if");
        document.getElementById("popupLeftCopy").style.height=maximumHeight;
        document.getElementById("popupMainCopy").style.height=maximumHeight;
        document.getElementById("popupFooter").style.top=maximumHeight+150;

    } else if(leftHeight < rightHeight) {
		//alert("in else if");
        document.getElementById("popupLeftCopy").style.height=document.getElementById("popupMainCopy").offsetHeight;
        document.getElementById("popupFooter").style.top=document.getElementById("popupMainCopy").offsetHeight+150;
        
    } else {
		//alert("in else");
        document.getElementById("popupMainCopy").style.height=document.getElementById("popupLeftCopy").offsetHeight;
        document.getElementById("popupFooter").style.top=document.getElementById("popupLeftCopy").offsetHeight+150;
    }
	
    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() }
}
	

