function PopupCenterWindow(url, name, width, height, scroll)
{
var win = null;
var left = (screen.width - width) / 2;
var top = (screen.height - height) / 2;
var features = 'height=' + height + ',';
features += 'width=' + width + ',';
features += 'top=' + top + ',';
features += 'left=' + left + ',';
features += 'scrollbars= ' + scroll + ',';
features += 'resizable=no';
win = window.open(url, name, features);
if (parseInt(navigator.appVersion) >= 4)
{
win.window.focus();
}
return win;
}
function showUploadWindow(picname)
{
var openWindow = PopupCenterWindow('ModifyPic.aspx?picname='+picname, 'UploadPicture', '347', '150', 'no');
}