function loadIndexProperties () {

	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+1;
            document.getElementById("copyright").style.top=maxHeight+headerHeight+1;
            document.getElementById("footnote").style.top=maxHeight+headerHeight+50;
            document.getElementById("form").style.height=maxHeight-30;
	document.getElementById("maincopy").style.top=headerHeight;
	document.getElementById("formBg").style.top=headerHeight-2;

}

function nonFormCSS() {
	var headerHeight = document.getElementById("nonformHeader").offsetHeight;
	var copyHeight = document.getElementById("nonform").offsetHeight;
	document.getElementById("footer").style.top=headerHeight+copyHeight;
	document.getElementById("copyright").style.top=headerHeight+copyHeight;
}

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';
}

/**
  *
  *	 This function is for applying dynamic CSS to article pages 
  *
  */ 
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 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 calculatearticleIndexImgBrdrCssProperties(article) 
{
	
	if (article=='thirdarticle')
	{
		document.getElementById("articalcontainer").style.height=document.getElementById("articlelinks").offsetHeight+335;
		document.getElementById("articalcontainerborder").style.height=document.getElementById("articlelinks").offsetHeight+175;
		//document.getElementById("whiteborder").style.height=document.getElementById("articlelinks").offsetHeight+187;
		//document.getElementById("outerborder").style.height=document.getElementById("articlelinks").offsetHeight+151;
		document.getElementById("copyart").style.height=document.getElementById("articlelinks").offsetHeight+60;
		document.getElementById("articlefooter").style.top=document.getElementById("articlelinks").offsetHeight+250;
		document.getElementById("articlefooter").style.left=490;
		
	}else if (article=='firstarticle')
	{
		document.getElementById("articalcontainer").style.height=635;
		document.getElementById("articalcontainerborder").style.height=575;
		//document.getElementById("whiteborder").style.height=587;
		//document.getElementById("outerborder").style.height=551;
		document.getElementById("copyart").style.height=460;
		document.getElementById("articlefooter").style.top=650;
		document.getElementById("articlefooter").style.left=485;
		
	}
}
