

function closeWindow(name)
{
 name.close
}

function openGalleryWin(file,winName)
{
 GalleryWin = window.open(file, winName, 'width=750,height=550,screenX=0,screenY=0,resizable=yes,scrollbars');
}

function openPopupWin(file)
{
 var MaxHeight = (screen.height - 100);

 PopupWin = window.open(file, 'popwindow', 'width=550,height=310,screenX=50,screenY=10,resizable=yes,scrollbars,dependent=no');
 PopupWin.focus();
}

function openSpecialWin(file)
{
 SpecialWin = window.open(file, 'specialwindow', 'width=700,height=550,screenX=10,screenY=0,resizable=yes,scrollbars,menubar=yes,status=yes,dependent=no');
 SpecialWin.focus();
}