
function open_pdfx(anchor,FN, PF,PT)
{
//anchor.removeAttribute('href');
var urlstring = "";
urlstring = "/pdfx/?WM=WM_Nessuno&FD=FD_B&RS=T" + "&FN=" + FN + "&PF="+ PF + "&PT=" + PT;
//alert(urlstring);
//<a href="/pdfx/?PF=1&amp;PT=210&amp;FN=C_L_03-06-08.pdf&amp;FD=FD_A&amp;RS=T&amp;&amp;WM=WM_Nessuno"><img src="/_assets/acrologo.gif" Border=0>&rarr; Download Complete AGENDA Package (6.67MB)</a></b></font></p>
//www.ocwd.com/pdfx/default.aspx?PF=1&PT=1&VM=x&WM=WM_Nessuno
winHandle=window.open(urlstring);// + \"?newwin=true\", \"_top\", \"width=\"+wwidth+\",height=\"+wheight+\",location=0,menubar=0,resizable=no,scrollbars=no,status=yes,titlebar=no,dependent=yes\");
//winHandle=window.open(urlstring + \"?newwin=true\", \"_top\", \"width=\"+wwidth+\",height=\"+wheight+\",location=0,menubar=0,resizable=no,scrollbars=no,status=yes,titlebar=no,dependent=yes\");
//anchor.href = "";
return false;
}

function write_logo()
{
	var Footer_is = "<BR/><Hr align=center witdh='100%'>"  +
			 "<p align=center style='FONT-SIZE: x-small; color:black'>" +
			 "	©" + get_month() + "-2008 Orange County Water District. All Rights Reserved." +
			 "	<BR> Last modified date: " + document.lastModified +
				"<BR><BR>";
document.write(Footer_is);				
		if (window.location.hostname.indexOf("gwrsystem.com")>=0)
		{
				document.write ("<Img Src='http://gwrsystem.com/images/home_r1_c1.gif'></P>");
		}
		else if (window.location.hostname.indexOf("ocwd")>=0)
		{
				document.write ("<a href='http://" + window.location.hostname + "' target='_self' Title='Back to home page'> <Img Src='http://www.ocwd.com/images/ologo.jpg' border=0></a></P>");
		}
}

function get_month()
{
var m_names = new Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
var d = new Date(document.lastModified);//new Date();//document.lastModified;//new Date();
//alert (d);
var curr_date = d.getDate();
var curr_month = d.getMonth();
var curr_year = d.getFullYear();
//document.write(curr_date + "-" + m_names[curr_month] + "-" + curr_year);
return m_names[curr_month];
}
