/* Write out the cookie to perform the resizing upon reload */
function textsizer(){
	var today = new Date();
	var expirenow = new Date(today.getTime());
	
	if (starter<0) {
		//If the cookie wasn't found, create it and make the size one bigger
		var the_cookie ="TEXTSIZE=medENDTEXTSIZE; path=/";
		document.cookie = the_cookie;
		window.location.reload( true );
	}
	else {
		//if there is no size specified (only possible if the sizer has been fully rotated once)
		//make the size one bigger
		if(size==""){
		var the_cookie ="TEXTSIZE=medENDTEXTSIZE; path=/";
		document.cookie = the_cookie;
		window.location.reload( true );
		}
		
		if (size=="med"){
			//if the cookie says the current size is medium, make it large
			var the_cookie ="TEXTSIZE=lrgENDTEXTSIZE; path=/";
			document.cookie = the_cookie;
			window.location.reload( true );
		}
		
		if (size=="lrg"){
			//if the cookie says the current size is large, rotate it back down to nothing
			//NOTE: the deletion of this cookie (using expires=) may not work, 
			//so that is why other code is used to check for existance above.
			var the_cookie ="TEXTSIZE=ENDTEXTSIZE; path=/";
			var the_cookie ="TEXTSIZE=ENDTEXTSIZE; expires="+expirenow+"; path=/";
			document.cookie = the_cookie;
			window.location.reload( true );
		
		}
	}
}

