function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//  End -->

function SeePic(img){
  pic1= new Image();
  pic1.src=(img);
  Control(img);
}
function Control(img){
  if((pic1.width!=0)&&(pic1.height!=0)){
    viewPic(img);
  }
  else{
    fonction="Control('"+img+"')";
    interval=setTimeout(fonction,20);
  }
}
function viewPic(img){
  pwid=pic1.width+20;
  phei=pic1.height+20;
  stringa="width="+pwid+",height="+phei;
  finestra=window.open(img,"",stringa);

}

var topPos = 100; 
var leftPos = 100; 
var wt = 1; 
var ht = 1; 


function WinOpen(m, n) 
{ 
if(screen) 
{ 
leftPos = (screen.width - m)/2; 
topPos = (screen.height - n)/2; 
wt = m; 
ht = n; 
} 
w = window.open("apage.html","","location = 0, scrollbars = 0, status = 0, resizable = 0, top = "+topPos+", left = "+leftPos+", width = "+wt+", height = "+ht); 
} 
//  End -->


function VersionNav(Netscape, Explorer) {

  if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') ||      

      (navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft'))

    return true;

else return false;

}

//  end script -->

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//  End -->
