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-5;
    document.getElementById("footnote").style.top=maxHeight+headerHeight+32;
    document.getElementById("form").style.height=maxHeight-60;
	document.getElementById("maincopy").style.top=headerHeight;
	document.getElementById("formBg").style.top=headerHeight;
	document.getElementById("border").style.height=maxHeight+headerHeight+0;

}

function nonFormCSS() {
	var headerHeight = document.getElementById("nonformHeader").offsetHeight;
	var copyHeight = document.getElementById("nonform").offsetHeight;
	document.getElementById("footer").style.top=headerHeight+copyHeight+2;
	
}

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';
}
function openPopupWindow(page, name)
	{
		newWin = window.open(page, name,'width=517px, resizable=yes ,height=400px, scrollbars=yes, left=10,top=20');
		if (window.focus) { newWin.focus() }
	}
	
	function openPopupWindowAB(page, name)
	{
		newWin = window.open(page, name,'width=370px, resizable=yes ,height=300, scrollbars=yes, left=10,top=20');
		if (window.focus) { newWin.focus() }
	}
	function resultheight()
	{
	 alert('hi');
	  document.getElementById('refnetbackground').style.height=document.getElementById('reftab').offsetHeight+10+"px";
	}
