
function calculateIndexCssProperties() { 

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

    if(leftHeight < rightHeight) {
                
        //alert("in if");
		document.getElementById("copy").style.height=document.getElementById("formarea").offsetHeight+10;
    	document.getElementById("footer").style.top=document.getElementById("copy").offsetHeight+150; 
    	//document.getElementById("copyright").style.top=document.getElementById("copy").offsetHeight+150; 
    
    } else {
		//alert("in else");
        //document.getElementById("formarea").style.height=document.getElementById("copy").offsetHeight;
        document.getElementById("copy").style.height=document.getElementById("copy").offsetHeight;
    	document.getElementById("footer").style.top=document.getElementById("copy").offsetHeight+150; 
    		
    }

}

function calculateNonFormCssProperties() {

    document.getElementById("footer").style.left=document.getElementById("nonFormCopy").offsetLeft+0; 
    document.getElementById("footer").style.top=document.getElementById("nonFormCopy").offsetHeight+160; 
    document.getElementById("copyright").style.top=document.getElementById("nonFormCopy").offsetHeight+198; 

} 

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+180;

    } else if(leftHeight < rightHeight) {

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

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

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