function nextPage(checkIt)
{ 	
	checkIt += ""
	if ((checkIt!="") && (checkIt != "undefined"))
		{goToURL = checkIt;} 
	else 
		{goToURL = theNext}
	if (ReadJSCookie("ss")=="2") SetJSCookie ("ss", "1")

	if (goToURL == "0") 
		{alert ("That's the last page");goToURL = ""; return false;} 
	else if ((goToURL != "")&&(goToURL != "undefined"))
		{ document.location.href = goToURL;return true } 
	else 
		{ return false; }
	
}


function previousPage (checkIt)
{ 	
	checkIt += ""
	if ((checkIt!="") &&(checkIt != "undefined"))
		{goToURL = checkIt;} 
	else 
		{goToURL = thePrevious;}
	if (ReadJSCookie("ss")=="1") SetJSCookie ("ss", "2")
	if (goToURL == "0") 
		{alert ("This is the first page"); return false;} 
	else if ((goToURL != "")&&(goToURL != "undefined"))
		{ document.location.href = goToURL; } 
	else 
		{ return true; }
}

function ignore ()
	{
	// alert('next'+goToURL+"; ss is "+ReadJSCookie("ss"))
	// alert('previous'+goToURL+"; ss is "+ReadJSCookie("ss"))
	}	


