var win= null;
function NewWindow(mypage,myname,w,h,scroll){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable=yes';
  win=window.open(mypage,myname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

function ft1()
{
}

function ft2()
{
	document.write('DAJ Glass (1.0.5) template by Dustin Baccetti<br />')
}

function ft3()
{
	document.write('Powered by phpBB 2.0.13 © 2001, 2002 phpBB Group<br />')
}

function img_popup(image_url, image_width, image_height, popup_rand)
    {
        screenwidth = false;
        screenwidth = screen.Width;
        if ( !screenwidth )
        {
            screenwidth = window.outerWidth;
        }
        
        screenheight = false;
        screenheight = screen.Height;
        if ( !screenheight )
        {
            screenheight = window.outerHeight;
        }
        
        if ( screenwidth < ( image_width + 30 ) || screenheight < ( image_height + 30 ) || image_width == null || image_height == null )
        {
            window.open(image_url, 'limit_image_mod_popup_img_' + popup_rand, 'resizable=yes,top=0,left=0,screenX=0,screenY=0,scrollbars=yes', false);
        }
        else
        {
            window.open(image_url, 'limit_image_mod_popup_img_' + popup_rand, 'resizable=yes,top=0,left=0,screenX=0,screenY=0,height=' + ( image_height + 30 ) + ',width=' + ( image_width + 30 ), false);
        }
}

