function calculatearticleIndexImgBrdrCssProperties(article) 
{
	
	if (article=='thirdarticle')
	{
		
		document.getElementById("articalcontainer").style.height=document.getElementById("articlelinks").offsetHeight+240;
		document.getElementById("articalcontainerborder").style.height=document.getElementById("articlelinks").offsetHeight+149;
		document.getElementById("whiteborder").style.height=document.getElementById("articlelinks").offsetHeight+175;
		document.getElementById("copyart").style.height=document.getElementById("articlelinks").offsetHeight+60;
		document.getElementById("articlefooter").style.top=document.getElementById("articlelinks").offsetHeight+210;
		document.getElementById("articlefooter").style.left=470;
	}else if (article=='firstarticle')
	{
		
		document.getElementById("articalcontainer").style.height=670;
		document.getElementById("articalcontainerborder").style.height=584;
		document.getElementById("whiteborder").style.height=610;
		document.getElementById("copyart").style.height=495;
		document.getElementById("articlefooter").style.top=643;
		document.getElementById("articlefooter").style.left=470;
	}
}

function loadIndexProperties () {
			var headerHeight = document.getElementById("header").offsetHeight;
			var copyColumn=0;
			if(document.getElementById("body")!= null)
			{
				var blurbHeight=0;
				blurbHeight = document.getElementById("formblurb1").offsetHeight;
				copyColumn = document.getElementById("maincopy").offsetHeight;
				if(blurbHeight > copyColumn )
					copyColumn = blurbHeight+170;
				
			}
			else
			{
				copyColumn = document.getElementById("maincopy").offsetHeight+24;
			}
	        var formColumn = document.getElementById("formBg").offsetHeight+24;

            var maxHeight;
			headerHeight=216;  //headerheight in mozilla is  0 so just hard coding the value
		
            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=document.getElementById("maincopy").offsetHeight;
                maxHeight = formColumn;
            }
            document.getElementById("maincopy").style.top=headerHeight;
	   		document.getElementById("formBg").style.top=headerHeight;
            document.getElementById("footer").style.top=maxHeight+headerHeight;
            document.getElementById("copyright").style.top=maxHeight+headerHeight;
           
            document.getElementById("form").style.height=maxHeight-20;
}

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 = 517;
    var win_height = 460;
    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 doProcessing() {
  document.getElementById('submitBtn').className = 'thide'; 	
  document.getElementById('processing').className = 'tshow';
}

function doProcessing1() {
  document.getElementById('submitBtn').className = 'tshow'; 	
  document.getElementById('processing').className = 'thide';
}

