function GetCookie(Name) {
	var search = Name + "="
	if (document.cookie.length > 0) {
		offset = document.cookie.indexOf(search) 
		if (offset != -1) {
			offset += search.length 
			// set index of beginning of value
			end = document.cookie.indexOf(";", offset) 
			// set index of end of cookie value
			if (end == -1) 
				end = document.cookie.length
			return unescape(document.cookie.substring(offset, end))
		}
	}
	return askCookie(Name);
}

function askCookie(name){
var today=new Date()
var myname=prompt("What is your name?","You")
if (myname==null){
return "";
}else{
document.cookie=name+"="+escape(myname)+"; expires=Tuesday, 7-7-98 00:00:00 GMT"
return myname;
}
}