function validatem() 
{
document.WebForm1.txtCategoryValue.focus();
}

function AuthorFocus() 
{
document.Form1.txtAuthor.focus();
}
function Pred1Focus() 
{
document.Pred1List.txtPred1.focus();
}
function Pred2Focus() 
{
document.Pred2List.txtPred2.focus();
}
/* Scroll date and message in the status window.  osd +="    You may register for courses.     Look at your transcripts.     ";
osd +="         Suggest courses for us to offer.    Find out what remains to be done to graduate.    See why some of the courses are not available to you. ";  */

var osd = "   "
osd +=" Welcome to the Shevchenko Scientific Society Library Catalog on the Web.                               ";

var timer;
var msg = "";
function scrollMaster() {
msg = customDateSpring(new Date())
clearTimeout(timer)
msg += " " + showtime() + " " + osd
for (var i= 0; i < 100; i++){
msg = " " + msg;
}
scrollMe()
}
function scrollMe(){
window.status = msg;
msg = msg.substring(1, msg.length) + msg.substring(0,1);
timer = setTimeout("scrollMe()", 100);
}
function showtime (){
var now = new Date();
var hours= now.getHours();
var minutes= now.getMinutes();
var seconds= now.getSeconds();
var months= now.getMonth();
var dates= now.getDate();
var years= now.getYear();
var timeValue = ""
timeValue += ((months >9) ? "" : " ")
timeValue += ((dates >9) ? "" : " ")
timeValue = ( months +1)
timeValue +="/"+ dates
timeValue +="/"+  years
var ap="A.M."
if (hours == 12) {
ap = "P.M."
}
if (hours == 0) {
hours = 12
}
if(hours >= 13){
hours -= 12;
ap="P.M."
}
var timeValue2 = " " + hours
timeValue2 += ((minutes < 10) ? ":0":":") + minutes + " " + ap
return timeValue2;
}
function MakeArray(n) {
this.length = n
return this
}
monthNames = new MakeArray(12)
monthNames[1] = "Janurary"
monthNames[2] = "February"
monthNames[3] = "March"
monthNames[4] = "April"
monthNames[5] = "May"
monthNames[6] = "June"
monthNames[7] = "July"
monthNames[8] = "August"
monthNames[9] = "Sept."
monthNames[10] = "Oct."
monthNames[11] = "Nov."
monthNames[12] = "Dec."
daysNames = new MakeArray(7)
daysNames[1] = "Sunday"
daysNames[2] = "Monday"
daysNames[3] = "Tuesday"
daysNames[4] = "Wednesday"
daysNames[5] = "Thursday"
daysNames[6] = "Friday"
daysNames[7] = "Saturday"
function customDateSpring(oneDate) {
var theDay = daysNames[oneDate.getDay() +1]
var theDate =oneDate.getDate()
var theMonth = monthNames[oneDate.getMonth() +1]
var dayth="th"
if ((theDate == 1) || (theDate == 21) || (theDate == 31)) {
dayth="st";
}
if ((theDate == 2) || (theDate ==22)) {
dayth="nd";
}
if ((theDate== 3) || (theDate  == 23)) {
dayth="rd";
}
return theDay + ", " + theMonth + " " + theDate + dayth + ","
}

/* Scroll Fade in the window    */



<!-- Original:  John O'Brien (obrien@lis.net.au) -->
<!-- Web Site:  http://www.lis.net.au/~obrien -->


<!-- Begin
var message = "     Type one or two first syllables of a word rather than the entire word. Then click Go!"
var character = 0;
var to_print = "   Transliterate Cyrillic words.     ";
var ypos = 403;
var next = 0 ;
var fade = 100 ;
var next_message = new Array() ;
next_message[0] = "Start the search with entry Key Word then refine the search. "
next_message[1] = "  You can refine a search by typing in more than one entry [category]."
next_message[2] = "For more information please click on Help."
next_message[3] = "Still not sure? Please click on Help.  "
next_message[4] = "Please click on Help."
function doText(text) {
if (document.all) {
if (character <= text.length - 1) {
to_print += text.charAt(character);
teletext.innerHTML = to_print;
character++;
}
else
scrollIt();
}
setTimeout("doText(message)", 100);
}
function scrollIt() {
if (ypos >= 260) {
ypos -= 1;
fade -= 4;
if (ypos < 265) {
teletext.innerHTML = "" ;
   }
}
else {
ypos = 403;
character = 0;
to_print = "";
nextMessage();
fade = 100;
}
teletext.style.top = ypos;
teletext.filters.alpha.opacity = fade;
}
function nextMessage() {
message = next_message[next]
if (next == 4) {
next = 0;
}
else
next++;
}
//  End -->
