function dohash(pass) {
   var alpha="abc0123456789defghijklmnopqrstuvwxyz";
   var h=0;
   for (i=0;i<pass.length;i++)
    h=h*7+alpha.indexOf(pass.substring(i,i+1).toLowerCase(),0);
   return h; 
}

// Login
function Login() {
var done=0;
var h=dohash(document.login.password.value);
if (h==552014)			{ document.location.href="edu/CM/Border/C" + h + "/index.html"; done=1; }
if (h==331891)			{ document.location.href="edu/RB/BargelloSeasons/C" + h + "/index.html"; done=1; }
if (h==3405857)			{ document.location.href="edu/FG/EQ7AdvancedLayouts/C" + h + "/index.html"; done=1; }
if (h==2818948)			{ document.location.href="edu/EB/InspiredToDesign/C" + h + "/index.html"; done=1; }
if (h==83470)				{ document.location.href="edu/NC/CelticTablerunner/C" + h + "/index.html"; done=1; }
if (h==551389)			{ document.location.href="edu/LK/PerfectPurse/C" + h + "/index.html"; done=1; }
if (h==270599)			{ document.location.href="edu/JW/BeyondBasicDigitizing/C" + h + "/index.html"; done=1; }
if (h==16123100)		{ document.location.href="edu/MMcW/CottonDyeing/C" + h + "/index.html"; done=1; }
if (h==2179309)			{ document.location.href="edu/SB/FlowerPower/C" + h + "/index.html"; done=1; }
if (h==3473435)			{ document.location.href="edu/RB/ToteThatMat/C" + h + "/index.html"; done=1; }
if (h==14203398)		{ document.location.href="edu/CM/Scratch/C" + h + "/index.html"; done=1; }
if (h==300693)			{ document.location.href="edu/FG/EQ7Sampler/C" + h + "/index.html"; done=1; }
if (h==1841637)			{ document.location.href="edu/LS/MermaidJacket/C" + h + "/index.html"; done=1; }
if (h==297926)			{ document.location.href="edu/LK/OzarkGarden/C" + h + "/index.html"; done=1; }
if (h==3004367)			{ document.location.href="edu/LyK/PlayingWithPaint/C" + h + "/index.html"; done=1; }
if (h==14273)				{ document.location.href="edu/CM/MachineQuilting/C" + h + "/index.html"; done=1; }
if (h==3631858)			{ document.location.href="edu/MB/ArtistsRevisited/C" + h + "/index.html"; done=1; }
if (h==46969)				{ document.location.href="edu/JW/BeginningMachineEmbroidery/C" + h + "/index.html"; done=1; }
if (h==15673513)		{ document.location.href="edu/DC/GoodbyeToTheGrid/C" + h + "/index.html"; done=1; }
if (h==294151)			{ document.location.href="edu/NC/Hawaiian101/C" + h + "/index.html"; done=1; }
if (h==45641)				{ document.location.href="edu/DG/PaperPiecedParadise/C" + h + "/index.html"; done=1; }
if (h==13345)				{ document.location.href="edu/EB/WorkingInSeries/C" + h + "/index.html"; done=1; }
if (h==26255950)		{ document.location.href="edu/LL/ReversibleQuilts/C" + h + "/index.html"; done=1; }
if (h==5393849257)	{ document.location.href="edu/MMcW/TeaAndSpices/C" + h + "/index.html"; done=1; }
if (h==15686749)		{ document.location.href="edu/RB/StillLife/C" + h + "/index.html"; done=1; }
if (h==429653)			{ document.location.href="edu/FG/T-ShirtQuilts/C" + h + "/index.html"; done=1; }
if (h==45457)				{ document.location.href="edu/CM/ColorCompanions/C" + h + "/index.html"; done=1; }
if (h==9485672)			{ document.location.href="edu/MS/CurvedPiecing/C" + h + "/index.html"; done=1; }
if (h==51366)				{ document.location.href="edu/DC/DesignerPinwheels/C" + h + "/index.html"; done=1; }
if (h==1356084099)	{ document.location.href="edu/LS/PeopleInPlaces/C" + h + "/index.html"; done=1; }
if (h==24576)				{ document.location.href="edu/CTS/TessellatingStars/C" + h + "/index.html"; done=1; }
if (h==32421011)		{ document.location.href="edu/SB/ToBead/C" + h + "/index.html"; done=1; }

if (h==23792062)		{ document.location.href="edu/JB/PhotographingQuilts/C" + h + "/index.html"; done=1; }

if (done==0) 
      { alert("Sorry, invalid password!");
        document.login.password.value="";
        document.login.password.focus();
      }
else         
      { $.modal.close(); }
} // end Login


