function LogTo (link) { var new_url=link; if ( (new_url != "") && (new_url != null) ) window.location=new_url; } function click(e) { if (document.all) { if (event.button == 2) { alert(message); LogTo('http://blogger.com') return false; } } if (document.layers) { if (e.which == 3) { alert(message) LogTo('URL HERE') return false; } } } if (document.layers) { document.captureEvents(Event.MOUSEDOWN); } document.onmousedown=click;