function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function removeelements(){
	//store all elements with id=remove to "remove_el"
	var remove_el=document.all.remove
	//if there is only one element with id=remove
	if (remove_el!=''&&remove_el.length==null)
		remove_el.style.display='none'
	else{
		for (i=0;i<remove_el.length;i++)
			remove_el[i].style.display='none'
		}
	document.body.style.background=''
}

function popup(url,width,height)
{
	window.open(url,'','scrollbars=yes,resizable=yes,height='+height+',width='+width+'');
}

function revertback(){
setTimeout("window.location.reload()",40)
}
window.onbeforeprint=removeelements
window.onafterprint=revertback