    Keyword = new Object();
    Descrip = new Object();
    Address = new Object();


Keyword[0] = 90


Keyword[1] = "contact"
Descrip[1] = "For more information Please click on this link"
Address[1] = "contact.htm"

Keyword[2] = "heart"
Descrip[2] = "For more information Please click on this link"
Address[2] = "serv.htm"

Keyword[3] = "emergency"
Descrip[3] = "For more information Please click on this link"
Address[3] = "acemg.htm"

Keyword[4] = "address"
Descrip[4] = "For more information Please click on this link"
Address[4] = "contact.htm"

Keyword[5] = "accident"
Descrip[5] = "For more information Please click on this link"
Address[5] = "acemg.htm"

Keyword[6] = "screening"
Descrip[6] = "For more information Please click on this link"
Address[6] = "HEALTHSCR.HTM"

Keyword[7] = "news"
Descrip[7] = "For more information Please click on this link"
Address[7] = "news.htm"



function checkDatabase() {


       var Found = false
      var Item = document.forms[0].searchfor.value.toLowerCase();

stats='toolbar=no,location=no,directories=no,status=no,menubar=no,' 
stats += 'scrollbars=yes,resizable=yes' 
MsgBox = window.open ("","msgWindow",stats) 
MsgBox.document.write("<head><title>Close this window to return to HomePage</title></head>");
MsgBox.document.write ("<BODY background='images/patch.jpg'  TEXT=#000000 LINK=#000080 VLINK=#800040 ALINK=#FF0000>")
MsgBox.document.write ("<table  width='100%' border=0 cellpadding=0 cellspacing=0 align=left> <tr>")
MsgBox.document.write ("<td height=75 align=left valign=middle><img src='images/ISO.jpg' width=144 height=54></td>")
MsgBox.document.write ("<td height=75 align=right valign=middle><img src='images/title.jpg' width=353 height=59></td>")
MsgBox.document.write("</tr></table><br><br><br><br><br>")
MsgBox.document.write ("<font size=4 face=Arial><b>Search Results</b></font><hr>") 
MsgBox.document.write ("<br><font size=2 face=Arial> For the keyword:  <b>"+Item+" </b></font><BR><BR>");
        for (var i=1; i <= Keyword[0]; i++) {
  	if(Item == Keyword[i]) {
	  Found = true;
	 MsgBox.document.write ("<font size=2 face=Arial>"+Descrip[i]+" &nbsp;&nbsp;<A HREF="+Address[i]+"><font size=1 face=Verdana>Click Here To go</font></A></font><br>") 

        }
      }
      if(!Found)
MsgBox.document.write ("<font size=2 face=Arial><b>Your search has found 0 results</b></font>") 

MsgBox.document.write ("<FORM><CENTER>") 
MsgBox.document.write ("<INPUT type='button' value='Close' onClick = 'self.close()'>") 
MsgBox.document.write ("</CENTER></FORM>")     }

function startTime()
{
        var time= new Date();
        hours= time.getHours();
        mins= time.getMinutes();
        secs= time.getSeconds();
        closeTime=hours*3600+mins*60+secs;
        closeTime+=2;  // If you want it to wait loading longer or shorter adjust this number accordingly.
        Timer();
}

function Timer()
{
        var time= new Date();
        hours= time.getHours();
        mins= time.getMinutes();
        secs= time.getSeconds();
        curTime=hours*3600+mins*60+secs
        if(curTime>=closeTime)
                reloadimg();
        else
                window.setTimeout("Timer()",1000)
}

function reloadimg()
{
	document.img1.src = "scroll/"+imgchange1(); 
	document.img2.src = "scroll/"+imgchange2();
	document.img3.src = "scroll/"+imgchange3(); 
	document.emer.src="scroll/"+emergency();
	startTime();
}

function imgchange1()
{
		var imagenumber = 3 ;
		var randomnumber = Math.random() ;
		var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ;
		images = new Array
		images[1] = "1.jpg"
		images[2] = "2.jpg"
		images[3] = "3.jpg"
		var image = images[rand1]
		return image
}
function imgchange2()
{
		var imagenumber = 3 ;
		var randomnumber = Math.random() ;
		var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ;
		images = new Array
		images[1] = "4.jpg"
		images[2] = "5.jpg"
		images[3] = "6.jpg"
		//images[5] = "5.jpg"
		var image = images[rand1]
		return image
		
}
function imgchange3()
{
		var imagenumber = 3 ;
		var randomnumber = Math.random() ;
		var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ;
		images = new Array
		images[1] = "7.jpg"
		images[2] = "8.jpg"
		images[3] = "9.jpg"
	//images[5] = "5.jpg"
		var image = images[rand1]
		return image
		
}

function imgchange8()
{
		var imagenumber = 3 ;
		var randomnumber = Math.random() ;
		var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ;
		images = new Array
		images[1] = "19.jpg"
		images[2] = "20.jpg"
		images[3] = "21.jpg"
	//images[5] = "5.jpg"
		var image = images[rand1]
		return image
		
}

function emergency()
{
		var imagenumber = 3 ;
		var randomnumber = Math.random() ;
		var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ;
		images = new Array
		images[1] = "IMGPHONE1.jpg"
		images[2] = "IMGPHONE2.jpg"
		images[3] = "IMGPHONE3.jpg"
		var image = images[rand1]
		return image


}
