<?php



function mainHeader($page_title)
{
	startHeader();
	echo'<title>'. $page_title . '</title>';
	endHeader();
}


function headerWithJSDate($page_title)
{
	startHeader();
	echo'<title>'. $page_title . '</title>';
	echo'<script type="text/javascript">';

	echo'/***********************************************
* Drop Down Date select script- by JavaScriptKit.com
* This notice MUST stay intact for use
* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and more
***********************************************/';

	echo "var monthtext=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sept','Oct','Nov','Dec'];";

	echo "function populatedropdown(dayfield, monthfield, yearfield){
var today=new Date()
var dayfield=document.getElementById(dayfield)
var monthfield=document.getElementById(monthfield)
var yearfield=document.getElementById(yearfield)
for (var i=0; i<31; i++)
dayfield.options[i]=new Option(i+1, i+1)
dayfield.options[today.getDate()]=new Option(today.getDate(), today.getDate(), true, true) //select today's day
for (var m=0; m<12; m++)
monthfield.options[m]=new Option(monthtext[m], monthtext[m])
monthfield.options[today.getMonth()]=new Option(monthtext[today.getMonth()], monthtext[today.getMonth()], true, true) //select today's month
var thisyear=today.getFullYear()
for (var y=0; y<20; y++){
yearfield.options[y]=new Option(thisyear, thisyear)
thisyear+=1
}
yearfield.options[0]=new Option(today.getFullYear(), today.getFullYear(), true, true) //select today's year
}

</script>";

	endHeader();
}




function startHeader()
{
	echo'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
	echo'<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">';
	echo'<head>';
	echo'<meta http-equiv="content-type" content="text/html;charset=utf-8" />';
	echo'<link rel="stylesheet" href="template/aStyleSheet.css" type="text/css" />';
}
function endHeader()
{

	echo'</head>';
}