/* PRINTING */
/* PURPOSE: This javascript function will remove sections that 
	 					should not be present during printing the webpage
						To use this function use id =RemoveOnPrint for sections
						that should be removed during printing
*/

function removeelements()
{
  //store all elements with id=remove to "remove_el"
  var remove_el=document.all.RemoveOnPrint
  //if there is only one element with id=remove
  if (remove_el!=''&&remove_el.length==null)
	  remove_el.style.display='none'
  else
	{
    //for each element with id=remove
    for (i=0;i<remove_el.length;i++)
    remove_el[i].style.display='none'
	}
}

function revertback()
{
 //Show Hidden ID's again
 //setTimeout("window.location.reload()",50)
 //store all elements with id=remove to "remove_el"
  var remove_el=document.all.RemoveOnPrint
  //if there is only one element with id=remove
  if (remove_el!=''&&remove_el.length==null)
	  remove_el.style.display='block'
  else
	{
    //for each element with id=remove
    for (i=0;i<remove_el.length;i++)
    remove_el[i].style.display='block'
	}
}

window.onbeforeprint=removeelements
window.onafterprint=revertback