// Library of JavaScript functions for EPS2003

function openWin1() {
  popupWin = window.open('welcome.html', 'spb', 'toolbar,menubar,scrollbars,resizable,width=720,height=600')
}

function openWinMenubarOn(filename, name) {
  window.open(filename, name, 'scrollbars,menubar=yes,location=yes,resizable,width=800,height=600')
}

function openWinMenubarOn3(filename, name) {
  window.open(filename, name, 'scrollbars,menubar=yes,location=yes,resizable,width=810,height=700')
}

function openWinMenubarOn_1(filename, name) {
  window.open(filename, name, 'scrollbars,toolbar=yes,menubar=yes,location=yes,resizable,width=600,height=600')
}

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", "Wendersday", "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 TwoFramesUpdate(file1, file2)
{
parent.menu.location = file1;
parent.main.location = file2;
}

function TwoFramesUpdate_1(frame1, frame2, file1, file2)
{
x="parent."+frame1+".location="+"'"+file1+"'"
y="parent."+frame2+".location="+"'"+file2+"'"
//document.write(x+'<br>'+y+"<br>")
eval(x)
eval(y)
}


function OpenFrameset(fileset)
{
document.location = fileset 
menu.location="cont.html"
//TwoFramesUpdate("cont.html", "first.html")
}