<!--// this is a js file
//<!-- want to create a cookie, set it's value, and read it.
// we need 2 functions - one to set, one to get.
//first, see if we have cookies for this document named cpyRight
function gotCookie() {
	var gotCookies = document.cookie;
	var cRight = gotCookies.indexOf("copyRight=");
	if (document.cookie != "") {
		if (cRight != -1) {
			var start= cRight + 10; //start of the value
			var end = gotCookies.indexOf(";");  // the end of the cookie value
			if (end == -1) end = gotCookies.length ; // only one value, which should not be true
			var value = gotCookies.substring(start, end);
			value =  unescape(value);  
			if (value == "true") return true ;
		}
	} else {
	return false ;
	}
}

function setCookie() {
	var expdate = new Date()
	expdate.setTime(expdate.getTime() + 31536000000) ;   // 365 days in the future ;
	document.cookie = "copyRight=true; expires=" + expdate.toGMTString()+ "; path=/;" ;	
	document.location = "portfolio.shtm";
	return true;
}	

function delCookie() {
	document.cookie= "copyRight=false; expires=Friday, 02-Jan-1970 00:00:00 GMT" ;	
	document.location  = "http://lcweb.loc.gov/copyright/" ;
}

function checkCopyRight(target) {
	gotCookie();
	if (gotCookie()) {
	document.location = target
	} else {
	document.location = "copyright.shtm" ;
	}
}

function justsee(){
	alert(document.cookie);
}


 //-->