function showNewsArticlePopupForm(newsID)
{
    if ( !newsID )
    	return;

	// get all the download forms
    var forms = $('.articleDownloadForms');
    
    if ( !forms || forms.length <= 0 )
    	return;	    
    
    // loop trough each form and hide it
    for(var i=0; i<forms.length; i++)
    {
    	 // if the form matches newsID show it
    	forms[i].style.display = 'none';
		if(forms[i].id == 'articleDownloadForm_'+newsID)
		{
			// show the form
			forms[i].style.display = 'block';
			      
			// also show the popup div
		    var popupDiv = $('div#articleDownloadFrame')[0];
		    
		    if( popupDiv )
		    	popupDiv.style.display = 'block';
		}
    }
    
    // scroll to top
    window.location.hash = 'homeTop';
}

function hideNewsArticlePopupForm()
{
	// get all the download forms
    var forms = $('.articleDownloadForms');
    
    // loop trough each form and hide it
    for(var i=0; i<forms.length; i++)
    {
    	 // if the form matches newsID show it
    	forms[i].style.display = 'none';
    }
    
    // also hide the popup div
    var popupDiv = $('div#articleDownloadFrame')[0];
    
    if( popupDiv )
    	popupDiv.style.display = 'none';
}	
