// Define Database Options
Keyword = new Object();
Descrip = new Object();
Address = new Object();
Keyword[0] = 6 //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] = "0509161"
Descrip[1] = "Ruim en comfortabel wonen in de binnenstad van Kampen"
Address[1] = "http://www.hometour.nl/voorbeeld/start.htm"

Keyword[2] = "kampen"
Descrip[2] = "Uniek en ruim wonen in een verbouwde sigarenfabriek in het centrum van Kampen"
Address[2] = "http://www.hometour.nl/huis/index.htm"

Keyword[3] = "kampen"
Descrip[3] = "Ruim en comfortabel wonen in de binnenstad van Kampen"
Address[3] = "http://www.hometour.nl/voorbeeld/start.htm"

Keyword[4] = "8261HZ14"
Descrip[4] = "Uniek en ruim wonen in een verbouwde sigarenfabriek in het centrum van Kampen"
Address[4] = "http://www.hometour.nl/huis/index.htm"

Keyword[5] = "61"
Descrip[5] = "Uniek en ruim wonen in een verbouwde sigarenfabriek in het centrum van Kampen"
Address[5] = "http://www.hometour.nl/pages/index.php?option=com_estateagent&act=object&task=showEO&id=1#"

Keyword[6] = "mambo"
Descrip[6] = "Uniek en ruim wonen in een verbouwde sigarenfabriek in het centrum van Kampen"
Address[6] = "http://www.hometour.nl/voorbeeld/start.htm"

  function checkDatabase() {

      var Found = false
      var Item = document.forms[0].searchfor.value.toLowerCase();

stats='top=10,left=10,width=700,height=400,toolbar=no,location=no,directories=no,status=no,menubar=no,' 
stats += 'scrollbars=yes,resizable=yes' 
MsgBox = window.open ("","msgWindow",stats) 

MsgBox.document.write('<?xml version=\"1.0\" encoding=\"iso-8859-1\"?> <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> <html> <head> <title>HomeTour, een ruimere kijk in uw huis</title> <link rel=\"stylesheet\" type=\"text/css\" href=\"templates/hometour/css/template_css.css\" media=\"all\" /> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\" /> <meta name=\"description\" content=\"Presentatie van een luxe en ruim appartement in de binnenstad van Kampen\" /> <meta name=\"keywords\" content=\"te koop,appartement,luxe,Kampen,binnenstad,259000,groot,luxe badkamer,ruime woonkamer,complete inbouwkeuken\"/> <meta name=\"robots\" content=\"ALL\" /> <meta name=\"resource-type\" content=\"document\" /> <meta name=\"revisit-after\" content=\"14 days\" /> <meta name=\"classification\" content=\"breedesteeg\" /> <meta name=\"rating\" content=\"General\" /> <meta name=\"copyright\" content=\"rill\" /> <meta name=\"author\" content=\"rill\" /> <meta name=\"language\" content=\"nl\" /> <script language=\"JavaScript\"> function statusco() { window.status = \" © HomeTour; een ruimere kijk in uw huis \"; setTimeout(\"statusco()\", 3); } statusco(); </script> </head> <body class=\"back\" style=\"margin: 0px\" > <table width=\"744\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <td width=\"744\" height=\"10\" class=\"body\"></td> </tr> </table> <table width=\"744\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <td width=\"1\" height=\"3\" class=\"lijnlinks\"></td> <td width=\"742\" height=\"3\" class=\"lijnboven\"></td> <td width=\"1\" height=\"3\" class=\"lijnrechts\"></td> </tr> </table> <table cellSpacing=\"0\" cellPadding=\"0\" width=\"744\" align=\"center\" border=\"0\"> <tr> <td class=\"body\" width=\"744\" height=\"3\"></td> </tr> </table> <table width=\"744\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <td width=\"1\" class=\"lijnlinks\"></td> <td width=\"742\"><img alt=\"midden\" src=\"templates/hometour/images/voorzijde_naam_742_145_hometour_subtekst.jpg\" /></td> <td width=\"1\" class=\"lijnrechts\"></td> </tr> </table> <table width=\"744\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <td width=\"744\" height=\"3\" class=\"body\"></td> </tr> </table> <table width=\"744\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <td width=\"1\" height=\"1\" class=\"lijnlinks\"></td> <td width=\"742\" height=\"1\" class=\"lijnboven\"></td> <td width=\"1\" height=\"1\" class=\"lijnrechts\"></td> </tr> </table> <table cellSpacing=\"0\" cellPadding=\"0\" width=\"744\" align=\"center\" border=\"0\"> <tr> <td class=\"lijnlinks\" width=\"1\" height=\"3\"></td> <td class=\"lijnonder\" width=\"742\" height=\"3\"></td> <td class=\"lijnrechts\" width=\"1\" height=\"3\"></td> </tr> </table> <table cellSpacing=\"0\" cellPadding=\"0\" width=\"744\" align=\"center\" border=\"0\"> <tr> <td class=\"body\" width=\"744\" height=\"3\"></td> </tr> </table> </body> </html> ');

MsgBox.document.write ("<table cellSpacing=\"0\" cellPadding=\"0\" width=\"744\" align=\"center\" border=\"0\"> <tr> <td class=\"menutext\" width=\"744\" height=\"3\">U zocht op:  "+Item+"<br />De volgende huizen werden gevonden:</td> </tr> </table><br />");
        for (var i=1; i <= Keyword[0]; i++) {
  	if(Item == Keyword[i]) {
	  Found = true;
MsgBox.document.write ("<table cellSpacing=\"0\" cellPadding=\"0\" width=\"744\" align=\"center\" border=\"0\"> <tr> <td class=\"menutext\" width=\"744\" height=\"3\">"+Descrip[i]+"<br /><A HREF="+Address[i]+" ><img alt=\"info\" src=\"templates/hometour/images/buttons/pijl_verder_rood.gif\" border=\"0\" /></A></td> </tr> </table>");
        }
      }
      if(!Found)
MsgBox.document.write ("<table cellSpacing=\"0\" cellPadding=\"0\" width=\"744\" align=\"center\" border=\"0\"> <tr> <td class=\"menutext\" width=\"744\" height=\"3\">Sorry, er voldoet geen huis aan uw zoekaanvraag:  "+Item+"<br />Probeert u het met een andere zoekopdracht.</td> </tr> </table><br />");
MsgBox.document.write ("<FORM><CENTER>") 
MsgBox.document.write ("<INPUT type='button' value=' Venster sluiten ' class=sbutton onClick = 'self.close()'>") 
MsgBox.document.write ("</CENTER></FORM>")     }
    //    -->



