var myquiz=0

var myref=window.location.href
if (myref.indexOf("?")>-1)
{  msplit=myref.split("?")
   var rside=msplit[1]
   rside=rside+".html"
   location.replace(gothere)
}

var mylo=myref.toLowerCase()
var dolang=false
var langbox="<form name='langform'><select name='language'><option value='0'>LANGUAGE<option value='english'>English<option value='spanish'>Spanish<option value='french'>French<option value='portuguese'>Portuguese<option value='italian'>Italian<option value='german'>German<option value='japanese'>Japanese<option value='korean'>Korean<option value='chinese'>Chinese</select><input type=button value='GO' onClick='setlang()'></form>"

if (mylo.indexOf("onelis")>0)
{ alert("Onelis...Deseo que usted estaba aqui. Te quiero tanto.")
}

if (myref.indexOf("donated")>0)
{  alert("Thank you for your donation.\n\nIf you ordered course material, it will be sent priority mail.\n\nWhile you are waiting for this to arrive, please review the first class outline by clicking on the CD below and start learning today!")
   var mycd="<a href=\"edstep1.html\"><img src=\"http://eduhosting.org/pics/cd.gif\" border=0></a><p>"
}  else
{  var mycd=""
}

var mymeter="<script type=\"text/javascript\" language=\"JavaScript\">var site=\"sm5gempub\"</script>"
mymeter+="<script language=\"JavaScript\" src=\"http://sm5.sitemeter.com/js/counter.js?site=sm5gempub\"></script><br>"
mymeter+="<br><script>\ndocument.write(langbox)\n</script>"

var mybody="<script language=\"JavaScript\" src=\"http://eduhosting.org/langtran.js\"></script>"

mybody+="<body bgcolor=blue background=\"http://eduhosting.org/pics/edtop.gif\">"
if (myref.indexOf("ktime.h")>0)
{  mybody+="<script language=\"javascript\" src=\"http://eduhosting.org/edhook.js\"></script>"
}
mybody+="<table width=800><tr><td colspan=2 valign=top>"
mybody+="<img border=0 src=\"http://eduhosting.org/pics/spacer.gif\" tabindex=99 height=110 width=800></td>"
mybody+="<td rowspan=2 valign=top><img border=0 src=\"http://eduhosting.org/pics/spacer.gif\" tabindex=99 height=1 width=300><br>"
mybody+="<table bgcolor=a6caf0 background=\"http://eduhosting.org/pics/bgwater.gif\" width=200><tr><td valign=top><font size=-1 color=blue face=arial><i>Sponsored in part by:</i><hr>"
mybody+="<font size=+1>"
mybody+="<b>CRAIGSWORLD<br><a href=\"http://www.craigsworld.org\">"
mybody+="<img src=\"http://eduhosting.org/pics/earthbig.gif\" width=50 align=left border=0></a>"
mybody+=".ORG<font size=-1><br>"
mybody+="<a href=\"http://www.craigsworld.org\"><font color=blue>FREE GLOBAL CLASSIFIED ADS</a><p></b></td></tr></table>"
mybody+="<!-- Search Google -->"
mybody+="<FORM method=GET action=\"http://www.google.com/search\">"
mybody+="<TABLE bgcolor=\"000088\"><tr><td valign=top>"
mybody+="<A HREF=\"http://www.google.com/\">"
mybody+="<IMG SRC=\"http://www.google.com/logos/Logo_40wht.gif\" "
mybody+="border=\"0\" ALT=\"Google\" width=80 align=\"absmiddle\"></A><br>"
mybody+="<INPUT TYPE=text name=q size=15 maxlength=255 value=\"\"><br>"
mybody+="<INPUT type=submit name=btnG VALUE=\"Search\">"
mybody+="</td></tr></TABLE>"
mybody+="</FORM>"
mybody+="<!-- Search Google -->"
mybody+="<a href=\"javascript:classwf()\"><img src=\"http://goldpact.com/classwftall.jpg\" border=0></a><p><hr><p><font color=white><u><b><br>Donations to support<br>this site are Welcome!</u></b><font size=-1><p>"
mybody+="If you would like to donate any amount to the operation of this website, your donation is appreciated. Donations of $100.00 or more receive the complete Kids Computer Kamp Video Set teaching students how to build and configure PC's, set up networks, websites and dedicated and virtual web host servers.<p><hr>Please mail your donation to:<p><b>KCK-Attn: Terry<br>P.O. Box 24177<br>San Francisco, CA 94124-U.S.A.<p>"

mybody+="<a href=\"javascript:gopi()\">"
mybody+="<img src=\"http://eduhosting.org/pics/piban.jpg\"></a>"
mybody+="<iframe src=\"startkck.html\" width=350 height=400></iframe>"
mybody+="</td></tr>"

mybody+="<tr><td width=100 bgcolor=\"DarkBlue\" align=right valign=top><img border=0 src=\"http://eduhosting.org/pics/spacer.gif\" tabindex=99 width=160 height=1><br>"
mybody+=mymeter
mybody+="<hr>"
if ((myref.indexOf("index")<0) || (myref.indexOf("/ed")>-1))
{  mybody+="<a href=\"http://www.eduhosting.org\"><font color=white size=-1>Home Page</a><p>"
}  else
{  
   mybody+="<a href=\"javascript:external.AddFavorite('http://www.eduhosting.org','EDUHOSTING-FREE WEB HOSTING FOR TEACHERS')\"><font color=white size=-1>Bookmark</a><p>"
   mybody+="<A HREF=\"javascript:\"ONCLICK=\"javascript:this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.eduhosting.org/')\" TARGET=_self><font color=white size=-1>Set as Home Page</a><p>"
}
mybody+=mycd
// mybody+="<a href=\"tsunami.html\"><font color=white size=-1>TSUNAMI RELIEF</a><p>"
mybody+="<a href=\"youthctr.html\"><font color=white size=-1>Vision</a><p>"
mybody+="<a href=\"edhelp.html\"><font color=white size=-1>Contact</a><p>"
mybody+="<a href=\"javascript:goabout()\"><font color=white size=-1>About Us</a><p>"
mybody+="<a href=\"edhost.html\"><font color=white size=-1>Hosting Plans</a><p>"
mybody+="<a href=\"kcklabs.html\"><font color=white size=-1>Free PCs</a><p>"
mybody+="<a href=\"seniors.html\"><font color=white size=-1>Classes and Jobs</a><p>"
mybody+="<a href=\"edmiss.html\"><font color=white size=-1>Missing Kids</a><p>"
mybody+="<a href=\"hostel.html\"><font color=white size=-1>Hostel Jobs</a><p>"
mybody+="<a href=\"seniors.html\"><font color=white size=-1>Cash for seniors</a><p>"
mybody+="<a href=\"girlclub.html\"><font color=white size=-1>Battered Women's<br>Resources</a><p>"
mybody+="<a href=\"ednews.html\"><font color=white size=-1>News</a><p>"
mybody+="<a href=\"eddload.html\"><font color=white size=-1>Downloads</a><p>"
mybody+="<a href=\"eddonate.html\"><font color=white size=-1>Donations<br><b><font color=yellow>WANTED<font color=white></b></a><p>"
mybody+="<a href=\"edhouse.html\"><font color=white size=-1>Housing</a><p>"
mybody+="<a href=\"http://www.tpub.com/content/neets/\"><font color=white size=-1>Electronic Class Series</a><p>"
mybody+="<a href=\"edcoast.html\"><font color=white size=-1>Remote Schools</a><p>"
mybody+="<a href=\"edjobs.html\"><font color=white size=-1>Jobs</a><p>"
mybody+="<OBJECT id=\"ODDBANNER\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" WIDTH=\"125\" HEIGHT=\"125\"> <PARAM NAME=\"movie\" VALUE=\"http://banner.oddcast.com/banners/banner.php?bannerId=27&affiliateId=24365&promotionId=1&link=http%3A%2F%2Fwww.oddcast.com%2Faffiliates%2Fentry%2F%3FbannerId%3D27%26affiliateId%3D24365%26promotionId%3D1&newPage=1&media=http%3A%2F%2Fbanner.oddcast.com%2Fbanners%2F27%2F&\"> <PARAM NAME=\"quality\" VALUE=\"high\"> <PARAM NAME=\"scale\" VALUE=\"noborder\"> <PARAM NAME=\"bgcolor\" VALUE=\"#FFFFFF\"> <EMBED src=\"http://banner.oddcast.com/banners/banner.php?bannerId=27&affiliateId=24365&promotionId=1&link=http%3A%2F%2Fwww.oddcast.com%2Faffiliates%2Fentry%2F%3FbannerId%3D27%26affiliateId%3D24365%26promotionId%3D1&newPage=1&media=http%3A%2F%2Fbanner.oddcast.com%2Fbanners%2F27%2F&\" swLiveConnect=\"true\" NAME=\"ODDBANNER\" quality=\"high\" scale=\"noborder\" bgcolor=\"#FFFFFF\" WIDTH=\"125\" HEIGHT=\"125\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"> </EMBED> </OBJECT>"

var copyright="<table bgcolor=white border=3 cellpadding=5><tr><td valign=top><center>"
copyright+="</td><td align=right valign=top>"
copyright+="<img src=\"http://eduhosting.org/pics/bfly.gif\" align=right border=0\" onClick=\"seecorp()\">"
copyright+="<img src=\"http://eduhosting.org/pics/spacer.gif\" width=600 height=1><br>"
copyright+="<font size=-2 face=arial>(c) 1983-"
var today=new Date()
var anhour=new Date()
anhour.setTime(today.getTime( ) + 1000*60*60)

var myyear=today.getYear()
copyright+=myyear
copyright+=" prepared by Successful California Accountant Foundation: "
copyright+="a nonprofit educational corporation<br>providing free labs for mentally challenged, teens, single parents and seniors and free PC's for Kids since 1983.</td></tr></table>"

function classwf()
{ window.open('http://goldpact.com/classwf.html')
}

function seecorp()
{ var ok=prompt("Mission","")
  if (ok!="labsandhousing")
  {  mybody=""
     location.replace("index.html")
  }  else
  {  window.open("corp.html?passed")
  }
}

function donate()
{ buylab()
}

function premier()
{ alert("Free approved classes/websites have unlimited bandwidth, drive space, CGI/PHP/SQL etc. and cost less than $1.00 per millenium.\n\nShared sites have unlimited bandwidth, drive space and application tools: tell us what you need!\n\nPaid Premier Sites start at $50.00 per month for up to 5 gigs of space and also come with monthly unlimited upload/download, FTP, Perl, PHP, SQL, Email and other utilities: just ask!")
}

function ckpass(pass)
{ pw=new Array(
  "kids",
  "computer",
  "kamp",
  "labs",
  "are",
  "fun")
  var mypass=pw[pass]
  var ok=prompt("Class password","")
  if (ok!=mypass)
  {  alert("You receive a new password with each class you complete.\n\nPlease complete the previous class and send your results to grademe@eduhosting.org")
     location.replace("index.html")
  }
}

function showme()
{ document.mepic.src="http://eduhosting.org/pics/mebw.jpg"
}

function showhome()
{ document.mepic.src="http://eduhosting.org/pics/myhome.jpg"
}

function buylab()
{  var msg="To make a donation to KCK and receive EDU material, please mail a check to:\n\nKCK-Attn: Terry\nP.O. Box 24177\nSan Francisco, CA 94124-U.S.A.\n\nThank you."
   alert(msg)         
}

function buysap(pass)
{  var msg="To pay for your sentence alternative fees, please send your payment of $"+pass+" to:\n\nKCK-Attn: Cheri\nP.O. Box 561\nEl Granada, CA 94018-U.S.A.\n\nThank you."
   alert(msg)         
}

function showkck()
{ window.open("http://www.kck21stcentury.com/lab.html")
}

function showref()
{ window.open("myrefs.html?edu")
}


function gowgad()
{ window.open("http://eduhosting.org/windpics/wgban.html",'','toolbar=no, scrollbars=no, location=no, resizeable=no, height=600 width=425')
}

function goboot()
{ window.open("http://bootdisk.com")
}

function getboot()
{ window.open("http://eduhosting.org/pics/boot622.exe")
}


function gobios()
{ window.open("http://eduhosting.org/kckbios.html")
}

function hitquiz(pass)
{ myquiz=pass
}


function kckquiz()
{ if (myquiz==1)
  {  alert("CONGRATULATIONS!\n\nOnly with raw persistence could you find the key by clicking the photo repeatedly.\n\nNow here's a quiz for thee...\n\nA student is plugging in a hard drive and wants a seperate cable for their CD ROM. Should the settings on the CD ROM be MASTER or SLAVE?\n\nHit ENTER then type your answer.")
     var ok=prompt("MASTER or SLAVE","")
     var ok2=ok.toLowerCase()
     if (ok2!="master")
     {  alert("Please try again.")
        return
     }
     alert("Congratulations.")
     window.location="kck101h.html"
     return
  }
  alert("ooops...you missed a big HINT on the overview page...\n\nPersistence and determination while digging for keys, hints and tricks to unanswered questions should be your BIGGEST skills while working with computers...and in life.\n\nPlease try again...pretty please...")
  go101a()
}

function go101a()
{  window.location="kck101a.html?again"
}

function showo()
{ window.open("../data/orders.html")
}

function gowind()
{ window.open("http://windgenzen.com")
}

function gomyths()
{ window.open("http://eduhosting.org/windpics/myths.html")
}

function gopi()
{ window.open("http://eduhosting.org/edpi.html")
}

function gopta()
{ window.open("http://www.americansforthearts.org")
  window.open("http://www.pta.org/parentinvolvement/adcouncil/index.asp")
}

function godura()
{ var test=prompt("Your last name","")
  var test2=test.toLowerCase()
  if (test2=="gary")
  {  window.open("http://eduhosting.org/data/podura.doc")
  }  else
  {  alert("Incorrect answer")
  }
}

function popmap(pass)
{ if (pass=='1')
  {  window.open("http://eduhosting.org/popmap.html",'','scrollbars=no, toolbar=no, location=no, resizeable=no, height=510, width=470')
  }  else
  {  window.open("http://eduhosting.org/kck101.html")
  }
}
function addhands()
{ var retm=""
  if (myref.indexOf('again')>0)
  {  retm="<img src=\"http://eduhosting.org/pics/rhand.gif\">"
  }
  return retm
}

function gosee(pass)
{ window.open(pass)
}

function getkids()
{ window.open("kckfly.html")
}

function getlog()
{ window.open("kcklog.html")
}

function golevel()
{  window.open("kcklevel.html",'','scrollbars=yes, toolbar=no, location=no, resizeable=yes, height=510, width=470')
}

function gomin()
{ window.open("minutes.doc")
}

function gowdriver()
{ window.open("http://eduhosting.org/pics/wdriver.wmv")
}
function setCookie(cookLbl, value, expire) 
{  document.cookie=cookLbl + "=" + escape(value) 
   + ((expire==null) ? "" : ("; expires=" + expire.toGMTString( )))
}


function getCookie(cookLbl) 
{  var search=cookLbl + "="
   if (document.cookie.length>0)
   {  offset=document.cookie.indexOf(search)
      if (offset!=-1) 
      {  offset +=search.length
         end=document.cookie.indexOf(";",offset)
         if (end==-1)
            end=document.cookie.length
            return unescape(document.cookie.substring(offset, end))       
       }
   }
}

function goabout()
{ window.open("http://eduhosting.org/edabout.html")
  window.open("http://eduhosting.org/sob.html")
}
