
function clickIE()
{
   if (document.all) {return false}
}
function clickNS(n)
{
   if (document.layers||
   (document.getElementById&&!document.all))
   {if (n.which==2||n.which==3) {return false}}
}
if (document.layers)
{
   document.captureEvents(Event.MOUSEDOWN);
   document.onmousedown = clickNS
}
else
{
   document.onmouseup = clickNS;
   document.oncontextmenu = clickIE
}
document.oncontextmenu = new Function("return false")


function openWindow(url, name) {
  popupWin = window.open(url, name,
'dependent,scrollbars=0,width=300,height=325,left=10,top=25')
}

