
IE4plus = (document.all) ? true : false;
NS4 = (document.layers) ? true : false;
function clickIE(){return false;}
function clickNS(e){if(e.which==2||e.which==3){return false;}}
if (!IE4plus)
{

	document.captureEvents(Event.MOUSEDOWN || Event.MOUSEUP);
	document.onmousedown=clickNS;
	document.onmouseup= clickNS;
	document.oncontextmenu=clickIE;
}
else
{

	document.onmouseup= clickIE;document.oncontextmenu=clickIE;}

document.onselectstart=new Function('return false');
function ds(e){return false;}
function ra(){return true;}
// Firefore document.onmousedown=ds;document.onclick=ra;


function p1()
{
	for(pp=0;pp<document.all.length;pp++)
	{
		if(document.all[pp].style.visibility!='hidden')
			{
				document.all[pp].style.visibility='hidden';document.all[pp].id='ph'
			}
	}
}
function p2()
{
	for (pp=0;pp<document.all.length;pp++)
	{
		if(document.all[pp].id=='ph')
			document.all[pp].style.visibility=''
	}
}
window.onbeforeprint=p1;window.onafterprint=p2;

