var package_window  = null;

function region(width,height)
{
   return "location=0,statusbar=0,width=" + width + ",height=" + height + ",top=" + ((screen.height-height)/2).toString() + ",left=" + ((screen.width-width)/2).toString();
} 


function showpackage(dir,id)
{
    if (package_window!=null && (!package_window.closed)) package_window.close();
    package_window = window.open(dir+"package_comment.asp?id=" + id,null,region(700,300));
}