//******************************************************
// Javascript for the International Petroleum Monthly web site
// File Name: ipm_prts.js
// Purpose: Display the data release time stamp
// Author: Charles A. Allen II (Tony)
// Date: July 18, 2003
// Version: 1.5
// Revision: Febuary 10, 2005
// IPM Release: July 2005
//******************************************************
<!-- Hide script from old web browsers
function PubReleaseTimeStamp()
{
	var arMonths;
	var lngPubReleaseMonth, lngPubReleaseDay, lngPubReleaseYear;
	var lngtodaydate, lngCurrentYear;
	var strPubReleaseMonthIndex;	
	var strNextPubReleaseMonth, lngNextPubReleaseYear;
	var strPubRelease, strCurrentRelease, strNextRelease, strPubIssue;
	
  // zero base index array
	arMonths = new Array("January","February","March","April","May","June","July","August","September", "October","November","December");	

	// set publication release month, day, and year value
	lngPubReleaseMonth = 9;
	lngPubReleaseDay = 7;
	lngPubReleaseYear = 2005;


	lngPubReleaseMonthIndex = lngPubReleaseMonth - 2;
	strPubIssue = "<tr><td align=left>" + arMonths[lngPubReleaseMonthIndex] + " " +  lngPubReleaseYear + " International Petroleum Monthly" + "</td></tr>";
	strCurrentRelease = "<tr><td align=left>Posted: " + arMonths[lngPubReleaseMonthIndex] + " " + lngPubReleaseDay + ", " + lngPubReleaseYear + "</td></tr>";

	if (lngPubReleaseMonth == 12)
	{
		strNextPubReleaseMonth = arMonths[0];
		lngNextPubReleaseYear = lngPubReleaseYear + 1;
	}
	else
	{
		strNextPubReleaseMonth = arMonths[lngPubReleaseMonthIndex + 1];
		lngNextPubReleaseYear =  lngPubReleaseYear;
	}
	strNextRelease = "<tr><td align=left>Next Update: Early " + strNextPubReleaseMonth + " " + lngNextPubReleaseYear + "</td></tr>";
	//display publication release time stamp
	strPubRelease = "<table border=0>" + strPubIssue + strCurrentRelease + strNextRelease + "</table>";
	document.write(strPubRelease);
	return;
}
function PageModifiedDate ()
{
	var m = "Page last modified on " + document.lastModified;
	var p = m.length-8;
	document.writeln("<center>");
	document.write(m.substring(p, 0));
	document.writeln("</center>");
	return;
}
-->
