// JScript source code
/*<HTML>
<HEAD><TITLE>Free Scripts And Tools For Webmasters @ www.AceJS.com</TITLE>
</HEAD>
<BODY>
<style type="text/css">
.sbutton {background:#FFFF00; border-style:solid; border-width:2; border-color:#000000; font-size:9pt; font-weight:bold;color:#0000FF;}
</style>
<SCRIPT LANGUAGE="JavaScript">*/
// Define Database Options
Keyword = new Object();
Descrip = new Object();
Address = new Object();
Keyword[0] = 45 //number of keywords which can be searched

// Each entry is split into
// Keyword[n] = text (where text is the keyword of which the entry is to
// be searched by  (type Keywords in lowercase)
// Descrip[n] = text (where text is the description associated to this entry
// Address[n] = text (where text is the URL associated to the entry
//  n is the entry number.

Keyword[1] = "aksum"
Descrip[1] = ""
Address[1] = "aksum.htm"

Keyword[2] = "axum"
Descrip[2] = ""
Address[2] = "aksum.htm"

Keyword[3] = "yeha"
Descrip[3] = ""
Address[3] = "yehatempel.htm"

Keyword[4] = "negash"
Descrip[4] = ""
Address[4] = "negashmosque.htm"

Keyword[5] = "gunda gundo"
Descrip[5] = ""
Address[5] = "gundagundo.htm"

Keyword[6] = "mekelle"
Descrip[6] = ""
Address[6] = "aboutmekelle.htm"

Keyword[7] = "south"
Descrip[7] = ""
Address[7] = "southgate.htm"

Keyword[8] = "abraha atsbeha"
Descrip[8] = ""
Address[8] = "abraha_atsbeha.htm"

Keyword[9] = "tembien"
Descrip[9] = ""
Address[9] = "tembien.htm"





  function checkDatabase() {

      var Found = false
      var Item = document.forms[0].searchfor.value.toLowerCase();

stats='top=10,left=10,width=500,height=500,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>Search Results</title></head>");
MsgBox.document.write ("<BODY BGCOLOR=#FFFFFF TEXT=#000000 LINK=#0000FF VLINK=#FF0000 ALINK=#FF9900><H2><CENTER><FONT COLOR=#0066FF FACE=arial>Search Results</CENTER></H2></FONT>") 
MsgBox.document.write ("<H3><FONT COLOR=#FF6928 FACE=arial>For the keyword:  "+Item+"<HR></FONT><FONT COLOR=#000000 FACE=arial>");
        for (var i=1; i <= Keyword[0]; i++) {
  	if(Item == Keyword[i]) {
	  Found = true;
	 MsgBox.document.write ("<H5>"+Descrip[i]+"<BR><A HREF="+Address[i]+" target="+Address[i]+">Click Here To View</A></H6>") 

        }
      }
      if(!Found)
MsgBox.document.write ("<H4>Sorry, Nothing Found</H4>") 
MsgBox.document.write ("<FORM><CENTER>") 
MsgBox.document.write ("<INPUT type='button' value=' Close ' class=sbutton onClick = 'self.close()'>") 
MsgBox.document.write ("</CENTER></FORM>")     }
    //    -->
    /*
</SCRIPT>
    <FORM NAME="form1">
<table>
<tr>
<td><B><FONT FACE=arial size=2>Search Our Site:</B></td>
<td><INPUT TYPE="text" NAME="searchfor" VALUE="" style="background:#FFD350;font-family:MS Sans serif,Tahoma,Helvetica;width:120px;height:20px;font-size:10pt;border-style:solid;border-width:1;border-color:#0099FF;color:#000000;"></FONT></td>
<td><INPUT TYPE="button" VALUE=" Search " onClick="checkDatabase()" class=sbutton></td>
</tr>
</table>
<P>
<B><A HREF="http://www.AceJS.com">AceJS.com</A> The JavaScript Directory</B>
</BODY>
</HTML>*/
