function open_win(path, height, width)
{
LeftPosition = (screen.width) ? (screen.width - width)/2 : 0;
TopPosition = (screen.height) ? (screen.height - height)/2 : 0;
window.open(path,"","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=yes, width=" + width + ", height=" + height + ",top=" + TopPosition + ",left=" + LeftPosition)
}

function open_popup(path, height, width)
{
LeftPosition = (screen.width) ? (screen.width - width)/2 : 0;
TopPosition = (screen.height) ? (screen.height - height)/2 : 0;
window.open(path,"","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=yes, width=" + width + ", height=" + height + ",top=" + TopPosition + ",left=" + LeftPosition)
}

