function rc(e)
{
        if (e.which == 3)
            return false;
        else
            return true;
}

function ShowPic(Name,Picture,x,y)
{
var features;

    if(x == null) x='680';
    if(y == null) y='650';
    if(x > screen.width) x=screen.width-50;
    if(y > screen.height) y=screen.height-50;
	
    features = 'width=' + x + ',height=' + y + ',resizable=1,status=0,scrollbars=1,dependent=1,left=50,top=50';
    //this.blur();
    w=window.open(Picture,Name,features);
    //w.focus();
    //w.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP);
    //w.onmousedown=rc;
    //w.onmouseup=rc;
}

if (document.layers)
{
    window.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP);
    window.onmousedown=rightclick;
    window.onmouseup=rightclick;
    function rightclick(e)
    {
        if (e.which == 3)
        {
            //alert('Aha ;-');
            return false;
        }
        else
        {
            return true;
        }
    }
}

if (document.all)
{
    function click()
    {
        if (event.button==2)
        {
            ; //alert('Aha ;-');
        }
        if (event.button==3)
        {
            ; //alert('Aha ;-');
        }
    }
    document.onmousedown=click;
}

