

//----------------------------------------------------------------
//  Usernames, Passwords & User Pages - These require configuration.
//----------------------------------------------------------------
var sPath = window.location.pathname;
var sPagelogin = sPath.substring(sPath.lastIndexOf('ibmathsstudies') +15);//this needs changing to whichever folder your login page is in plus the number of characters in that folder name + 1. i.e. protected has 9 letters so we would set it to sPath.substring(sPath.lastIndexOf('protected') +10);

var fullurl = window.location.href;

var successpage = fullurl.substring(fullurl.lastIndexOf('?') +1); // The page users go to after login, if they have no personal page.
if (successpage == fullurl){
	successpage = "contents.html";}//set this incase the user goes straight to login page and url string is not set
	else {successpage = successpage;}
	
var loginpage = "index.html?" + sPagelogin; //Change this to the page the login panel is on.
var logoutpage = "index.html"; //leave blank to set it to the login page
var cookiename = "ibmathsstudies"; //set this to unique cookie name so you cannot access other parts of the site with this login

var imgSubmit = ""; //Change to the path to your login image,if you don't want the standard button, otherwise do not change.
var imgReset = "";  //Change to the path to your reset image,if you don't want the standard button, otherwise do not change.
var users = new Array();

users[0] = new Array("ibmathsstudies","calculator","");
users[1] = new Array("Ibmathsstudies","Calculator","");
users[2] = new Array("IBMATHSSTUDIES","CALCULATOR","");


// Add addtional logins, straight after these, as
// required, followig the same format. Increment the
// numbers in the square brackets, in new each one. Note:
// the 3rd parameter is the the page that user goes to
// after successful login. Ensure the paths are correct.
// Make this "" if user has no personal page.


