function GetAdminCookie()
{
        if (document.cookie.length > 0) {
                begin = document.cookie.indexOf("Personal_Keep_Out=");
                if (begin != -1) {
                        begin += "Personal_Keep_Out=".length+1;
                        end = document.cookie.indexOf(";", begin);
                        if (end == -1) end = document.cookie.length;
                        return unescape(document.cookie.substring(begin, end));
                }
        }
        return null;
}

function delAdminCookie()
{
        if (GetAdminCookie() != null) {
	    document.cookie = 'Personal_Keep_Out' + "=" +
                "; expires=Thu, 01-Jan-70 00:00:01 GMT";
	    location.reload(true)
        }
}

function AdminLinks()
{
	ADMIN = GetAdminCookie();
	if (ADMIN != null)
	{
	    document.write('<hr>')
	    document.write('Here are some administrative links that I hope only I can see:')
	    document.write('<table border=0 cellpadding=0 cellspacing=0 width=100%><tr>')
    	    document.write('<td><a href=# onclick="delAdminCookie()">Rest Admin Cookie</a></td>')
    	    document.write('<td align=center><a href=Ted_Home/Personal.html>Personal Bookmarks Page</a></td>')
    	    document.write('<td align=right><a href=Ted_Home/Airplane/Logbook.html>Airplane Log Book</a></td>')
	    document.write('<tr><td align=left><a href=http://www.google.com>Google Search</a></td>')
	    document.write('<td align=center><a href=http://www.Shutter4Hire.com>Shutter4Hire.com</a></td>')
	    document.write('<td align=right><a href=http://www.sullivan-central.com/cgi-bin/File_Upload_Handler.pl>')
	    document.write('Add a Special Day. :-)</a></td></tr></table>')
	}
	else
	{
		document.write('<hr><br>');
		document.write("<center><a href=http://www.stopglobalwarming.org/ target=blank><img src=http://www.stopglobalwarming.org/assets/banners/468x60/sgw_468_60_a.jpg alt=StopGlobalWarming.org border=0></img></a></center>");
	}
}

