I had this same issue. Here is what I did.
1) take everything out of the header except:
<!--*******************************************-->
<% ajaxedHeader(array()) %>
<!--*******************************************-->
2) then make your footer an empty page like this: (note the commented
out tags are just so you can see in when you view source)
<!--*******************************************-->
3) My <head> looks like this:
<html>
<head>
<title><%=Page_Title%></title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<!--#include file="Includes/BODY_Header1.asp" -->
<%
DIM UserListAjaxPage
set UserListAjaxPage = new AjaxedPage
UserListAjaxPage.DBConnection = true
UserListAjaxPage.draw()
sub init() : end sub
sub callback(txtCountDate)
IF IsDate(txtCountDate) THEN
UserListAjaxPage.return(db.getScalar("SELECT [Count] FROM tblCount
WHERE stuff = '"+otherstuff+"'", ""))
END IF
end sub
sub main()
%>
<script>
function countpostback(varwhatever) {$
('elementwhatever').value=varwhatever;}
</script>
</head>
<body>
<!--#include file="Includes/BODY_Header2.asp" -->
4) End your page with:
</body>
</html>
<%
end sub
%>
5) also note: you will have to read up on the config.asp page to
make that code work exactly as it is written there but after you have
done that you should have your solution on your header/footer issue.