function MM_openBrWindow(id, width, height) { //v2.0

    LeftPosition = (screen.width)  ? (screen.width-width)/2  : 0;
    TopPosition  = (screen.height) ? (screen.height-height)/2 : 0;
    settings     = 'height='+height+',width='+width+',top='+TopPosition+',left='+LeftPosition

    window.open('showimage.php?n='+id,'newwindow',settings);

    return false;
}

function bbOpenURL(theURL, width, height) {

    LeftPosition = (screen.width)  ? (screen.width-width)/2  : 0;
    TopPosition  = (screen.height) ? (screen.height-height)/2 : 0;
    settings     = 'height='+height+',width='+width+',top='+TopPosition+',left='+LeftPosition

    window.open(theURL,'',settings);

    return false;
}

function bbOpenURLscroll(theURL, width, height) {

    LeftPosition = (screen.width)  ? (screen.width-width)/2  : 0;
    TopPosition  = (screen.height) ? (screen.height-height)/2 : 0;
    settings     = 'height='+height+',width='+width+',top='+TopPosition+',left='+LeftPosition+', scrollbars=yes'

    window.open(theURL,'',settings);

    return false;
}
