function loadIndexProperties () {

	var mainColumn = document.getElementById("container").offsetHeight;
	var copyColumn = document.getElementById("maincopy").offsetHeight;
    var formColumn = document.getElementById("formBg").offsetHeight;
    var headerHeight = document.getElementById("header").offsetHeight;
    var maxHeight;

            if ( copyColumn > formColumn ) {
                document.getElementById("maincopy").style.height=copyColumn;
                document.getElementById("formBg").style.height=copyColumn;
                maxHeight = copyColumn;
            } else {
                document.getElementById("maincopy").style.height=formColumn;
                document.getElementById("formBg").style.height=formColumn;
                maxHeight = formColumn;
            }
            
    document.getElementById("footer").style.top=maxHeight+headerHeight+0;
    document.getElementById("copyright").style.top=maxHeight+headerHeight+0;
    document.getElementById("footnote").style.top=maxHeight+headerHeight+32;
    document.getElementById("form").style.height=maxHeight-40;
	document.getElementById("maincopy").style.top=headerHeight;
	document.getElementById("formBg").style.top=headerHeight;
	document.getElementById("container").style.height=maxHeight+headerHeight+4;

}
function loadFormProperties () {

	var mainColumn = document.getElementById("container").offsetHeight;
	var copyColumn = document.getElementById("maincopy").offsetHeight;
    var formColumn = document.getElementById("formBg").offsetHeight;
    var headerHeight = document.getElementById("header").offsetHeight;
    var maxHeight;
	
	
	
            if ( copyColumn >=formColumn ) {
			
                document.getElementById("maincopy").style.height=copyColumn;
                document.getElementById("formBg").style.height=copyColumn-20;
                maxHeight = copyColumn+10;
            } else {
			   
                document.getElementById("maincopy").style.height=formColumn;
                document.getElementById("formBg").style.height=formColumn-20;
                maxHeight = formColumn;
            }
            
    document.getElementById("footer").style.top=maxHeight+headerHeight-33;
    document.getElementById("copyright").style.top=maxHeight+headerHeight-15;
    document.getElementById("footnote").style.top=maxHeight+headerHeight+10;
    document.getElementById("form1").style.height=maxHeight-70;
	/*document.getElementById("form1").style.height=document.getElementById("footnote").style.top;*/
	document.getElementById("maincopy").style.top=headerHeight;
	document.getElementById("formBg").style.top=headerHeight;
	document.getElementById("container").style.height=maxHeight+headerHeight+4;
	
}

function nonFormCSS() {
	var headerHeight = document.getElementById("nonformHeader").offsetHeight;
	var copyHeight = document.getElementById("nonform").offsetHeight;
	var footerHeight = document.getElementById("footer").offsetHeight;
	document.getElementById("footer").style.top=headerHeight+copyHeight+0;
	document.getElementById("copyright").style.top=headerHeight+copyHeight+0;
	document.getElementById("footer").style.height=footerHeight-4;
	document.getElementById("footnote").style.top=copyHeight+headerHeight+32;
}

function openWin(page) {
    var win_width = 400;
    var win_height = 500;
    var options = "scrollbars=yes, width=" + win_width + ", height=" + win_height;
    var win = window.open(page, 'MyWin', options);
    if (window.focus) { win.focus() }
 
}

function doProcessing() {
  document.getElementById('button').className = 'thide'; 	
  document.getElementById('processing').className = 'tshow';
}

