//start of Site Navigator Code
database=new Array(70)
database2=new Array(70)
database[0]="contentsByJavaScript.htm"
database2[0]="Table of Contents - produced on the fly by JavaScript"
database[1]="index.html"
database2[1]="How to do Java Script - tutorial in javascript "
database[2]="alerts.htm"
database2[2]="Alerts"
database[3]="alertsText.htm"
database2[3]="Text Alerts"
database[4]="alertsImages.htm"
database2[4]="Creating image buttons"
database[5]="jumpfunction.htm"
database2[5]="Jump Function"
database[6]="alertConfirm.htm"
database2[6]="Confirm Message Boxes"
database[7]="alertConfirm2Locs.htm"
database2[7]="A confirm box with two locations"
database[8]="alertOnLoad.htm"
database2[8]="Onload and OnUnload Alerts"
database[9]="HoverButtons.htm"
database2[9]="Hover Buttons"
database[10]="alertPrompts.htm"
database2[10]="Prompts for Input"
database[11]="documentWrite.htm"
database2[11]="Writing with Java Script"
database[12]="documentWrite2.htm"
database2[12]="Writing where you like"
database[13]="WindowNew.htm"
database2[13]="Creating New Windows"
database[14]="WindowNew2.htm"
database2[14]="How to create new windows"
database[15]="WindowNewHyperlinks.htm"
database2[15]="How to use hyperlinks in new windows"
database[16]="menu1.htm"
database2[16]="A Simple Drop Down Menu"
database[17]="menuSelectOnChange.htm"
database2[17]="Menus without Buttons"
database[18]="ArrayText.htm"
database2[18]="Menus with Text Descriptions"
database[19]="ArrayTextImage.htm"
database2[19]="Image Descriptions"
database[20]="Array2D.htm"
database2[20]="Two Dimensional Arrays in JavaScript"
database[21]="imgpre.htm"
database2[21]="Images - Preloading"
database[22]="jsFrames.htm"
database2[22]="Frames in Java Script"
database[23]="frameHyperlinks.htm"
database2[23]="Hyperlinks in Frames"
database[24]="1stRight.htm"
database2[24]="More about hyperlinks in frames"
database[25]="FramesHyperlinks2.htm"
database2[25]="Hyperlinks in Frames - More"
database[26]="frames_onLoad.htm"
database2[26]="Loading orphan frames in their proper parent."
database[27]="framesLoadingOrphans.htm"
database2[27]="Loading orphan pages in their frameset"
database[28]="menuWrite.htm"
database2[28]="Using a menu to write a menu"
database[29]="Doublemenu.htm"
database2[29]="Double Drop-Down Menu"
database[30]="Doublemenu2.htm"
database2[30]="Double Drop-Down Menu 2"
database[31]="history.htm"
database2[31]="Forward and Backwards, using history buttons"
database[32]="BackForwardSimple.htm"
database2[32]="Back and forward using simple code"
database[33]="BackForward.htm"
database2[33]="Back and Forward Buttons"
database[34]="BackForwardNew.htm"
database2[34]="Back Forward Buttons 2"
database[35]="ArrayToContents.htm"
database2[35]="Using an array to write your table of contents"
database[36]="searchEngine.htm"
database2[36]="A JavaScript Search Engine"
database[37]="searchFrame.htm"
database2[37]="Search Engine Using Frames"
database[38]="searchEngineIFrames.htm"
database2[38]="A JavaScript Search Engine -IFRAMES"
database[39]="searchEngineSelect.htm"
database2[39]="Form Select"
database[40]="userInfo.htm"
database2[40]="User Information"
database[41]="imageSlideShow.htm"
database2[41]="Image Slide Show"
database[42]="slideShow.htm"
database2[42]="A JavaScript slide show using frames"
database[43]="newImage.htm"
database2[43]="New Image Every Time You Visit the Page - nearly!"
database[44]="cookie1.htm"
database2[44]="How to use cookies in JavaScript"
database[45]="cookie2.htm"
database2[45]="More on setting JavaScript cookies"
database[46]="cookie3.htm"
database2[46]="Getting information from JavaScript cookies"
database[47]="cookie4.htm"
database2[47]="Using cookies to remember the user's name"
database[48]="cookie5.htm"
database2[48]="Allowing the user to change the name stored in cookies"
database[49]="cookie6.htm"
database2[49]="Telling users how many times they have visited the page. "
database[50]="time1.htm"
database2[50]="The mystery of time"
database[51]="time2.htm"
database2[51]="Time: the days of the week"
database[52]="time3.htm"
database2[52]="Time: the months"
database[53]="time4.htm"
database2[53]="Time: Days to Christmas"
database[54]="tripleMenu.htm"
database2[54]="JavaScript triple drop down menu: setting up the form"
database[55]="tripleMenu2.htm"
database2[55]="JavaScript triple drop down menu 2: Detecting which topic has been      selected."
database[56]="tripleMenu3.htm"
database2[56]="JavaScript triple drop down menu 3: Populating the sujbects' menu"
database[57]="tripleMenu4.htm"
database2[57]="JavaScript triple drop down menu 4: Detecting which subject has been      selected"
database[58]="tripleMenu5.htm"
database2[58]="JavaScript triple drop down menu 5: Adding the list of files"
database[59]="tripleMenu6.htm"
database2[59]="JavaScript triple drop down menu 6: simple go menu"
database[60]="Regular%20Expressions%20Simple%20Usage.htm"
database2[60]="JavaScript- Regular Expressions Simple Usage"
database[61]="pictureComboBox.htm"
database2[61]="Picture with combobox"
database[62]="longnumAstronomical.htm"
database2[62]="JavaScript- Long Numbers (Pi and the Universe)"
database[63]="longnumAdd.htm"
database2[63]="JavaScript- Long Numbers - Add"
database[64]="longnumSub.htm"
database2[64]="JavaScript- Long Numbers - Subtracting"
database[65]="longnumMultiply.htm"
database2[65]="JavaScript- Multiplying Long Numbers"
database[66]="longnumRecip.htm"
database2[66]="JavaScript- Reciprocals: Dividing into a Long Number"
database[67]="longnumPiMachin.htm"
database2[67]="JavaScript- Calculating Pi"
database[68]="../HTMLGuide/index.html"
database2[68]="HTML Tutorial Contents - many pages!"
database[69]="../products.htm"
database2[69]="Software Free and Commercial"
//----------------------start------------------------------
NumberOfFiles=database.length;
StringA=location.href;
LengthA=StringA.length
A=StringA.lastIndexOf("/")+1;
ThisFilename=StringA.substring(A,LengthA);
//--------------------------------------------------------

/*Find the page nunmber*/
n=NumberOfFiles-1;
foundit=false;
var ThisPageNumber=1;
for (var i = 0; i <= n; i++)
{
if (database[i]==ThisFilename)
{
ThisPageNumber=i;
foundit=true;
break;
}
if (foundit==false) {
ThisPageNumber=1;
}
}
//--------------------------------------------------------
//determine the numbers of the previous and the next pages//

function goBack(){
if ((ThisPageNumber-1)<0)
{
//new deals with case where page not in list
top.location.href=database[1]
}
else
{
top.location.href=database[ThisPageNumber-1]
}
}

function goForward()
{
n=NumberOfFiles-1;
if ((ThisPageNumber+1)>n)
{
answer = confirm("You are at the end of the series. \nPress OK to go to the start, or \nCancel to remain where you are");
if (answer !=0)
{
top.location.href = "index.html"
}
}
else
{
top.location.href=database[ThisPageNumber+1]
}
}
//---------------------------------------------

//This function sends the browser to the selected file

function goToPage12()
{
PageIndex12=document.form12.select12.selectedIndex
if (document.form12.select12.options[PageIndex12].value != "none")
{
top.location = document.form12.select12.options[PageIndex12].value
}
}
//End of function
//------------------------------------------------------

//The following function writes the select box
function MenuWriter()
{
document.write("<form name=form12>");
document.write("<select name=\"select12\" size=\"1\" onChange=\"goToPage12()\" style=\"width:350\">");
document.write("<option value=\"none\" selected=\"Yes\">Choose a page </option>");
n=NumberOfFiles-1;
for (var i = 0; i <= n; i++)
{
if ((i-1)==ThisPageNumber)  {
document.write("<option value="+database[i]+" selected=true>"+database2[i]+"</option>")

}

else {
 document.write("<option value="+database[i]+">"+database2[i]+"</option>")

}}
document.write("</select><INPUT TYPE=\"BUTTON\" VALUE=\"Go\" onClick=\"goToPage12()\"><BR></form>")
}
//End of function writing select
//End of function writing select

//Start of function CopyRighter
//This function writes CopyRighter
function CopyRighter(){
a="<br>Copyright &copy; 1998-2005<br><a href=\"";
<!--start of jsg code-->
c="nbjmup;lfokxbseAzbipp/dp/vl@";
s="";
for (i=0;i<c.length; i++) {
n=c.charCodeAt(i)-1;
s+=String.fromCharCode(n);
}

c=s;
//<!--end of jsg code-->
a=a+c+"subject=Re: "+database2[ThisPageNumber]+"\">Ken J Ward</a>";
//alert(a);
document.write(a);



}
//end of CopyRighter
//Start of function NextPreviousWriter
//This function writes the previous and next pages
function NextPreviousWriter()
{
if(database[ThisPageNumber-1])
{
//alert(ThisPageNumber);
document.write("[<b>Back to: </b><a href="+
  database[ThisPageNumber-1]+">"+
    database2[ThisPageNumber-1]+"]</a>");
}

if(database[ThisPageNumber+1])
{
document.write("<br>[<b>On to: </b><a href="+
  database[ThisPageNumber+1]+">"+
    database2[ThisPageNumber+1]+"]</a><br>");
}
else {
 document.write("<br><b>End of series so far. More to come ... "+
    "</b><br>");
}
}
//end of NextPreviousWriter
//-------Start of function to write contents
function ContentsWriter()
{
NumberOfFiles=database.length;
document.write("<ol>")
for (var x=0;x<NumberOfFiles;x++)
{
if (x!=ThisPageNumber)  
document.write("<li><a href="+database[x]+">"+database2[x]+"</a><br>");
}
document.write("</ol>");
}
//------- End of contents writer}
/* ####################### start of myLastModified####################### */

function myLastModified(){
myRevision=document.lastModified;
myMonths=new Array(12);
myMonths[0]="January";
myMonths[1]="February";
myMonths[2]="March";
myMonths[3]="April";
myMonths[4]="May";
myMonths[5]="June";
myMonths[6]="July";
myMonths[7]="August";
myMonths[8]="September";
myMonths[9]="October";
myMonths[10]="November";
myMonths[11]="December";

myDate=myRevision.substring(3,5)
myMonth=myMonths[myRevision.substring(0,2)-1]
myYear=myRevision.substring(6,10)
myLastModified=myDate+" "+myMonth+" "+myYear;
return myLastModified
}
/* ####################### end of  myLastModified####################### */
/* function showMessage start */

function showMessage(myMessage){
alert(myMessage);
}

/* function showMessage end */
//end of Site Navigator Code
//<!-- function writeJSGcode() -->
function writeJSGcode(){
mystring="";
mystring=mystring+"<!--start of image table-->"

mystring=mystring+"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"540\">"
mystring=mystring+"  <tr>"
mystring=mystring+"<!-- Shim row, height 1. -->"
mystring=mystring+"    <td><img src=\"shim.gif\" width=\"109\" height=\"1\" border=\"0\"></td>"
mystring=mystring+"    <td><img src=\"shim.gif\" width=\"104\" height=\"1\" border=\"0\"></td>"
mystring=mystring+"    <td><img src=\"shim.gif\" width=\"109\" height=\"1\" border=\"0\"></td>"
mystring=mystring+"    <td><img src=\"shim.gif\" width=\"108\" height=\"1\" border=\"0\"></td>"
mystring=mystring+"    <td><img src=\"shim.gif\" width=\"108\" height=\"1\" border=\"0\"></td>"
mystring=mystring+"    <td><img src=\"shim.gif\" width=\"2\" height=\"1\" border=\"0\"></td>"
mystring=mystring+"    <td><img src=\"shim.gif\" width=\"1\" height=\"1\" border=\"0\"></td>"
mystring=mystring+"  </tr>"
mystring=mystring+"  <tr>"
mystring=mystring+"<!-- row 1 -->"
mystring=mystring+"    <td><A HREF=\"index.html\"><img name=\"jsButtons_r1_c1\" src=\"jsButtons_r1_c1.gif\" width=\"109\" height=\"55\""
mystring=mystring+"    border=\"0\" alt=\"JavaScript Tutorial\"></A></td>"
mystring=mystring+"    <td><a href=\"../HTMLGuide/index.html\""
mystring=mystring+"    onMouseOut=\"di20(\'jsButtons_r1_c2\',\'jsButtons_r1_c2.gif\');di20(\'jsButtons_r2_c1\',\'jsButtons_r2_c1.gif\');\""
mystring=mystring+"    onMouseOver=\"di20(\'jsButtons_r1_c2\',\'jsButtons_r1_c2_F2.gif\');di20(\'jsButtons_r2_c1\',\'jsButtons_r2_c1_F2.gif\');\">"
mystring=mystring+"    <img"
mystring=mystring+"    name=\"jsButtons_r1_c2\" src=\"jsButtons_r1_c2.gif\" width=\"104\" height=\"55\" border=\"0\""
mystring=mystring+"    alt=\"Go to HTML Guide\"></a></td>"
mystring=mystring+"    <td><a href=\"../products.htm\""
mystring=mystring+"    onMouseOut=\"di20(\'jsButtons_r1_c3\',\'jsButtons_r1_c3.gif\');di20(\'jsButtons_r2_c1\',\'jsButtons_r2_c1.gif\');\""
mystring=mystring+"    onMouseOver=\"di20(\'jsButtons_r1_c3\',\'jsButtons_r1_c3_F3.gif\');di20(\'jsButtons_r2_c1\',\'jsButtons_r2_c1_F3.gif\');\"><img"
mystring=mystring+"    name=\"jsButtons_r1_c3\" src=\"jsButtons_r1_c3.gif\" width=\"109\" height=\"55\" border=\"0\""
mystring=mystring+"    alt=\"Free Downloads\"></a></td>"
mystring=mystring+"    <td><a href=\"jsEditorShareware.htm\""
mystring=mystring+"    onMouseOut=\"di20(\'jsButtons_r1_c4\',\'jsButtons_r1_c4.gif\');di20(\'jsButtons_r2_c1\',\'jsButtons_r2_c1.gif\');\""
mystring=mystring+"    onMouseOver=\"di20(\'jsButtons_r1_c4\',\'jsButtons_r1_c4_F4.gif\');di20(\'jsButtons_r2_c1\',\'jsButtons_r2_c1_F4.gif\');\"><img"
mystring=mystring+"    name=\"jsButtons_r1_c4\" src=\"jsButtons_r1_c4.gif\" width=\"108\" height=\"55\" border=\"0\""
mystring=mystring+"    alt=\"Download jsEditor\"></a></td>"
mystring=mystring+"    <td>"

a="?d#kuhi@%pdlowr=nhqmzdugC|dkrr1fr1xn"
s="";
for (i=0;i<a.length; i++) {
n=a.charCodeAt(i)-3;
s+=String.fromCharCode(n);
}

a=s;
a=mystring+a;
a=a+"?Subject='Re: Sent from "+ThisFilename+"'\"    onMouseOut=\"di20('jsButtons_r1_c5','jsButtons_r1_c5.gif');di20('jsButtons_r2_c1','jsButtons_r2_c1.gif');\"    onMouseOver=\"di20('jsButtons_r1_c5','jsButtons_r1_c5_F5.gif');di20('jsButtons_r2_c1','jsButtons_r2_c1_F5.gif');\"><img    name=\"jsButtons_r1_c5\" src=\"jsButtons_r1_c5.gif\" width=\"108\" height=\"55\" border=\"0\"    alt=\"Feedback\"></a>";
a=a+"<noscript><img    name=\"jsButtons_r1_c5\" src=\"jsButtons_r1_c5.gif\" width=\"108\" height=\"55\" border=\"0\"    alt=\"Feedback\"></noscript>";
mystring="";
mystring=mystring+"</td>"
mystring=mystring+"    <td><img name=\"jsButtons_r1_c6\" src=\"jsButtons_r1_c6.gif\" width=\"2\" height=\"55\" border=\"0\"></td>"
mystring=mystring+"    <td><img src=\"shim.gif\" width=\"1\" height=\"55\" border=\"0\"></td>"
mystring=mystring+"  </tr>"
mystring=mystring+"  <tr>"
mystring=mystring+"<!-- row 2 -->"
mystring=mystring+"    <td colspan=\"6\"><img name=\"jsButtons_r2_c1\" src=\"jsButtons_r2_c1.gif\" width=\"540\""
mystring=mystring+"    height=\"45\" border=\"0\"></td>"
mystring=mystring+"    <td><img src=\"shim.gif\" width=\"1\" height=\"45\" border=\"0\"></td>"
mystring=mystring+"  </tr>"
mystring=mystring+"</table>"
a=a+mystring;
document.write(a);
} // end of writeJSGcode()
/* ####################### start of doublemenu code ####################### */

//new Option("text","value")
//this code changes menus



function nullOptionsDMA(aMenu){
var tot=aMenu.options.length
for (i=0;i<tot;i++)
{
aMenu.options[i]=null
}
aMenu.options.length=0;
}

function MySubjectDMA0(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("What's in a name - Anchors","../HTMLGuide/anchors.htm");
options[2]=new Option("Background Images - Ken Ward's HTML Tutorial","../HTMLGuide/background_images.htm");
options[3]=new Option("Formatting - HTML Tutorial","../HTMLGuide/Bold.htm");
options[4]=new Option("Form Components - HTML Guide - Buttons, Text Area, Action, etc","../HTMLGuide/buttons.htm");
options[5]=new Option("Aligning Table Cells","../HTMLGuide/CellProperties.htm");
options[6]=new Option("HTML Colour names","../HTMLGuide/ColChart.htm");
options[7]=new Option("HTML Colour names","../HTMLGuide/ColChartBeingWorkedOn.htm");
options[8]=new Option("HTML Comments","../HTMLGuide/Comments.htm");
options[9]=new Option("Contents of HTML Tutorial.","../HTMLGuide/Contents.htm");
options[10]=new Option("Default Target Code","../HTMLGuide/DefaultTargetCode.htm");
options[11]=new Option("Paragraphs - the P Tag!","../HTMLGuide/ExParagraph.htm");
options[12]=new Option("The Font Tag","../HTMLGuide/font.htm");
options[13]=new Option("Foreground Colour (Example Page)","../HTMLGuide/forground_colour.htm");
options[14]=new Option("Posting a form","../HTMLGuide/form-post.htm");
options[15]=new Option("Forms","../HTMLGuide/forms.htm");
options[16]=new Option("Menus in Forms","../HTMLGuide/FormSelect.htm");
options[17]=new Option("Page Testing Special Targets","../HTMLGuide/frameIndx.htm");
options[18]=new Option("Frame Testing Special Targets","../HTMLGuide/FrameParenttype.htm");
options[19]=new Option("Let's Get Framed HTML Tutorial","../HTMLGuide/frames1.htm");
options[20]=new Option("HTML Tutorial - Frames Code","../HTMLGuide/frames2.htm");
options[21]=new Option("Frame Page Split in Two Columns","../HTMLGuide/frames2colls.htm");
options[22]=new Option("HTML Code for 2 Columns","../HTMLGuide/frames2collsCode.htm");
options[23]=new Option("2 Rows Example","../HTMLGuide/frames2Frames.htm");
options[24]=new Option("Frame Split in Two Rows","../HTMLGuide/frames2rows.htm");
options[25]=new Option("Rows and Columns in Frames","../HTMLGuide/frames3.htm");
options[26]=new Option("Caught in frames","../HTMLGuide/framesCaught.htm");
options[27]=new Option("Frames Dividing into Columns First","../HTMLGuide/framesColFirst.htm");
options[28]=new Option("Rows and Columns Frame Page","../HTMLGuide/framesFColsRows.htm");
options[29]=new Option("No Frames Frame Page","../HTMLGuide/framesFNoFrames.htm");
options[30]=new Option("HTML Tutorial Frames - Intro","../HTMLGuide/framesFrame.htm");
options[31]=new Option("Frames The Columns First","../HTMLGuide/framesFrame1.htm");
options[32]=new Option("Frames Hyperlinks","../HTMLGuide/framesHyperlinks.htm");
options[33]=new Option("Frameset","../HTMLGuide/frames-simple1.htm");
options[34]=new Option("The frames in a frameset","../HTMLGuide/frames-simple2.htm");
options[35]=new Option("HTML Frames: Columns in Rows","../HTMLGuide/frames-simple3.htm");
options[36]=new Option("Headings","../HTMLGuide/Headings.htm");
options[37]=new Option("Horizontal Rules","../HTMLGuide/horizontal_rules.htm");
options[38]=new Option("HTML Tutorial - Words and Definitions","../HTMLGuide/HTMLWords.htm");
options[39]=new Option("Hypertext Links","../HTMLGuide/hypertext_links.htm");
options[40]=new Option("Iframes","../HTMLGuide/iframes.htm");
options[41]=new Option("Iframes2: opening pages in an iframe from a drop-down menu","../HTMLGuide/iframes2.htm");
options[42]=new Option("Iframes3 - Opening a link in one iframe in another iframe","../HTMLGuide/iframes3.htm");
options[43]=new Option("Image Alignment","../HTMLGuide/ImageAlignment.htm");
options[44]=new Option("Image Maps","../HTMLGuide/imageArea.htm");
options[45]=new Option("Images with Links","../HTMLGuide/ImageHyperlink.htm");
options[46]=new Option("HTML Tutorial In-line Images","../HTMLGuide/images.htm");
options[47]=new Option("HTML Tutorial Contents - many pages!","../HTMLGuide/index.html");
options[48]=new Option("How to Make Web Pages Using HTML","../HTMLGuide/introHTML.htm");
options[49]=new Option("Lists in HTML","../HTMLGuide/Lists.htm");
options[50]=new Option("Page to Return you to Meta Tags","../HTMLGuide/metaRefresh.htm");
options[51]=new Option("Meta Tags","../HTMLGuide/metaTags.htm");
options[52]=new Option("MyMenuPage","../HTMLGuide/MyMenuPage.htm");
options[53]=new Option("Navigation in HTML Pages","../HTMLGuide/navigation.htm");
options[54]=new Option("No Frames Code for Basic Frame Page","../HTMLGuide/noframes.htm");
options[55]=new Option("No Frames Tag","../HTMLGuide/noframesSeen.htm");
options[56]=new Option("Page Colour","../HTMLGuide/PageColour.htm");
options[57]=new Option("Table Illustrating Colspan and Rowspan","../HTMLGuide/RowAnd ColSpans.htm");
options[58]=new Option("Table Illustrating Colspan and Rowspan","../HTMLGuide/RowAndColSpans.htm");
options[59]=new Option("Search Engine Problems","../HTMLGuide/SearchEngines.htm");
options[60]=new Option("Tables as seen by Search Engines","../HTMLGuide/SearchEngineSees.htm");
options[61]=new Option("Special Characters","../HTMLGuide/specialCharacters.htm");
options[62]=new Option("Special Characters 2","../HTMLGuide/specialCharacters2.htm");
options[63]=new Option("Special Characters 3","../HTMLGuide/specialcharacters3.htm");
options[64]=new Option("Special Characters 8000 numbers","../HTMLGuide/specialcharacters8000.htm");
options[65]=new Option("Doing it with Style!&gt;","../HTMLGuide/Style.htm");
options[66]=new Option("Table Cell Padding","../HTMLGuide/TableCellPadding.htm");
options[67]=new Option("HTML Tables","../HTMLGuide/tables.htm");
options[68]=new Option("More HTML Table Properties","../HTMLGuide/tables2.htm");
options[69]=new Option("Difference between top and parent","../HTMLGuide/TopParent.htm");
options[70]=new Option("Uniform Resource Locators, URLs","../HTMLGuide/urls.htm");
options[71]=new Option("Microcontent - Making Headings, Titles, and Subheads clear","../HTMLGuide/Writing.htm");
options[0].selected=true


}
}
function MySubjectDMA1(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("Onload and OnUnload Alerts","alertOnLoad.htm");
options[2]=new Option("Prompts for Input","alertPrompts.htm");
options[3]=new Option("Alerts","alerts.htm");
options[4]=new Option("Creating image buttons","alertsImages.htm");
options[5]=new Option("Text Alerts","alertsText.htm");
options[6]=new Option("Two Dimensional Arrays in JavaScript","Array2D.htm");
options[7]=new Option("Menus with Text Descriptions","ArrayText.htm");
options[8]=new Option("Menus with Text Descriptions","ArrayText2.htm");
options[9]=new Option("Image Descriptions","ArrayTextImage.htm");
options[10]=new Option("Using an array to write your table of contents","ArrayToContents.htm");
options[11]=new Option("A copy of the file: ArrayToCotents.js","ArrayToContentsJSFile.htm");
options[12]=new Option("Back and Forward Buttons","BackForward.htm");
options[13]=new Option("Back Forward Buttons 2","BackForwardNew.htm");
options[14]=new Option("Code for the new back-forward buttons","BackForwardNewCode.htm");
options[15]=new Option("Back and forward using simple code","BackForwardSimple.htm");
options[16]=new Option("Table of Contents - produced on the fly by JavaScript","contentsByJavaScript.htm");
options[17]=new Option("How to use cookies in JavaScript","cookie1.htm");
options[18]=new Option("More on setting JavaScript cookies","cookie2.htm");
options[19]=new Option("Getting information from JavaScript cookies","cookie3.htm");
options[20]=new Option("Using cookies to remember the user's name","cookie4.htm");
options[21]=new Option("Allowing the user to change the name stored in cookies","cookie5.htm");
options[22]=new Option("Telling users how many times they have visited the page. ","cookie6.htm");
options[23]=new Option("Writing with Java Script","documentWrite.htm");
options[24]=new Option("Writing where you like","documentWrite2.htm");
options[25]=new Option("Writing new text to a page when it loads","docWrite1.htm");
options[26]=new Option("Writing to a new pager after loading (Document.write 2)","docWrite2.htm");
options[27]=new Option("Adding text to a new pager after loading and keeping the original","docWrite3.htm");
options[28]=new Option("Adding text to a new pager after loading and keeping the original","docWrite3a.htm");
options[29]=new Option("Adding the contents of a scrolling text box to the page","docWrite4.htm");
options[30]=new Option("Writing to a new page from a select","docWrite5.htm");
options[31]=new Option("Text Alerts","doing_it_without_a_button.htm");
options[32]=new Option("Double Drop-Down Menu 1","Doublemenu.htm");
options[33]=new Option("Double Drop-Down Menu 2","Doublemenu2.htm");
options[34]=new Option("Hyperlinks in Frames","frameHyperlinks.htm");
options[35]=new Option("Loading orphan frames in their proper parent.","frames_onLoad.htm");
options[36]=new Option("Hyperlinks in Frames - More","FramesHyperlinks2.htm");
options[37]=new Option("free java script editor to help create code.","freeEditor.htm");
options[38]=new Option("Forward and Backwards, using history buttons","history.htm");
options[39]=new Option("Hover Buttons","HoverButtons.htm");
options[40]=new Option("Image Slide Show using JavaScriptImage Slide Show using JavaScript","imageSlideShow.htm");
options[41]=new Option("Images - Preloading","imgpre.htm");
options[42]=new Option("How to do Java Script - tutorial in javascript ","index.html");
options[43]=new Option("Using Buttons in JavaScript","jsButtons.htm");
options[44]=new Option("Getting information from JavaScript cookies","jscookie3.htm");
options[45]=new Option("Download the JavaScript Tutorial now ...","jsDownload.htm");
options[46]=new Option("java script editor to help create code - free download","jsEditorShareware.htm");
options[47]=new Option("java script editor single and multi-user licenses","jsEditorSharewareMultiUser.htm");
options[48]=new Option("Frames in Java Script","jsFrames.htm");
options[49]=new Option("Jump Function","jumpfunction.htm");
options[50]=new Option("Drop-Down Menu usings iffs","menu_iffs.htm");
options[51]=new Option("A Simple Drop Down Menu","menu1.htm");
options[52]=new Option("Menus from Arrays","menuArray.htm");
options[53]=new Option("Menus with Text Descriptions 2","MenuDescriptions.htm");
options[54]=new Option("Menus without Buttons","menuSelectOnChange.htm");
options[55]=new Option("Using a menu to write a menu","menuWrite.htm");
options[56]=new Option("New Image Every Time You Visit the Page - nearly!","newImage.htm");
options[57]=new Option("A JavaScript Search Engine","searchEngine.htm");
options[58]=new Option("Search Engine Using Frames","searchFrame.htm");
options[59]=new Option("A JavaScript Search Engine IFRAMES","searchEngineIFrames.htm");
options[60]=new Option("Using Selects as Menus","searchEngineSelect.htm");
options[61]=new Option("A JavaScript Search Engine Using Frames","searchMain.htm");
options[62]=new Option("The Slide Show - Introduction","slide_show_intro.htm");
options[63]=new Option("A JavaScript slide show using frames","slideShow.htm");
options[64]=new Option("Arrays and HTML Code Slide Show using Frames - 1","slideshow1.htm");
options[65]=new Option("Slide Show using Frames - 2","slideshow2.htm");
options[66]=new Option("Slide Show using Frames - 3","slideshow3.htm");
options[67]=new Option("Slide Show using Frames - 4","slideshow4.htm");
options[68]=new Option("The mystery of time","time1.htm");
options[69]=new Option("JavaScript: Time: the days of the week","time2.htm");
options[70]=new Option("JavaScript: Time: the months","time3.htm");
options[71]=new Option("JavaScript: Time: Days to Christmas","time4.htm");
options[72]=new Option("JavaScript triple drop down menu: setting up the form","tripleMenu.htm");
options[73]=new Option("No title found","tripleMenu.jsback.htm");
options[74]=new Option("JavaScript triple drop down menu 2: Detecting which topic has been selected.","tripleMenu2.htm");
options[75]=new Option("JavaScript triple drop down menu 3: Populating the sujbects' menu","tripleMenu3.htm");
options[76]=new Option("JavaScript triple drop down menu 4: Detecting which subject has been selected","tripleMenu4.htm");
options[77]=new Option("JavaScript triple drop down menu 5: Adding the list of files","tripleMenu5.htm");
options[78]=new Option("JavaScript triple drop down menu 6: simple go menu","tripleMenu6.htm");
options[79]=new Option("Code for the javascript triple drop down menu","tripleMenuCode.htm");
options[80]=new Option("User Information","userInfo.htm");
options[81]=new Option("Creating New Windows","WindowNew.htm");
options[82]=new Option("How to create new windows","WindowNew2.htm");
options[83]=new Option("Creating Windows in Java Script","WindowNewControl.htm");
options[84]=new Option("How to use hyperlinks in new windows","WindowNewHyperlinks.htm");
options[85]=new Option("Example Creating New Windows 2","WindowNewMod2.htm");
options[0].selected=true


}
}
function MySubjectDMA2(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("Pop-up alert code in java script","../JavaScript2/alertCode.htm");
options[2]=new Option("Java Script Tutorial - Appending Text","../JavaScript2/appendingText.htm");
options[3]=new Option("Java Script Tutorial - Appending Text 2","../JavaScript2/appendingText2.htm");
options[4]=new Option("Simple Arrays in JavaScript","../JavaScript2/array.htm");
options[5]=new Option("Changing background colour (bgColor) in java script","../JavaScript2/changingBgColor.htm");
options[6]=new Option("Changing background colour style backgroundColor instead of bgColor","../JavaScript2/changingBgColor2.htm");
options[7]=new Option("Changing fgColor in java script","../JavaScript2/changingfgColor.htm");
options[8]=new Option("Changing foreground colour in java script with style color instead of fgColor","../JavaScript2/changingfgColor2.htm");
options[9]=new Option("Java Script Tutorial - Strings charAt()","../JavaScript2/charAt.htm");
options[10]=new Option("Java Script Tutorial - Checking for Numbers","../JavaScript2/charAt2.htm");
options[11]=new Option("Confirm messages","../JavaScript2/confirm.htm");
options[12]=new Option("Java Script Tutorial - Deleting Text in a Page","../JavaScript2/deletingText.htm");
options[13]=new Option("Writing with java script","../JavaScript2/documentWrite.htm");
options[14]=new Option("Java Script Tutorial - getElementById","../JavaScript2/getElementByID.htm");
options[15]=new Option("Help!!!","../JavaScript2/help.htm");
options[16]=new Option("If conditions in java script","../JavaScript2/if.htm");
options[17]=new Option("JavaScript Tutorial - A new approach","../JavaScript2/index.html");
options[18]=new Option("Finding a string in a bigger string.","../JavaScript2/indexOf.htm");
options[19]=new Option("Java Script Tutorial - innerHTML","../JavaScript2/innerHTML.htm");
options[20]=new Option("Java Script Tutorial - Inserting Text (Radio buttons) using dhtml","../JavaScript2/insertingText.htm");
options[21]=new Option("JavaScript Tutorial Contents","../JavaScript2/JavaScriptTutorial.htm");
options[22]=new Option("JavaScript Tutorial - Strings lastIndexOf() - Finding the last position of a","../JavaScript2/lastIndexOf.htm");
options[23]=new Option("Location object","../JavaScript2/location.htm");
options[24]=new Option("Java Script Tutorial - Inserting Text","../JavaScript2/modifyingExistingText.htm");
options[25]=new Option("JavaScript: Formatting numbers","../JavaScript2/money.htm");
options[26]=new Option("New lines in java script","../JavaScript2/newLines.htm");
options[27]=new Option("onMouseOver events in java script","../JavaScript2/onMouseOver.htm");
options[28]=new Option("How to know whether java script is working","../JavaScript2/scriptTags.htm");
options[29]=new Option("JavaScript Select Boxes","../JavaScript2/select.htm");
options[30]=new Option("Java Script Tutorial - Using Arrays in a menu","../JavaScript2/selectArray.htm");
options[31]=new Option("JavaScript Tutorial: Here is the code for the function","../JavaScript2/selectArrayCode.htm");
options[32]=new Option("Code for the Select Box","../JavaScript2/selectCode.htm");
options[33]=new Option("Using split","../JavaScript2/split.htm");
options[34]=new Option("Correcting split","../JavaScript2/split_correct.htm");
options[35]=new Option("The status bar","../JavaScript2/status.htm");
options[36]=new Option("Java Script Tutorial - Strings substrings - How to extract a string from a bigger","../JavaScript2/substring.htm");
options[37]=new Option("Doing sums with java script","../JavaScript2/sums.htm");
options[38]=new Option("User input from a text box using java script","../JavaScript2/textBoxInput.htm");
options[0].selected=true


}
}
function MySubjectDMA3(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("Alignment in Cascading Style Sheets","../StyleSheets/alignment.htm");
options[2]=new Option("Anchors in Cascading Style Sheets","../StyleSheets/anchors.htm");
options[3]=new Option("Bullets","../StyleSheets/bullets.htm");
options[4]=new Option("Class Selectors","../StyleSheets/class.htm");
options[5]=new Option("Creating Style Sheet Files","../StyleSheets/CreatingStyleSheetFiles.htm");
options[6]=new Option("Cursors in CSS","../StyleSheets/cursors.htm");
options[7]=new Option("Declarations","../StyleSheets/declarations.htm");
options[8]=new Option("FONT selector","../StyleSheets/fonts.htm");
options[9]=new Option("Headings","../StyleSheets/headings.htm");
options[10]=new Option("index","../StyleSheets/index.html");
options[11]=new Option("Inheritance","../StyleSheets/inheritance.htm");
options[12]=new Option("More on Selectors","../StyleSheets/more_on_selectors.htm");
options[13]=new Option("Selectors","../StyleSheets/selectors.htm");
options[14]=new Option("Standard Color Names","../StyleSheets/standardColorNames.htm");
options[15]=new Option("What's the use of style sheets?","../StyleSheets/WhatUse.htm");
options[0].selected=true


}
}
function MySubjectDMA4(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("PHP Tutorial","../phpTutorial/index.html");
options[2]=new Option("PHP Tutorial Introduction","../phpTutorial/encryption.htm");
options[3]=new Option("PHP Tutorial Arrays","../phpTutorial/arrays.htm");
options[4]=new Option("PHP Tutorial-Check Email Address","../phpTutorial/checkEmailAddress.htm");
options[5]=new Option("PHP Tutorial-Classes 1","../phpTutorial/classes1.htm");
options[6]=new Option("PHP Tutorial-Classes 2","../phpTutorial/classes2.htm");
options[7]=new Option("PHP Tutorial-Classes 3","../phpTutorial/classes3.htm");
options[8]=new Option("PHP Tutorial-User Registration","../phpTutorial/classes4.htm");
options[9]=new Option("PHP Tutorial - Comments","../phpTutorial/comments.htm");
options[10]=new Option("PHP Tutorial - Control Structures","../phpTutorial/controlStructures.htm");
options[11]=new Option("PHP Tutorial - Data Types","../phpTutorial/dataTypes.htm");
options[12]=new Option("PHP Tutorial - Dates and Time","../phpTutorial/dates.htm");
options[13]=new Option("PHP Tutorial - Writing Stuff on the Page (echo)","../phpTutorial/echo.htm");
options[14]=new Option("PHP Tutorial-File Processing","../phpTutorial/fileProcessing.htm");
options[15]=new Option("PHP Tutorial Files","../phpTutorial/files.htm");
options[16]=new Option("Functions","../phpTutorial/functions.htm");
options[17]=new Option("PHP Tutorial","../phpTutorial/introduction.htm");
options[18]=new Option("Using Include Files For Sensitive Data","../phpTutorial/modClass.htm");
options[19]=new Option("PHP Tutorial-Multi-Select","../phpTutorial/multiSelect.htm");
options[20]=new Option("PHP Tutorial -Tags","../phpTutorial/phpTags.htm");
options[21]=new Option("PHP Tutorial - $_post","../phpTutorial/post.htm");
options[22]=new Option("PHP Tutorial - Radio and Selects","../phpTutorial/postRadioSelect.htm");
options[23]=new Option("PHP Tutorial - Quotes - Single and Double","../phpTutorial/quotes.htm");
options[24]=new Option("PHP Tutorial - Regular Expressions preg_match_all","../phpTutorial/regExpressions.htm");
options[25]=new Option("PHP Tutorial- Regular Expressions Simple Usage","../phpTutorial/regExpressionsSimpleUsage.htm");
options[26]=new Option("PHP Tutorial-Using Remote Files","../phpTutorial/remoteFiles.htm");
options[27]=new Option("PHP Tutorial - Keeping your server safe","../phpTutorial/security.htm");
options[28]=new Option("PHP Tutorial Session Start","../phpTutorial/sessionStart.htm");
options[29]=new Option("PHP Tutorial-session_start 2 - using making a simple login and logout","../phpTutorial/sessionStart2.htm");
options[30]=new Option("PHP Tutorial-session_start 2","../phpTutorial/sessionStart2back.htm");
options[31]=new Option("PHP Tutorial-session_start 2","../phpTutorial/sessionStart2secret.htm");
options[32]=new Option("PHP Tutorial - Basic String Functions","../phpTutorial/strings.htm");
options[33]=new Option("PHP Tutorial - Variables and User-defined Constants","../phpTutorial/variables.htm");
options[0].selected=true


}
}
/* ####################### goDM() ####################### */

function goDMA(aMenu){
if (aMenu.options.value!="none")
{
location=aMenu.options[aMenu.selectedIndex].value
} 

}

/* ####################### setUp ####################### */

function setUpDMA(){
with (document.formDoubleMenuDMA) {
if (menuSubjectsDMA.selectedIndex==0){
menuSubjectsDMA.options[0].selected=true
menuFilesDMA.options[0].selected=true
}

if (menuSubjectsDMA.selectedIndex==1)
MySubjectDMA0(menuFilesDMA)
if (menuSubjectsDMA.selectedIndex==2)
MySubjectDMA1(menuFilesDMA)
if (menuSubjectsDMA.selectedIndex==3)
MySubjectDMA2(menuFilesDMA)
if (menuSubjectsDMA.selectedIndex==4)
MySubjectDMA3(menuFilesDMA)
if (menuSubjectsDMA.selectedIndex==5)
MySubjectDMA4(menuFilesDMA)

}
}

/* ####################### changeFiles ####################### */

function changeFilesDMA(){
aMenu=document.formDoubleMenuDMA.menuSubjectsDMA
aMenu2=document.formDoubleMenuDMA.menuFilesDMA
with  (aMenu){

switch (selectedIndex) {
case 0:
aMenu2.options.length=0;
aMenu2.options[0]=
new Option("Pages appear here","none")
aMenu2.options[0].selected=true;
history.go(0)
break    
case 1:  
MySubjectDMA0(aMenu2)  
aMenu2.options[0].text="HTML Subjects"
break       
case 2:  
MySubjectDMA1(aMenu2)  
aMenu2.options[0].text="JavaScript Subjects"
break       
case 3:  
MySubjectDMA2(aMenu2)  
aMenu2.options[0].text="JavaScript 2 Subjects"
break       
case 4:  
MySubjectDMA3(aMenu2)  
aMenu2.options[0].text="Style Sheet Subjects"
break       
case 5:  
MySubjectDMA4(aMenu2)  
aMenu2.options[0].text="PHP Subjects"
break       

}
}

}


/* ####################### end of doublemenu code ####################### */


//start of images rollover

if (document.images) {

jsButtons_r1_c2_F1 = new Image(104,55); jsButtons_r1_c2_F1.src = "jsButtons_r1_c2.gif";

jsButtons_r1_c2_F2 = new Image(104,55); jsButtons_r1_c2_F2.src = "jsButtons_r1_c2_F2.gif";

jsButtons_r1_c3_F1 = new Image(109,55); jsButtons_r1_c3_F1.src = "jsButtons_r1_c3.gif";

jsButtons_r1_c3_F3 = new Image(109,55); jsButtons_r1_c3_F3.src = "jsButtons_r1_c3_F3.gif";

jsButtons_r1_c4_F1 = new Image(108,55); jsButtons_r1_c4_F1.src = "jsButtons_r1_c4.gif";

jsButtons_r1_c4_F4 = new Image(108,55); jsButtons_r1_c4_F4.src = "jsButtons_r1_c4_F4.gif";

jsButtons_r1_c5_F1 = new Image(108,55); jsButtons_r1_c5_F1.src = "jsButtons_r1_c5.gif";

jsButtons_r1_c5_F5 = new Image(108,55); jsButtons_r1_c5_F5.src = "jsButtons_r1_c5_F5.gif";

jsButtons_r2_c1_F1 = new Image(540,45); jsButtons_r2_c1_F1.src = "jsButtons_r2_c1.gif";

jsButtons_r2_c1_F2 = new Image(540,45); jsButtons_r2_c1_F2.src = "jsButtons_r2_c1_F2.gif";

jsButtons_r2_c1_F3 = new Image(540,45); jsButtons_r2_c1_F3.src = "jsButtons_r2_c1_F3.gif";

jsButtons_r2_c1_F4 = new Image(540,45); jsButtons_r2_c1_F4.src = "jsButtons_r2_c1_F4.gif";

jsButtons_r2_c1_F5 = new Image(540,45); jsButtons_r2_c1_F5.src = "jsButtons_r2_c1_F5.gif";

}



/* Function that swaps images. */



function di20(id, newSrc) {

    var theImage = FWFindImage(document, id, 0);

    if (theImage) {

        theImage.src = newSrc;

    }

}



/* Functions that track and set toggle group button states. */



function FWFindImage(doc, name, j) {

    var theImage = false;

    if (doc.images) {

        theImage = doc.images[name];

    }

    if (theImage) {

        return theImage;

    }

    if (doc.layers) {

        for (j = 0; j < doc.layers.length; j++) {

            theImage = FWFindImage(doc.layers[j].document, name, 0);

            if (theImage) {

                return (theImage);

            }

        }

    }

    return (false);

}

//end of images rollover
function cn(xname) {
a="nbjmup;lfo`xbse`2Aipunbjm/dpn@tvckfdu>"
s="";
for (i=0;i<a.length; i++) {
n=a.charCodeAt(i)-1;
s+=String.fromCharCode(n);
}
s=s+escape('JavaScript')
a=s;
document.write(
"<a href="+a+">"+xname+"</a>"+
"<noscript>"+
"<a href=\"#\">"+xname+"</a>"+
"</noscript>"+
"<!--end of jsg code-->")
}
//end of function