function loadIndexProperties() {

	var copyColumn = document.getElementById("maincopy").offsetHeight;
            
			var formColumn;
			//var formColumn = document.getElementById("formBg").offsetHeight;
			/*if(document.getElementById("formInnerBox")!=null)
			{
			 	formColumn = document.getElementById("formInnerBox").offsetHeight;
			}
			else
			{ */
				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("copyright").style.top=maxHeight+headerHeight-5;
            //document.getElementById("footnote").style.top=maxHeight+headerHeight+30;
            document.getElementById("form").style.height=maxHeight-40;
			document.getElementById("maincopy").style.top=headerHeight;
			document.getElementById("formBg").style.top=headerHeight;
			document.getElementById("submitBtn").className='tshow';
			document.getElementById("processing").className='thide';
}

function nonFormCSS() {
	var headerHeight = document.getElementById("nonformHeader").offsetHeight;
	var copyHeight = document.getElementById("nonform").offsetHeight;
	document.getElementById("footernoform").style.top=headerHeight+copyHeight+20;
	document.getElementById("copyrightnoform").style.top=headerHeight+copyHeight+20;
}

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 openWin1(page, height, width) {    
    var options = "scrollbars=yes, width=" + width + ", height=" + height;
    var win = window.open(page, 'MyWin', options);
    if (window.focus) { win.focus() }
}

function openWindow( URL, width, height, resizable, scrollbars)
{
  try
	{
		newWindow.close(); 
	}
	catch(e)
	{
				
	}

	newWindow=window.open( URL,'page',"status=no,location=no,menubar=no,toolbar=no,directories=no,resizable=" + resizable + ",scrollbars=" + scrollbars + ",width=" + width + ",height=" + height + ",screenX=100,screenY=100");	
    window.onerror = null;
} 


function doProcessing() {
  document.getElementById('button').className = 'thide'; 	
  document.getElementById('processing').className = 'tshow';
}

function openPopupWindow(page) {

    try {
    	popup_window.close();
    } catch(e) {
					
    }
   var win_width = '520px';
   var win_height = '350px';
   if (page=='popups/options.jsp')
   {
   	win_width = '630px';
	win_height = '700px';
   }

    if ( page.indexOf("mailto") == -1 ) {
    	var options = "scrollbars=yes, width=" + win_width + ", height=" + win_height;
    	var win = window.open(page, 'MyWin', options);
    	if (window.focus) { win.focus() }
    }
}
