/*Copyright 2000-01 by molvisions.com. Please do not copy without permission.*/var this_module;function checkRequired()  {	var state = "";	var pluginStatus = false;	var pluginVersion = false;	if (getClient().indexOf("mac") == -1) {if (getClient().indexOf("win") == -1) state += "platform+"; else state += "+";}	else state += "+";	if (getBrowser().indexOf("netscape") == -1) state += "browser+"; else state += "+";	if (getClient().indexOf("4.") == -1) state += "bversion+"; else {if (getClient().indexOf("4.0") != -1) state += "bversion+"; else state += "+";}	if (getClient().indexOf("msie 4") == -1) {		for (var i=0;i<navigator.plugins.length;i++)  {			var plug = navigator.plugins[i].name.toLowerCase();			if (plug.indexOf("chime ") != -1) {				pluginStatus = true;				if (plug.indexOf("2.") != -1) pluginVersion = true;			}		}	}	if (!pluginStatus) state += "plugin+"; else state += "+";	if (!pluginVersion) state += "pversion+"; else state += "+";	if (!navigator.javaEnabled()) state += "java+"; else state += "+";	if (state.length < 7) state = "okay";	return state;}function checkSystem()  {	var w = 620;	var h = 470;	var state = checkRequired();	if (state == "okay") eval("status_win = window.open('statusok.html','status_winC','width=300,height=250,screenX="+getXposition(300)+",screenY="+getYposition(250)+",scrollbars=1,menubar=0,toolbar=0,status=0,resizable=0')");	else {		state = escape(state+"+tutorialsupport@worthpub.com");		status_win = eval("window.open('bin3d_accesserror.html?"+state+"','status_winC','width="+w+",height="+h+",screenX="+getXposition(w)+",screenY="+getYposition(h)+",scrollbars=1,menubar=0,toolbar=0,status=0,resizable=0')");	}}function checkForValid(n) {	letters = new Array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z");	numbers = new Array("0","1","2","3","4","5","6","7","8","9");	special = new Array(" ","-","_","(",")","[","]","{","}",",",";",":","$","%","&","*",".");	for (var i=0;i<letters.length; i++) if (n == letters[i]) return true;	for (var i=0;i<numbers.length; i++) if (n == numbers[i]) return true;	for (var i=0;i<special.length; i++) if (n == special[i]) return true;	return false;}function addModule()  {	var valid = false;	title_array = document.addForm.add_title.value.split("");	folder_array = document.addForm.add_folder.value.split("");/*	if (folder_array.length != 4) {		alert("The folder name must be EXACTLY four alphanumeric characters. Please reenter.");		document.addForm.add_folder.focus();		document.addForm.add_folder.select();		return;	}*/	for (var i=0;i<title_array.length;i++) {		valid = checkForValid(title_array[i].toLowerCase());		if (!valid) break;	}	if ((document.addForm.add_title.value == "") || (document.addForm.add_title.value == " ")) valid = false;	if (!valid) {		alert("Please enter a valid title for the new module. Do not use the following reserved symbols:\r!, @, #,^\rsingle or double quotes\rforward or back slashes");		document.addForm.add_title.focus();		document.addForm.add_title.select();		return;	}	for (var i=0;i<folder_array.length;i++) {		valid = checkForValid(folder_array[i].toLowerCase());		if (!valid) break;	}	if ((document.addForm.add_folder.value == "") || (document.addForm.add_folder.value == " ")) valid = false;	if (!valid) {		alert("Please enter a valid folder name for the new module. Do not use the following reserved symbols:\r!, @, #,^\rsingle or double quotes\rforward or back slashes");		document.addForm.add_folder.focus();		document.addForm.add_folder.select();		return;	}	if (valid) {		moduleNumber++;		title[moduleNumber-1] = document.addForm.add_title.value;		folder[moduleNumber-1] = document.addForm.add_folder.value;		writeToCookie();		location.reload();	}}function removeModule()  {	var match = false;	var title_entry = document.addForm.add_title.value.toLowerCase();	var folder_entry = document.addForm.add_folder.value.toLowerCase();	for (var i=0;i<folder.length;i++) {		if (folder[i].toLowerCase() == folder_entry) {match = true;break;}		if (title[i].toLowerCase() == title_entry) {match = true;break;}	}	if (!match) {		alert("No such module exists! To remove a module, enter either a title or a folder name from the list above.");		return;	}	else {		for (var i=0;i<folder.length;i++) {			if ((folder[i].toLowerCase() == folder_entry) || (title[i].toLowerCase() == title_entry)) {				folder.splice(i,1);				title.splice(i,1);			}		}	}	moduleNumber--;	writeToCookie();	location.reload();}function openTopic()	{}function openModule(mod) {	var state = checkRequired();	if (state == "okay") {		this_module = mod;		var target = "module_fs.html";		//var target = "module_fs.html?"+escape(topic+"+"+chapter+"+"+title);		eval(mod+"_win = window.open('"+target+"','"+mod+"_win','width="+getFullScreenWidth()+",height="+getFullScreenHeight()+",screenX="+getXposition(getFullScreenWidth())+",screenY="+getYposition(getFullScreenHeight())+",scrollbars=1,menubar=0,toolbar=0,status=0,resizable=0')");		eval(mod+"_win.focus()");	}	else {		if (navigator.appName != "Netscape") still_win = window.open('stills/index.html','still_winX');		else {			var w = 620;			var h = 470;			state = escape(state+"+tutorialsupport@worthpub.com");			status_win = eval("window.open('bin3d_accesserror.html?"+state+"','status_winX','width="+w+",height="+h+",screenX="+getXposition(w)+",screenY="+getYposition(h)+",scrollbars=1,menubar=0,toolbar=0,status=0,resizable=0')");		}	}}function changeRoll(content) {	parent.ftitle.document.rollbox.src="images/rollover"+content+".gif";}function openProtArch() {	if (checkRequired()) parent.location.href="lold/index.html";	else  {		if (navigator.appName == "Netscape") status_win = window.open('statusno.html','status_winX','width=300,height=300,screenX=10,screenY=10,scrollbars=1,menubar=0,toolbar=0,status=1,resizable=0');		else {			var source = "stills/index.html";			still_win = window.open(source,'still_winC');		}	}}function openHelp(helpPage)  {	var folder = "help/";	if (site == "ecs") folder = "ehelp/";	var source = folder.concat(helpPage).concat(".html");	var w = 620;	var h = 470;	help_win = eval("window.open('"+source+"','help_winX','width="+w+",height="+h+",screenX="+getXposition(w)+",screenY="+getYposition(h)+",scrollbars=1,menubar=0,toolbar=0,status=1,resizable=0')");	help_win.focus();}/*  File 'index_fcns.js' written by Timothy Driscoll.  *//*  Latest revision February 22, 2001 */