//Library of JavaScript functions for Phonons2004

function openWinMenubarOnX(filename, name) {
 X=window.open(filename, name, 'scrollbars,menubar=no,location=no,noresizable,width=750,height=450');
  X.focus()
}

function openWinMenubarOnProg(filename, name) {
 P=window.open(filename, name, 'scrollbars,menubar=no,location=no,noresizable,width=750,height=750');
  P.focus()
}

function openWin1() {
  popupWin = window.open('welcome.html', 'spb', 'toolbar,menubar,scrollbars,resizable,width=720,height=600')
}
function openWinReg() {
reg = window.open('php/login.php', 'reg', 'toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=700')
reg.focus();
}

function openWinProg() {
Prog = window.open('programme.php', 'Prog', 'toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=700')
Prog.focus();
}

function openWinFR() {
Fr = window.open('fr.html', 'FR', 'toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=700')
Fr.focus();
}

function openWinEx() {
Ex = window.open('excour.html', 'Ex', 'toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=750,height=750')
Ex.focus();
}
function openWinRegInt() {
reg = window.open('login.php', 'reg', 'toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=700')
reg.focus()
}

function openWinMenubarOn(filename, name) {
name=window.open(filename, name, 'scrollbars,menubar=yes,location=yes,resizable,width=800,height=600');
name.focus();
}

function openWinFS(filename, name) {
  window.open(filename, name, 'scrollbars, fullscreen, menubar=yes,location=yes, resizable');
}

function openWinMenubarOff(filename, name) {
window.open(filename, name, 'scrollbars,resizable,width=700,height=500')
}

function openWinMenubarOff_1(filename, name, w, h) {
str1='scrollbars,resizable,width=';
str2=',top=10,left=10,height=';
feat=str1+w+str2+h;
window.open(filename, name, feat)
}

function Unloa() {
  self.close()
    }

function showModiDateEn(){
var G;
NameMonth = new Array(12);
NameDay = new Array(7);

DayEn = new Array("Sunday",
"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
MonthEn = new Array("January",
"February", "March", "April", "May", "June", "July", "August", "September",
"October", "November", "December");

NameMonth=MonthEn;
NameDay=DayEn;
now = new Date(document.lastModified);
G = "Updated on ";
w=now.getYear();
NavName =navigator.appName
NavVers =navigator.appVersion
if(NavName == "Netscape")
{w+=1900}

G += NameDay[now.getDay()]+ ", " + NameMonth[now.getMonth()] + " "+
+ now.getDate() +", "+ w+".";

document.write(G+"<Br>");
}

function ModifDate(){
MD=document.lastModified;
Ind1=MD.indexOf(' ');
Ind2=MD.lastIndexOf(' ');
ModDate=MD.substring(Ind1,Ind2);
document.write(ModDate+'.');
}
function ShowScreenParam()
{
  BrouseName=navigator.appName
  BrouseVersion=navigator.appVersion
  ScreenWidth=screen.width
  ScreenHeight=screen.height
  ScreenAvailWidth=screen.availWidth
  ScreenAvailHeight=screen.availHeight
  WH=new Array(5)
  if (ScreenWidth>=1280)
   {
     WH[0]=500 //This is swf width
     WH[1]=60 //This is swf height
     WH[2]=540 //This is table width
     WH[3]='11th_1.gif' //This is top image file
     WH[4]='sfinks.jpg' //This is bottom image file
     WH[5]='heading2.gif' //This is bottom image file
     WH[6]='heading3.gif' //This is bottom image file
     WH[7]='heading4.gif'
     WH[8]='programme.gif'
     WH[9]='finrep.gif'
    }
  else
   {
    if (ScreenWidth>=1024)
      {
       WH[0]=400
       WH[1]=48
       WH[2]=500
       WH[3]='11th_1a.gif'
       WH[4]='sfinks1a.jpg'
       WH[5]='heading2a.gif'
       WH[6]='heading3a.gif'
       WH[7]='heading4a.gif'
       WH[8]='programme1.gif'
       WH[9]='finrep1.gif'
      }
    else
      {
        WH[0]=300
        WH[1]=36
        WH[2]=400
        WH[3]='11th_1b.gif'
        WH[4]='sfinks1b.jpg'
        WH[5]='heading2b.gif'
        WH[6]='heading3b.gif'
        WH[7]='heading4b.gif'
        WH[8]='programme2.gif'
        WH[9]='finrep2.gif'
       }
    }
  return WH
}