var ie4 = document.all; 
var ns4 = document.layers; 

if (ns4) document.captureEvents(Event.MOUSEDOWN); 

document.onmousedown = right; 

function right(e) { 
 
var msg = "Sorry, right-click has been disabled."; 
 
if (ns4 && e.which == 3) { 
  alert(msg); 
  return false; 
 
  } else if (ie4 && event.button==2) { 
  alert(msg); 
  return false; 
} 
 
return true; 
} 
 

function trap() { 
 
if (navigator.appName == 'Netscape' && document.images) { 
  for (i=0; i<document.images.length; i++) 
  document.images[i].onMOUSEDOWN = right; 
} 
} 

function erase () {
	if (confirm("Are you sure you want to empty this cart?")) {document.location = "cart.php?action=empty";} 
	else {document.location = "cart.php?action=view";}
	return false;
}
