function showJobs(divCall){
//document.getElementById(divCall).style.display="block";

 alldivs = jobsFrame.document.getElementsByTagName('div');
	for (var i=0;i<alldivs.length;i++){
			alldivs[i].style.display="none";
		}jobsFrame.document.getElementById(divCall).style.display="block";
	
}

function validateUser(){
	var uName = document.getElementById("userName").value;
	var uPass = document.getElementById("userPassword").value;
	if(uName == "gssadmin" ){
		if(uPass == "@gssadmin"){
			location.href ="Library_index.html";
		}else{
			alert("Please check your password!");
		}	
	}else{
		alert("Please check your User Name!");
	}
}

/* pop up */

function openContent(windowName){
	window.open(''+windowName,'downloadPapers','height=600,width=900,top=50,left=50,toolbar=no,location=no,menubar=no,resizable,status,scrollbars=1')
}

function openPop(windowName){
	window.open(''+windowName,'popupWin','height=400,width=600,toolbar=no,location=no,menubar=no,resizable,status,scrollbars=1')
}


/* date starts */
<!-- Hide script from older browsers -->
<!-- Initialize the variable for use below -->
var fulldate = "";
<!-- Establish a month name array to be used to retrieve a month proper name -->
var months = new Array(13);
	months[1]="January";
  	months[2]="February";
  	months[3]="March";
  	months[4]="April";
  	months[5]="May";
  	months[6]="June";
  	months[7]="July";
  	months[8]="August";
  	months[9]="September";
  	months[10]="October";
  	months[11]="November";
  	months[12]="December";
<!-- Establish a day name array to be used to retrieve a day's proper name -->
var days=new Array(8);
	days[1]="Sunday";
	days[2]="Monday";
	days[3]="Tuesday";
	days[4]="Wednesday";
	days[5]="Thursday";
	days[6]="Friday";
	days[7]="Saturday";
							
<!-- Get today's date, we will piece this apart below and reconfigure it to display in European Format -->
  	var now = new Date();
<!-- Get the month value from today's date, then pull its proper name from the month array -->
  	var month = months[now.getMonth() + 1];
<!-- Get the day value from today's date, then pull its proper name from the day array -->					
  	var day=days[now.getDay() + 1];
<!-- Get the date value from today's date -->
  	var date=now.getDate();
<!-- Get the year value from today's date -->
  	var year=now.getYear();
<!-- Today's date was pulled from the user's PC.  Therefore, we are subject to the users date settings. -->
<!-- In order to force a 4 character date, we perform the following If/then check -->
						
<!-- This takes care of Netscape -->                  
if (year > 100 && year <2000)
{
	var current_year=now.getYear()-100;
	if(current_year<10)  
		year = "20" + 0 + current_year;
	else
		year="20" + current_year;
}
else if (year== 100) year=2000;
<!-- For IE it remains the same as year -->                                                         
<!-- Reformat date to appear in European Format -->
	fulldate =  month + " " + date + ", " +  " " + year;


/* ends date */














// menu tree starts
//Smart Folding Menu tree- By Dynamic Drive (rewritten 03/03/02)
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use

var head="display:''"
img1=new Image()
img1.src="images/fold.gif"
img2=new Image()
img2.src="images/open.gif"

var ns6=(document.getElementById&&!document.all||window.opera)
var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1

function checkcontained(e){
var iscontained=0
cur=ns6? e.target : event.srcElement
i=0
if (cur.id=="foldheader")
iscontained=1
else
while (ns6&&cur.parentNode||(ie4&&cur.parentElement)){
if (cur.id=="foldheader"||cur.id=="foldinglist"){
iscontained=(cur.id=="foldheader")? 1 : 0
break
}
cur=ns6? cur.parentNode : cur.parentElement
}

if (iscontained){
var foldercontent=ns6? cur.nextSibling.nextSibling : cur.all.tags("UL")[0]
if (foldercontent.style.display=="none"){
foldercontent.style.display=""
cur.style.listStyleImage="url(images/open.gif)"
}
else{
foldercontent.style.display="none"
cur.style.listStyleImage="url(images/fold.gif)"
}
}
}

if (ie4||ns6)
document.onclick=checkcontained