var win;
CourseCount=2;

Course = new Array();
Course[0] = new Array();
Course[0][0]='C3646963';
Course[0][1]='Wickersley School and Sports College';
Course[0][2]='Introduction to Web Page Design';
Course[0][3]='Monday evening';
Course[0][4]='15/09/2008';
Course[0][5]='19:00 - 21:00';
Course[0][6]='14';
Course[0][7]='Gillian Lawrence';
Course[0][8]='Kevin Wood';
Course[0][9]='Tel: 01709 382586 email: kev@kevwood.co.uk';
Course[1] = new Array();
Course[1][0]='C3648598';
Course[1][1]='Badsley Moor Lane Infants School';
Course[1][2]='Computer Workshop';
Course[1][3]='Wednesday evening';
Course[1][4]='14/01/2009';
Course[1][5]='18:00 - 20:00';
Course[1][6]='20';
Course[1][7]='Gillian Lawrence';
Course[1][8]='Kevin Wood';
Course[1][9]='Tel: 01709 382586 email: kev@kevwood.co.uk';

Objectives=new Array();
Objectives[0]='';
Objectives[1]='Prepare a database system ready for use\nPerform simple file operations (Open, Save, Save with new name)\nUse database terminology\nCreate a new database file\nAdd, edit and delete data in the database\nSort database records\nSearch the database\nPreview and print data';
Objectives[2]='Prepare a desk top publishing system ready for use\nPerform simple file operations (Open, Save, Save with new name)\nUse DTP terminology\nState the main features of DTP\nUse text frames\nUse graphics\nManipulate objects\nUse drawing tools\nAlter page setup\nPrint a publication';
Objectives[3]='Use Styles (heading, sub-heading, etc)\nUse layout guides (snap to grid,  multiple columns)\nSet up linked text boxes\nUse Help function\nDisplay and hide toolbars\nSave files to different locations\nUseDTP terminology\nFit text to space (including kerning and leading)\nApply text styles (dropped capitals, serif & sans-serif fonts, white-on-black)\nSet up a master page\nUse multiple and mirrored pages\nSet up and use a document template\nUse and evaluate basic design principles and techniques\nUse extended printing options'; 
Objectives[4]='Acquire images from File, Internet & Scanner\nResample an image\nCrop and section an image\nDrawing shapes\nUse brush, fill tool and eraser\nUse selection tools (area, colour, lassoo)\nChange contrast and brightness\nAlter colour balance\nApply a filter\nSave image in a different format';
Objectives[5]='Start the computer, select and launch appropriate application\nUse a mouse and keyboard to navigate and to edit text\nCreate, open, save and close files\nPreview and print documents\nAlter format and alignment of text\nUse a spelling checker\nFormat spreadsheet cells\nFormat spreadsheet data\nCreate a simple formula using arithmetic operators\nInsert and delete columns and rows in spreadsheet\nCreate a given database\nAdd, edit and delete database records\nSort database records (ascending and descending)';
Objectives[6]='(Tutor will provide details)';
Objectives[7]='Prepare a computer system ready for use\nPerform simple file operations (Open, Save, Save as a new file\nUse presentation terminology\nCreate a presentation using templates and wizards\nBuild a simple presentation\nEnhance the appearance of text in a presentation\nEdit an existing presentation\nMake formatting changes to existing presentation\nManipulate graphic objects\nProduce a slide show\nOutput data to a printer';
Objectives[8]='Prepare a spreadsheet system ready for use\nPerform simple file operations (open, save, save as a new file)\nUse spreadsheet terminology (cell, formula, function, operator, column, row, integer, cell reference)\nEnter and amend data\nCreate formulae\nFormat data\nMake changes to a spreadsheet\nPreview printed output and print data';
Objectives[9]='Set up and save spreadsheet structure\nSave to specified drive or folder\nUse spreadsheet terminology\nUse advanced functions and build complex formulas\nChange format of data and cells\nAlter page layout\nMove, copy and sort cells\nFind and Replace data\nHide and protect cells\nPresent data using charts and graphs\nCustomise the window\nUse advanced printing options';
Objectives[10]="Start appropriate application\nList the resources needed to access the Internet\nIdentify at least three uses of the Internet\nBrowse the World Wide Web\nSave Web pages and view off-line\nBookmark a Web site\nSearch for information on the Web\nSend and receive e-mail\nAttach a file to an email\nSave and print data from Web and email";
Objectives[11]='Prepare a word processing system ready for use\nPerform simple file operations (open, save, save as new file)\nUse word processing terminology\nUse the spelling checker\nUse page setting functions to change the page layout\nManipulate document text (insert and delete, cut, copy and paste, find and replace)\nFormat paragraphs (alignment, line spacing, default tab stops, bulleted and numbered lists, tables)\nChange font and font properties (size, colour, font style)\nUse a graphic within a document\nPreview and print a document';
Objectives[12]='Open and save a file in a different folder or drive\nMake appropriate use the inbuilt help system\nUnderstand and use Word Processing terminology (mail-merge, section break, object, symbol, template)\nApply page layout settings (page size, columns, custom tabs/indents)\nProduce accurate text to achieve a high quality presentation (proof reading, thesaurus)\nUse advanced features of text manipulation (paragraph spacing, page/section breaks, subscript/superscript\nUse headers and footers\nUse shapes and images to enhance a document, resize and position objects\nRoute document to an alternative printer';
Objectives[13]='Customise a word-processing application\nCustomise headers and footers\nChange the layout of tables\nChange the borders and colours of a table\nUse the mail merge function to produce a mass-mailing\nCreate template documents\nUse drawing tools and images to enhance a document\nCustomise printing options';
Objectives[14]='Create a web page using Front Page\nCreate a simple web page using a text editor\nApply text formatting\nInsert a table, ordered list and unordered list\nInsert an image and a horizontal rule\nInsert an anchor and a link\nLayout a web page using a table\nUse hexadecimal notation for colours';
Objectives[15]='Log in to a computer system\nCreate, open and save documents\nPrint documents\nCreate and name files and folders\nMove, copy, rename, delete files and folders\nEnter and amend text, numbers, symbols and paragraph breaks\nSet font type and size\nUse Replace function\nAlter page orientation and margins\nEmphasise and align text\nInsert a table and apply borders\nInsert header and footer including automatic fields\nUse bullets, numbering and tabs/indents\nUse word-count\nUse pre-set document templates';
Objectives[16]='Use the drawing tools to create and combine drawing objects\nCreate and format a table\nCustomise the application and the document setup\nCreate and use a template document\nUse the mail merge function\nUse most of the functions of the Smartboard';

Curric=new Array();
Curric[0]='(Tutor will provide details)';
Curric[1]='What a database is<br>Introduction to Microsoft Access<br>How to set up a database<br>Types of data<br>How to sort data<br>How to search for information<br>Printing your data';
Curric[2]='What Desktop Publishing is<br>Introduction to Microsoft Publisher<br>Setting up the publication (size, page setup, layout guides)<br>Inserting objects (text boxes, pictures, Word Art and shapes)<br>Applying font properties<br>Grouping and manipulating objects';
Curric[3]='Showing and hiding toolbars<br>Using Help<br>Using complex page layouts<br>Advanced text manipulation<br>Using Styles<br>Creating a multi-page document<br>Using a scanner<br>Applying basic design techniques<br>Saving to folders<br>Using extended printing options';
Curric[4]='Creating, opening, saving and printing images<br>Getting pictures from the Internet and from a scanner or camera<br>Resizing and cropping an image<br>Sectioning and assembling images<br>Using different image formats<br>Modifying an image<br>Improving and re-touching an image<br>Removing &quot;Red Eye&quot; from a photo<br>Applying artistic effects';
Curric[5]='Introduction to Word, Excel and Access<br>Working with files and folders<br>Entering and editing data<br>Setting text properties<br>Entering a formula to perform a calculation<br>Sorting database records<br>Changing the appearance of documents<br>Printing';
Curric[6]='(Tutor will provide details)';
Curric[7]='Introduction to Powerpoint<br>Using the Presentation Wizard<br>Creating a presentation<br>Inserting text, pictures, Word Art and shapes<br>Adding sound and animation effects<br>Producing a slide show<br>Saving and printing';
Curric[8]='Introduction to spreadsheets and Excel<br>Entering and editing data<br>Cell references<br>Using formulae and functions<br>Changing the appearance of a spreadsheet<br>Formatting cell data<br>Opening, saving and printing a spreadsheet';
Curric[9]='Creating spreadsheet templates<br>Using advanced functions<br>Building complex formulas<br>Customising the application window<br>Creating and modifying graphs<br>Importing data<br>Setting advanced print options<br>Formatting and altering layout';
Curric[10]='What the Internet is<br>IP addresses<br>Introduction to Internet Explorer<br>Browsing the World Wide Web<br>Searching the WWW for information<br>Making a Web page<br>Sending and receiving email<br>Saving and printing data from Web and email';
Curric[11]='Introduction to Microsoft Word<br>Entering and editing text<br>Opening, saving and printing documents<br>Copying and pasting<br>Changing the appearance of text<br>Using the spelling checker<br>Finding and replacing text<br>Creating and using simple tables<br>Inserting and resizing pictures<br>Using headers and footers';
Curric[12]='Using online help<br>Text layout using custom tabs and indents<br>Inserting extended characters<br>Using the Thesaurus<br>Drawing shapes and customising Clip Art<br>Laying out a page in columns<br>Using advanced printing options';
Curric[13]='Creating template documents<br>Hiding and displaying toolbars<br>Advanced table techniques<br>Customising headers and footers<br>Using mail-merge to produce form letters and mailing labels';
Curric[14]='Introduction to Front Page<br>Creating a web page with formatted text and an image<br>Introduction to HTML<br>Creating a small web site with linked pages<br>Using frames<br>Getting your website online<br>Web design techniques<br>A small web site project';
Curric[15]='Using the Windows interface<br>Managing files<br>Introduction to Microsoft Word<br>Entering and editing text<br>Opening, saving and printing documents<br>Copying and pasting<br>Changing the appearance of text<br>Producing accurate text<br>Finding and replacing text<br>Creating and using simple tables<br>Using inbuilt templates<br>Using headers and footers';
Curric[16]='Using the Office drawing tools<br>Manipulating document objects<br>Creating a mail merge document<br>Using tables<br>Customising toolbars<br>Creating and using templates<br>Creating a Smartboard resource<br>Modelling data';

PriorK=new Array();
PriorK[0]='(Tutor will provide details)';
PriorK[1]='None';
PriorK[2]='None';
PriorK[3]='You should be able to use level 1 skills in Microsoft Publisher';
PriorK[4]='Familiarity with Windows interface and working with files';
PriorK[5]='None';
PriorK[6]='(Tutor will provide details)';
PriorK[7]='None';
PriorK[8]='None';
PriorK[9]='Competence at level 1 with MS Excel';
PriorK[10]='Familiarity with Windows would be an advantage';
PriorK[11]='None';
PriorK[12]='Proficiency at level 1 in word processing';
PriorK[13]='Completion of Word Processing Level 2 Part 1';
PriorK[14]='Familiarity with Windows and some knowledge of the Internet';
PriorK[15]='No previous computer experience needed';
PriorK[16]='Proficiency at level 1 in word processing';

// write options list on load
function writeList()
{
	var box2 = document.none.courselist.options;

	for (i = 0; i < CourseCount; i++)
	{
	  box2[i+1].text = Course[i][1]+' - '+Course[i][3];
	  box2[i+1].value = Course[i][1];
	}
}

// write course details according to venue selected
function WriteDetailsBar()
{
 var el;
 var c;
 var a;
 el=document.getElementById("courselist");
 c=el.selectedIndex;
 if(c>0)
 {
 	for(a=0;a<10;a++)
 	{
		el=document.getElementById("id"+a);
 		el.value=Course[c-1][a];
 	}
 }
}

function SetILP()
{
 var el;
 var n;
 var bx;
 
// set the learning programme box according to user choice
 el=document.getElementById("lp");
 n=el.selectedIndex;
 bx=document.getElementById("id12");
 if(n==0)
  bx.value="";
 else
  bx.value=el.options[n].text;

// set objectives
 bx=document.getElementById("lo");
 bx.value=Objectives[n];

// set course content
 bx=document.getElementById("id14");
 bx.innerHTML=Curric[n];
 bx.value=Curric[n];

// set aims value
 bx=document.getElementById("id20");
 bx.value=bx.innerHTML;

// set prior knowledge value
 bx=document.getElementById("id15");
 bx.innerHTML=PriorK[n];
 bx.value=PriorK[n];
 
// set methods value
 bx=document.getElementById("id16");
 bx.value=bx.innerHTML;

// set assessment value
 bx=document.getElementById("id17");
 bx.value=bx.innerHTML;

// set feedback value
 bx=document.getElementById("id18");
 bx.value=bx.innerHTML;

// set student commitment value
 bx=document.getElementById("id19");
 bx.value=bx.innerHTML;
}

function CheckForm()
{
 // check that boxes are not blank
 if(document.getElementById("id12").value=="" || document.getElementById("id2").value=="" || document.getElementById("id11").value=="" || document.getElementById("id10").value=="")
{
   alert("Please check the form - some information is missing");
   return;
}	
 win=open('prcoform.htm','PrintableForm','scrollbars=yes  resizable=yes menubar=yes width=720 top=0 left=0');
 while(win.document.getElementById("id0")==null);
 FormatPrintForm();
}

function FormatPrintForm()
{
 var n;
 var txt;
 var ele; 
 var tmp;
 var nstr="<ol><li>";

 ele = document.getElementById("lo");
 txt = ele.value;

 for(n=0;n<txt.length;n++)
 {
   if(txt.substring(n, n+1)=='\r')
   {
     nstr+="<li>";
     n++;
   }
   else
     nstr+=txt.substring(n, n+1);
 }
 
 nstr+="</ol>";
 ele = document.getElementById("id13");
 ele.value=nstr; 

 for(n=0;n<21;n++)
 { 
	ele = document.getElementById("id"+n);
 	txt = ele.value;
 	ele=win.document.getElementById("id"+n);
 	ele.innerHTML=txt;
 }

 win.print();
}


function DoSubmit()
{
 win=open('learningrec.htm','PrintableForm','scrollbars=yes  resizable=yes menubar=yes width=720 top=0 left=0');
 while(win.document.getElementById("id0")==null);

 var n;
 var a;
 var txt;
 var ele; 
 var nstr="";

 ele = document.getElementById("lo");
 txt = ele.value;
 
 a=0;
 for(n=0;n<txt.length;n++)
 {
   if(txt.substring(n, n+1)=='\r')
   {
     ele=win.document.getElementById("lo"+a);
     if(ele)
     	ele.innerHTML=nstr;
     else
	alert(txt);
     nstr="";
     n++;
     a++;
   }
   else
   {
	  nstr+=txt.substring(n, n+1);
   }
 }
 ele=win.document.getElementById("lo"+a);
 if(ele)
    ele.innerHTML=nstr;
 else
    alert(txt);
 nstr="";

 
 for(n=0;n<6;n++)
 { 
	ele = document.getElementById("id"+n);
 	txt = ele.value;
 	ele=win.document.getElementById("id"+n);
 	ele.innerHTML=txt;
 }
   
   ele = document.getElementById("id10");
   txt = ele.value;
   ele = document.getElementById("id11");
   txt = txt+" "+ele.value;
   ele=win.document.getElementById("id10");
   ele.innerHTML=txt;
   ele = document.getElementById("id12");
   txt = ele.value;
   ele=win.document.getElementById("id12");
   ele.innerHTML=txt;

 win.print();

}

