<!-- (c) B V Wood -->
function sa1(){  // No longer used
}
function si1(){
//Amazon UK
document.writeln("<BR>&nbsp;<A HREF='http://www.amazon.co.uk/exec/obidos/redirect-home?tag=thegardenwebcom&site=amazon' TARGET='amazon store uk tech'>Amazon UK</A>"); 
//Amazon USA
document.writeln("<BR>&nbsp;<A HREF='http://www.amazon.com/exec/obidos/redirect?tag=thegardenwebco08' TARGET='amazon store usa tech'>Amazon USA</A><BR>&nbsp;"); 
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/computers/links/>Computer Links</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/computers/shop/books/uk/>UK H/w & S/w Books</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/computers/shop/books/usa/>USA H/w & S/w Books</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/computers/events/uk/>UK Computer Events</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/computers/quizzes/multiple-choice/general-test-1/>Computer quiz</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/software/c-cpp/>C++</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/software/java/>JAVA</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/software/javascript/links/>JavaScript</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/software/jsp/resources/>JSP</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/software/unix/>UNIX</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/software/xml/about/>XML</A></P>");
//document.writeln("<P>&nbsp;<A HREF=http://www.quest4tech.net/software/books/reviews/>S/W Books</A>");
document.writeln("<P>&nbsp;<A HREF=http://www.quest4tech.net/computers/shop/books/uk/>UK S/W Book Search</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/computers/shop/books/usa/>USA S/W Book Search</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/databases/quizzes/multiple-choice/revision-test-1/>Database Quiz</A></P>");
document.writeln("<P>&nbsp;<A HREF=http://www.quest4tech.net/internet/links/>Internet Resources</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/internet/connection/uk/>UK Internet Connections</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/communications/protocols-services/terms/>Protocols & Services</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/communications/networks/ports/>Network ports</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/communications/networks/functions/>Network functions</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/communications/networks/layers/>Network layers</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/communications/books/search/uk/>UK Coms Book Search</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/communications/books/search/usa/>USA Coms Book Search</A>");
// document.writeln("<P>&nbsp;<A HREF=http://www.quest4tech.net/internet/domain-name/uk/>Choose Domain Name</A>");
document.writeln("<P>&nbsp;<A HREF=http://www.quest4tech.net/technical/links/uk/>UK Tech Links</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/technical/links/usa/>USA Tech Links</A></P>");
document.writeln("<P>&nbsp;<A HREF=http://www.quest4tech.net/games/online/>Games Online</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/entertainment/films-movies-tv/links/>Film Movie & TV Links</A>");
// document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/entertainment/shop/dvds/uk/>UK Entertainment DVDs</A>");
//document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/entertainment/shop/dvds/usa/>USA Entertainment DVDs</A>");
// document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/entertainment/systems/tv/plasma/for-sale/uk/under-£2500/>UK Plasma Screen TVs</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/sports/shop/books/uk/>UK Books on Sports</A></P>");
document.writeln("<P>&nbsp;<A HREF=http://www.quest4tech.net/finance/investment/links/uk/>UK Finance Links</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/finance/investment/links/usa/>USA Investment Links</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/finance/borrowing/mortgages/>Mortgage Calculator</A></P>");
document.writeln("<P>&nbsp;<A HREF=http://www.quest4tech.net/electronics/shop/books/uk/>UK Electronics Books</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/electronics/shop/books/usa/>USA Electronics Books</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/hardware/vhdl/>Hardware VHDL</A></P>");
document.writeln("<P>&nbsp;<A HREF=http://www.quest4tech.net/codes/equations/polynomials/>Codes</A></P>");
document.writeln("<P>&nbsp;<A HREF=http://www.quest4tech.net/internet/links/search-engines/top/>Top Search Engines</A>");
document.writeln("<BR>&nbsp;<A HREF=http://www.quest4tech.net/internet/links/search-engines/speciality/>Speciality Search Engines</A></P>");
//Line Break
document.writeln("<BR>");
}
function b1(){
   if (!document.referrer){
      bUk1();
      return true;
   }else {
      strRef=document.referrer;
      end = strRef.length;
      uk = false;
      for(i=1;i<end-2;i++){
         if ((strRef.substring(i,i+3)==".uk")||(strRef.substring(i,i+3)=="uk.")){     
            i=end-2;
            uk = true;
         }
      }
      for(i=1;i<end-3;i++){
         if (strRef.substring(i,i+4)==".net"){     
            i=end-3;
            uk = true;
         }
      }
      if (uk==true){bUk1();
      }else{bUsa1();
      } 
      return true;
   }
}
function b2(loc){
   if (!loc){
   bUk1();
   return true;
   }else {
      if (loc=="usa"){
	   bUsa1();
      }else{
	   bUk1();
      }
   return true; 
   }
}
function se1(){
ourSiteSearch();
stats_gathering();
}
function se(){
}
function bUsa1(){
var ar = new Array(5)
// jandr software
ar[0] = "<a href='http://click.linksynergy.com/fs-bin/click?id=MADf4UPq2zc&offerid=58654.10000934&subid=3&type=4'><IMG border=0 width=468 height=60 alt='J&R_software main_468x60' src='http://ad.linksynergy.com/fs-bin/show?id=MADf4UPq2zc&bids=58654.10000934&subid=3&type=4&gridnum=1'></a>"
// jandr appliances
ar[1] = "<a href='http://click.linksynergy.com/fs-bin/click?id=MADf4UPq2zc&offerid=58654.10000772&subid=3&type=4'><IMG border=0 width=468 height=60 alt='J&R_leap frog_468x60' src='http://ad.linksynergy.com/fs-bin/show?id=MADf4UPq2zc&bids=58654.10000772&subid=3&type=4&gridnum=1'></a>"
// X10 Wireless
ar[2] = "<a href=http://www.jdoqocy.com/click-1140387-10298820 target='buy home surveillance equipment'><img src=http://www.awltovhc.com/image-1140387-10298820 width=392 height=72 alt='Home Surveillance' border=0></a>"
// American Express
ar[3] = "<iframe width=468 height=60 scrolling=no frameborder=0 src='http://rcm.amazon.com/e/cm?t=thegardenwebco08&p=26&o=1&l=dl1&f=ifr'><map name=boxmap-b1><area shape=rect coords='350, 45, 468, 60' href='http://rcm.amazon.com/e/cm/privacy-policy.html?o=1'><area coords='0,0,10000,10000' href='http://www.amazon.com/exec/obidos/redirect?tag=thegardenwebco08&creative=92489&camp=8117&link_code=dl1&path=subst/misc/amazon-cobrand-cc/v3/marketing-from-associates-step1.html/ref%3Db1_assoc_26'></map><img src=http://rcm-images.amazon.com/images/G/01/associates/promotions/b1c-468x60.gif width=468 height=60 border=0 usemap=#boxmap-b1 alt='Amazon.com Platinum Visa Card'></iframe>"
//Endless
ar[4] = "<iframe src='http://rcm.amazon.com/e/cm?t=thegardenwebco08&o=1&p=26&l=ur1&category=endless&banner=00F1PGVDQDFE42VVDV02&m=endless&f=ifr' width=468 height=60 scrolling=no border=0 marginwidth=0 style=border:none; frameborder=0></iframe>"

var now = new Date()
var sec = now.getSeconds()
document.write(ar[sec %5])
}
function bUk1(){
var ar = new Array(11)
// PC World
ar[0] = "<a href='http://www.awin1.com/cread.php?s=96689&v=1598&q=71948&r=61947'target='Buy from PC World'><img src='http://www.awin1.com/cshow.php?s=96689&v=1598&q=71948&r=61947'border=0></a>"
//Game
ar[1] = "<script type=text/javascript src='http://impgb.tradedoubler.com/imp?type(js)pool(15686)a(394227)' charset=ISO-8859-1></script>"
//Dell
ar[2] = "<script type=text/javascript src='http://impgb.tradedoubler.com/imp?type(js)pool(322402)a(394227)' charset=ISO-8859-1></script>"
//Misco
ar[3]="<script type=text/javascript src='http://impgb.tradedoubler.com/imp?g(16384784)a(394227)' charset=ISO-8859-1></script>"
//1 & 1
ar[4]="<script language=JavaScript type=text/javascript src=http://impgb.tradedoubler.com/imp/691306/394227 charset=ISO-8859-1></script>"
//John Lewis
ar[5]="<script language=JavaScript type=text/javascript src=http://impgb.tradedoubler.com/imp/35824/394227 charset=ISO-8859-1 target='Buy from Johon Lewis'></script>"
//Abe Books
ar[6]="<script type='text/javascript' language=javascript src='http://www.jdoqocy.com/placeholder-1519536?target=Abe_Books&mouseover=N'></script>"
// Fasthosts
ar[7]="<a href='http://www.kqzyfj.com/click-1140387-10549300'target='Buy fast hosts broadband'><img src='http://www.awltovhc.com/image-1140387-10549300'width=468 height=60 alt='Click here for Fasthosts broadband'border=0/></a>"
// Pixmania
ar[8]="<a href='http://www.awin1.com/cread.php?s=191738&v=782&q=61220&r=61947'target='Buy from Pixamania'><img src='http://www.awin1.com/cshow.php?s=191738&v=782&q=61220&r=61947' border=0 alt='Click here to buy from Pixmania'></a>"
//ar[8]="<a href='http://www.awin1.com/cread.php?s=74349&v=782&q=61220&r=61947'target='Buy from Pixamania'><img src='http://www.awin1.com/cshow.php?s=74206&v=782&q=61089&r=61947' border=0 alt='Click here to buy from Pixmania'></a>"
// Play.com
ar[9]="<a href='http://www.awin1.com/cread.php?s=85869&v=1418&q=52251&r=61947'target='Buy from Play.com'><img src='http://www.awin1.com/cshow.php?s=85869&v=1418&q=52251&r=61947' border=0 alt='Click here to buy from Play.com'></a>"
// Kindle
ar[10]="<iframe src='http://rcm-uk.amazon.co.uk/e/cm?t=thegardenwebcom&o=2&p=13&l=ur1&category=kindle&banner=08Y7M8JJ11S1RDAHF682&f=ifr' width=468 height=60 scrolling=no border=0 marginwidth=0 style=border:none; frameborder=0></iframe>"
var now = new Date()
var sec = now.getSeconds()
document.write(ar[sec % 11])
}
function stUsa1(){
//ebay
document.writeln("<BR>&nbsp;&nbsp;<a href='http://rover.ebay.com/rover/1/711-53200-19255-0/1?type=1&campid=5335912528&toolid=10001&customid=5335912528'target='usa ebay auctions'>eBay USA</a>");
//Amazon USA
document.writeln("<BR>&nbsp;&nbsp;<A HREF='http://www.amazon.com/exec/obidos/redirect?tag=thegardenwebco08' TARGET=js-amazon-usa-1>Amazon USA</A>"); 
//Line Break
document.writeln("<BR>&nbsp;");
//jandr homepage
document.writeln("<BR>&nbsp;&nbsp;<A HREF='http://click.linksynergy.com/fs-bin/click?id=MADf4UPq2zc&offerid=17970.10000026&type=4&subid=0' target=jandr-home-t-1>J&R Music&Computer</A><IMG border=0 width=1 height=1 src='http://ad.linksynergy.com/fs-bin/show?id=MADf4UPq2zc&bids=17970.10000026&type=3&subid=0'>");
//X10 Wireless
document.writeln("<BR>&nbsp;&nbsp;<a href=http://www.jdoqocy.com/click-550520-10310234 target='X10 Wireless Security'>X10 Wireless Security</a><img src=http://www.ftjcfx.com/image-550520-10310234 width=1 height=1 border=0>");
document.writeln("<BR>");
}
function stUk1(){
//Pixmania
document.writeln("<BR>&nbsp;&nbsp;<a href='http://www.awin1.com/awclick.php?mid=782&id=61947'target=Pixmania>Pixmania</a>");
//Novatech
document.writeln("<BR>&nbsp;&nbsp;<a href='http://www.awin1.com/awclick.php?mid=957&id=61947'target='Novatech computers and accessories'>Novatech</a>");
//PC World
document.writeln("<BR>&nbsp;&nbsp;<a href='http://www.awin1.com/awclick.php?mid=1598&id=61947' target='Computers and accessories for sale'>PC World</a>");
//Dell
document.writeln("<BR>&nbsp;&nbsp;<a href='http://clkuk.tradedoubler.com/click?p=702&a=394227&g=19472'target='Buy Dell computers'>Dell Computers</a>");
document.writeln("<BR>");
//Misco
document.writeln("<BR>&nbsp;&nbsp;<a href='http://tracker.tradedoubler.com/click?p=18461&a=394227&g=447862' target='Misco js'>Misco</a>");
//Dixons
document.writeln("<BR>&nbsp;&nbsp;<a href='http://www.awin1.com/awclick.php?mid=1597&id=61947' target='dixons'>Dixons</a>");
//Line Break
document.writeln("<BR>&nbsp;");
//Apple Store
//document.writeln("<BR>&nbsp;&nbsp;<a href='http://tracker.tradedoubler.com/click?p=2554&a=394227&g=149303' target='Apple store'>Apple Store</a>");
//John Lewis
document.writeln("<BR>&nbsp;&nbsp;<a href='http://tracker.tradedoubler.com/click?p=1231&a=394227&g=19581' target=johnlewis-t-1>John Lewis</a>");
document.writeln("<BR>");
document.writeln("<BR>&nbsp;Mobile Phones");
// Carphone Warehouse
document.writeln("<BR>&nbsp;&nbsp;<A HREF='http://www.quest4tech.net/communications/special-offers/uk/carphone-warehouse/'target=carphone-stUk-1>Carphone Warehouse</a>");
// The Link
document.writeln("<BR>&nbsp;&nbsp;<a href='http://www.awin1.com/awclick.php?mid=1600&id=61947' target='mobile phones'>The Link</a>");
//Line Break
document.writeln("<BR>&nbsp;");
document.writeln("<BR>&nbsp;Games");
//GAME
document.writeln("<BR>&nbsp;&nbsp;<a href='http://tracker.tradedoubler.com/click?p=12813&a=394227&g=99750' target='Game programs for sale'>GAME</a>");
document.writeln("<BR>");
document.writeln("<BR>&nbsp;Auctions");
//ebay UK
document.writeln("<BR>&nbsp;&nbsp;<a href='http://rover.ebay.com/rover/1/710-53481-19255-0/1?type=1&campid=5335912528&toolid=10001&customid=5335912528'TARGET='uk ebay auctions'>eBay UK Auctions</a>");
document.writeln("<BR>");
document.writeln("<BR>&nbsp;Components");
//Currys Partmaster 
document.writeln("<BR>&nbsp;&nbsp;<a href='http://www.awin1.com/awclick.php?mid=1663&id=61947' target='spare parts'>Currys Partmaster</a>"); 
//Line Break
//document.writeln("<BR>&nbsp;");
//document.writeln("<BR>&nbsp;Finance");
document.writeln("<BR>");
document.writeln("<BR>&nbsp;Broadband");
//Fasthosts Broadband
document.writeln("<BR>&nbsp;&nbsp;<A href='http://www.tkqlhce.com/click-1140387-10548861'target='fasthosts broadband for sale'>Fasthost Broadband</A>");
//BT
document.writeln("<BR>&nbsp;&nbsp;<A href='http://www.dgm2.com/m/btbroad/t.asp?A=10911&I=6451' target='bt broadband'>BT Broadband</A>");
//Virgin Media
document.writeln("<BR>&nbsp;&nbsp;<a href='http://www.dgm2.com/m/telewest/t.asp?A=10911&I=9695'target='virgin cable broadband internet for the home'>Virgin Broadband/TV</A>");
document.writeln("<BR>");
document.writeln("<BR>&nbsp;Web Hosting & Names");
//Fasthost
document.writeln("<BR>&nbsp;&nbsp;<a href='http://www.anrdoezrs.net/click-1140387-10548857'target='Buy web hosting and domain names from fasthosts'>Fasthosts</a><img src='http://impgb.tradedoubler.com/imp?type(inv)g(1007881)a(394227)'>");
//1 and 1
document.writeln("<BR>&nbsp;&nbsp;<a href='http://tracker.tradedoubler.com/click?p=19622&a=394227&g=718369' target='1 and 1 web hosting, email and support js'>1 and 1</A>"); 
//123 Reg
document.writeln("<BR>&nbsp;&nbsp<a href='http://www.123-reg.co.uk/affiliate2.cgi?id=AF229384' TARGET='Buy web hosting and domain names here'>123 Reg</a>");
//Line Break
document.writeln("<BR>");
document.writeln("<BR>&nbsp;Books, CD's, Videos etc.");
//Amazon UK
document.writeln("<BR>&nbsp;&nbsp;<A HREF='http://www.amazon.co.uk/exec/obidos/redirect-home?tag=thegardenwebcom&site=amazon' TARGET=js-amazon-uk-1>Amazon UK</A>"); 
//Abe Books
document.writeln("<BR>&nbsp;&nbsp;<a href='http://www.kqzyfj.com/click-1140387-9867503' target='Abe new and secondhand books'>AbeBooks</a>");
document.writeln("<BR>&nbsp;");
}
function cSearch() {
var message = 'http://www.awin1.com/cread.php?awinmid=782&awinaffid=61947&clickref=search&p=http://www.pixmania.co.uk/uk/uk/r/'+document.cForm.a.value;
window.open(message,'Search','');
}
function sbUk1(){
document.write("<script language=JavaScript src=http://impgb.tradedoubler.com/imp/46066/394227 charset=ISO-8859-1></script>");
}
function hbUk(c){
//Dell
document.write('<CENTER><SCRIPT charset="utf-8" type="text/javascript" src="http://ws.amazon.co.uk/widgets/q?ServiceVersion=20070822&MarketPlace=GB&ID=V20070822/GB/thegardenwebcom/8002/a630f3b9-1a39-468b-b58c-379a0ca6e39d"> </SCRIPT> <NOSCRIPT><A HREF="http://ws.amazon.co.uk/widgets/q?ServiceVersion=20070822&MarketPlace=GB&ID=V20070822%2FGB%2Fthegardenwebcom%2F8002%2Fa630f3b9-1a39-468b-b58c-379a0ca6e39d&Operation=NoScript">Amazon.co.uk Widgets</A></NOSCRIPT></CENTER>');
}
//function ourSiteSearch(){
//document.write("<FORM method=GET action=http://www.google.com/search><TABLE WIDTH=155 Border=1 Bordercolordark=black bgcolor=#FFFFFF><tr><td><FONT FACE='Arial, Helvetica, sans-serif;' SIZE=2><B>Search our site:<B><BR><INPUT TYPE=text NAME=q size=13 maxlength=255 value=''><INPUT type=submit name=btnG VALUE=Go><input type=hidden name=domains value=http://www.quest4tech.net><input type=hidden name=sitesearch value=http://www.quest4tech.net></font></td></tr></TABLE></FORM>");
//}
function ourSiteSearch(){
document.write("<br /><table align=center valign=TOP bgColor=white border=2 cellPadding=0 cellSpacing=0><tr><td width=160 valign=center><FONT FACE='Arial, Helvetica, sans-serif;'SIZE=2>&nbsp;&nbsp;<b>UK Search</b> for products<br>&nbsp;&nbsp;appliances and deals<br /><center><form name=cForm onSubmit='return false'><input type=text name=a size=20><br><input type=button value=Go onClick=cSearch()></center></form></td></tr></table>");
}
function bki1(){
document.writeln("<CENTER><A HREF=http://www.quest4tech.net/computers/shop/books/uk/>UK Computer Hardware and Software Books</A></CENTER>");
}
// martial arts index 
function mai1(){
}
function stats_gathering(){
}
function testRegularExpression(){
  var regularExpression = document.getElementById("regExp").value;
  var testString = document.getElementById("testStr").value;
  var result = document.getElementById("result");        
  if (testString.match(regularExpression)){
      result.style.backgroundColor = "#AAFFAA";
      result.innerHTML="Matches!";
  } else {
      result.style.backgroundColor = "#FFAAAA";
      result.innerHTML="Fails";
  }
} 
