function confirmLink(){
	/* Cancel this link if the map isn't loaded. */
	if (top.PRIMARY.GetCookies(0)=="loaded"){
		return true
		window.status='';
	}else{
		window.status='Please wait for map to load fully.';
		return false
	}
}

searchstr = location.search.substring(1,location.search.length);
if (searchstr == ""){
	var thisHREF = document.location.href;
	var thisDocument = thisHREF.substring(top.PRIMARY.baseURL.length,thisHREF.length);
	var thisBookmarkableDocument = thisHREF.substring(top.PRIMARY.baseURL.length,thisHREF.indexOf('.html'));
	document.write(
	'<P><BR><IMG SRC="images/polygon_profile_footer.gif" WIDTH="395" HEIGHT="18" BORDER="0" USEMAP="#footermap"><BR></P>' +
	'<MAP NAME="footermap">' +
	'<AREA SHAPE="rect" COORDS="0,0,196,16" HREF="' +  thisDocument + '?printable\" ' +
	'TARGET="_blank" onMouseOver="window.status=\'Printable Version\';return true" ' +
	'onMouseOut="window.status=\' \';return true"' +
	'onClick="return confirmLink()">' +
	'<AREA SHAPE="rect" COORDS="198,0,395,16" HREF="index.html?' + thisBookmarkableDocument + '" ' +
	'TARGET="_top" onMouseOver="window.status=\'Bookmark this page\';return true" ' +
	'onMouseOut="window.status=\' \';return true" ' +
	'onClick="return confirmLink()" ALT="Click prior to bookmarking this page.">' +
	'</MAP>')

	var thisHREF = top.PRIMARY.baseURL + top.PRIMARY.GetCookies(1) + ".html";
	document.write(
	'<P ALIGN="CENTER"><A HREF="' + thisHREF + '" onMouseOver=\"window.status=\'Return to Report ' +
	parseInt(thisHREF.substring(thisHREF.indexOf("_") + 1,thisHREF.lastIndexOf("_"))) + '\';return true\" onMouseOut=\"window.status=\' \';return true\">' +
	'<FONT FACE="VERDANA,ARIAL,HELVETICA,sans-serif" SIZE="2" COLOR="#660000"><B>RETURN TO REPORT ' + (thisHREF.substring(thisHREF.indexOf("_") + 1,thisHREF.lastIndexOf("_"))) + '</B></FONT></A></P>')
}
