/*
notebook.js
This script provides 'notebook'-like functionality to the users -
they can take notes and access them on the site at a later point or on any other page of the site.
Created by our ThinkQuest team - 'Outsourced Minds'
*/

function nbTextSave() {
	var nbText = document.nb.notebook.value;
	newCookie('notebook', nbText, 1);
}

function nbTextRetrieve() {
	i = getCookieVal('notebook');
	document.nb.notebook.value = i;
}

function nbShowHide(idname) {
	x = document.getElementById(idname);	
	if (x.className=='nbhide') {
		x.className='nbshow';
	} else {
		x.className='nbhide';
	}
}