// ADD_HEADER

function add_header(section)
 { 
 	//alert(ssjs_getCGIVariable(PATH_INFO));
	document.write("<table border=0 summary=format>");
	document.write("<tr valign=\"top\">");
	document.write("<!--- ORPTS Banner --->");
	if (section == "home")
	{
	document.write("<td colspan=2>");
		document.write("<img src=\"/images/base_banner.gif\" width=600 height=70 border=0 alt=\"Office of Real Property Tax Services\" usemap=\"#Header\">");
		document.write("<map name=\"Header\">");
              document.write("<area shape=\"rect\" coords=\"507,29,597,69\" href=\"/reform/index.cfm\" alt=\"Property Tax Reform\">");
              document.write("<area shape=\"rect\" coords=\"391,29,506,69\" href=\"/home/etld_index.cfm\" alt=\"Equalization &amp; Tax Levy Distribution\">");
              document.write("<area shape=\"rect\" coords=\"285,29,390,69\" href=\"/home/fpp_index.cfm\" alt=\"Form, Publications &amp; Procedures\">");
              document.write("<area shape=\"rect\" coords=\"199,29,284,69\" href=\"/home/tpe_index.cfm\" alt=\"Tax Policy &amp; Exemptions\">");
              document.write("<area shape=\"rect\" coords=\"111,29,198,69\" href=\"/individuals/index.cfm\" alt=\"Taxpayer Rights &amp; Information\">");
              document.write("<area shape=\"rect\" coords=\"0,29,110,69\" href=\"/home/varp_index.cfm\" alt=\"Valuing &amp; Assessing Real Property\">");
              document.write("<area shape=\"rect\" coords=\"51,0,367,26\" href=\"/index.cfm\" alt=\"Office of Real Property Tax Services\">");
		document.write("</map>");
	document.write("</td>");
	}
	else if (section == "etld")
	{
		document.write("<td colspan=2>");
		document.write("<img src=\"/images/etld_banner.gif\" width=600 height=100 border=0 alt=\"Office of Real Property Tax Services\" usemap=\"#Header\">");
		document.write("<map name=\"Header\">");
              document.write("<area shape=\"rect\" coords=\"507,29,597,69\" href=\"/reform/index.cfm\" alt=\"Property Tax Reform\">");
              document.write("<area shape=\"rect\" coords=\"391,29,506,79\" href=\"/home/etld_index.cfm\" alt=\"Equalization &amp; Tax Levy Distribution\">");
              document.write("<area shape=\"rect\" coords=\"285,29,390,69\" href=\"/home/fpp_index.cfm\" alt=\"Form, Publications &amp; Procedures\">");
              document.write("<area shape=\"rect\" coords=\"199,29,284,69\" href=\"/home/tpe_index.cfm\" alt=\"Tax Policy &amp; Exemptions\">");
              document.write("<area shape=\"rect\" coords=\"111,29,198,69\" href=\"/individuals/index.cfm\" alt=\"Taxpayer Rights &amp; Information\">");
              document.write("<area shape=\"rect\" coords=\"0,29,110,69\" href=\"/home/varp_index.cfm\" alt=\"Valuing &amp; Assessing Real Property\">");
              document.write("<area shape=\"rect\" coords=\"51,0,367,26\" href=\"/index.cfm\" alt=\"Office of Real Property Tax Services\">");
		document.write("</map>");
	document.write("</td>");
	}
	else if (section == "fpp")
	{
	document.write("<td colspan=2>");
		document.write("<img src=\"/images/fpp_banner.gif\" width=600 height=100 border=0 alt=\"Office of Real Property Tax Services\" usemap=\"#Header\">");
		document.write("<map name=\"Header\">");
              document.write("<area shape=\"rect\" coords=\"507,29,597,69\" href=\"/reform/index.cfm\" alt=\"Property Tax Reform\">");
              document.write("<area shape=\"rect\" coords=\"391,29,506,69\" href=\"/home/etld_index.cfm\" alt=\"Equalization &amp; Tax Levy Distribution\">");
              document.write("<area shape=\"rect\" coords=\"285,29,390,79\" href=\"/home/fpp_index.cfm\" alt=\"Form, Publications &amp; Procedures\">");
              document.write("<area shape=\"rect\" coords=\"199,29,284,69\" href=\"/home/tpe_index.cfm\" alt=\"Tax Policy &amp; Exemptions\">");
              document.write("<area shape=\"rect\" coords=\"111,29,198,69\" href=\"/individuals/index.cfm\" alt=\"Taxpayer Rights &amp; Information\">");
              document.write("<area shape=\"rect\" coords=\"0,29,110,69\" href=\"/home/varp_index.cfm\" alt=\"Valuing &amp; Assessing Real Property\">");
              document.write("<area shape=\"rect\" coords=\"51,0,367,26\" href=\"/index.cfm\" alt=\"Office of Real Property Tax Services\">");
		document.write("</map>");
	document.write("</td>");
	}
	else if (section == "ptsr")
	{
	document.write("<td colspan=2>");
		document.write("<img src=\"/images/rs_banner.gif\" width=600 height=100 border=0 alt=\"Office of Real Property Tax Services\" usemap=\"#Header\">");
		document.write("<map name=\"Header\">");
              document.write("<area shape=\"rect\" coords=\"507,29,597,79\" href=\"/reform/index.cfm\" alt=\"Property Tax Reform\">");
              document.write("<area shape=\"rect\" coords=\"391,29,506,69\" href=\"/home/etld_index.cfm\" alt=\"Equalization &amp; Tax Levy Distribution\">");
              document.write("<area shape=\"rect\" coords=\"285,29,390,69\" href=\"/home/fpp_index.cfm\" alt=\"Form, Publications &amp; Procedures\">");
              document.write("<area shape=\"rect\" coords=\"199,29,284,69\" href=\"/home/tpe_index.cfm\" alt=\"Tax Policy &amp; Exemptions\">");
              document.write("<area shape=\"rect\" coords=\"111,29,198,69\" href=\"/individuals/index.cfm\" alt=\"Taxpayer Rights &amp; Information\">");
              document.write("<area shape=\"rect\" coords=\"0,29,110,69\" href=\"/home/varp_index.cfm\" alt=\"Valuing &amp; Assessing Real Property\">");
              document.write("<area shape=\"rect\" coords=\"51,0,367,26\" href=\"/index.cfm\" alt=\"Office of Real Property Tax Services\">");
		document.write("</map>");
	document.write("</td>");
	}
	else if (section == "tpe")
	{
	document.write("<td colspan=2>");
		document.write("<img src=\"/images/tpe_banner.gif\" width=600 height=100 border=0 alt=\"Office of Real Property Tax Services\" usemap=\"#Header\">");
		document.write("<map name=\"Header\">");
              document.write("<area shape=\"rect\" coords=\"507,29,597,69\" href=\"/reform/index.cfm\" alt=\"Property Tax Reform\">");
              document.write("<area shape=\"rect\" coords=\"391,29,506,69\" href=\"/home/etld_index.cfm\" alt=\"Equalization &amp; Tax Levy Distribution\">");
              document.write("<area shape=\"rect\" coords=\"285,29,390,69\" href=\"/home/fpp_index.cfm\" alt=\"Form, Publications &amp; Procedures\">");
              document.write("<area shape=\"rect\" coords=\"199,29,284,79\" href=\"/home/tpe_index.cfm\" alt=\"Tax Policy &amp; Exemptions\">");
              document.write("<area shape=\"rect\" coords=\"111,29,198,69\" href=\"/individuals/index.cfm\" alt=\"Taxpayer Rights &amp; Information\">");
              document.write("<area shape=\"rect\" coords=\"0,29,110,69\" href=\"/home/varp_index.cfm\" alt=\"Valuing &amp; Assessing Real Property\">");
              document.write("<area shape=\"rect\" coords=\"51,0,367,26\" href=\"/index.cfm\" alt=\"Office of Real Property Tax Services\">");
		document.write("</map>");
	document.write("</td>");
	}
	else if (section == "tri")
	{
	document.write("<td colspan=2>");
		document.write("<img src=\"/images/tri_banner.gif\" width=600 height=100 border=0 alt=\"Office of Real Property Tax Services\" usemap=\"#Header\">");
		document.write("<map name=\"Header\">");
              document.write("<area shape=\"rect\" coords=\"507,29,597,69\" href=\"/reform/index.cfm\" alt=\"Property Tax Reform\">");
              document.write("<area shape=\"rect\" coords=\"391,29,506,69\" href=\"/home/etld_index.cfm\" alt=\"Equalization &amp; Tax Levy Distribution\">");
              document.write("<area shape=\"rect\" coords=\"285,29,390,69\" href=\"/home/fpp_index.cfm\" alt=\"Form, Publications &amp; Procedures\">");
              document.write("<area shape=\"rect\" coords=\"199,29,284,69\" href=\"/home/tpe_index.cfm\" alt=\"Tax Policy &amp; Exemptions\">");
              document.write("<area shape=\"rect\" coords=\"111,29,198,79\" href=\"/individuals/index.cfm\" alt=\"Taxpayer Rights &amp; Information\">");
              document.write("<area shape=\"rect\" coords=\"0,29,110,69\" href=\"/home/varp_index.cfm\" alt=\"Valuing &amp; Assessing Real Property\">");
              document.write("<area shape=\"rect\" coords=\"51,0,367,26\" href=\"/index.cfm\" alt=\"Office of Real Property Tax Services\">");
		document.write("</map>");
	document.write("</td>");
	}
	else if (section == "varp")
	{
	document.write("<td colspan=2>");
		document.write("<img src=\"/images/varp_banner.gif\" width=600 height=100 border=0 alt=\"Office of Real Property Tax Services\" usemap=\"#Header\">");
		document.write("<map name=\"Header\">");
              document.write("<area shape=\"rect\" coords=\"507,29,597,69\" href=\"/reform/index.cfm\" alt=\"Property Tax Reform\">");
              document.write("<area shape=\"rect\" coords=\"391,29,506,69\" href=\"/home/etld_index.cfm\" alt=\"Equalization &amp; Tax Levy Distribution\">");
              document.write("<area shape=\"rect\" coords=\"285,29,390,69\" href=\"/home/fpp_index.cfm\" alt=\"Form, Publications &amp; Procedures\">");
              document.write("<area shape=\"rect\" coords=\"199,29,284,69\" href=\"/home/tpe_index.cfm\" alt=\"Tax Policy &amp; Exemptions\">");
              document.write("<area shape=\"rect\" coords=\"111,29,198,69\" href=\"/individuals/index.cfm\" alt=\"Taxpayer Rights &amp; Information\">");
              document.write("<area shape=\"rect\" coords=\"0,29,110,79\" href=\"/home/varp_index.cfm\" alt=\"Valuing &amp; Assessing Real Property\">");
              document.write("<area shape=\"rect\" coords=\"51,0,367,26\" href=\"/index.cfm\" alt=\"Office of Real Property Tax Services\">");
		document.write("</map>");
	document.write("</td>");
	}
	else
	{
	document.write("<td colspan=2>");
		document.write("<font class=\"heading\">An invalid section has been entered into the add_header() function</font>");
	document.write("</td>");
	}
document.write("</tr>");
document.write("<tr><td height=5></td></tr>");
document.write("</table>");
}


// ADD_FOOTER

function add_footer()
{ 
	// Last Modified Prep
	var lastmod = document.lastModified
	var lastmoddate = Date.parse(lastmod)
	
	document.write("<table width=\"550\"><tr><td align=\"center\">");
	if (lastmoddate != 0)
	{
		document.write("<table width=\"500\"><tr><td align=\"center\" class=\"email\">");
		document.write("<br>Last Modified on:  ", document.lastModified, "");
		document.write("</td></tr></table>");
	}
	document.write("<table border=0 width=\"500\">");
	document.write("<tr><td width=40></td><td valign=\"bottom\" colspan=3 align=\"center\"><br><font class=\"email\">");
	/* Added 9/13/2010 by TKR */
	document.write("| <a href=\"/home/accessibility.htm\">Accessibility</a> | ");
	document.write("<a href=\"/home/privacy.htm\">Privacy and Security Notice</a> | ");
	document.write("<a href=\"/home/disclaimer.htm\">Disclaimer</a> | ");
	document.write("<a href=\"/home/copyrite.htm\">Copyright</a> | ");
	document.write("<a href=\"/about/who.htm\">Contact Us</a> | ");
	
	
	/* Commented out 1/11/2010 by TKR
	document.write("<tr><td width=40></td>");
	document.write("<td  align=\"left\"><font class=\"email\">Questions/Comments: <a href=\"mailto:nysorps@orps.state.ny.us\" class=\"email\">nysorps@orps.state.ny.us</a></td>");
	document.write("<td align=\"right\"><br><font class=\"email\">(518) 474-2982</font></td>");
	document.write("</tr>");
	*/
	
	document.write("<tr>");
	document.write("<td width=40></td>");
	document.write("<td colspan=2 align=\"right\"><br><img src=\"/images/foot.gif\" width=408 height=17 border=0 alt=\"Copyright\"></td>");
	document.write("</tr>");
	document.write("</table>");
	document.write("</td></tr></table>");
}
//this function pops up to advise people of security changes to 128-bit encryption 3/22/02 CW
//new message change after encryption enabled 6/13/02 LM

function popWarning(){
			alert("ASSESSMENT COMMUNITY ACCESS" + "\n" 
			+ "_________________________________________" + "\n"
			+ "If you have trouble accessing" + "\n"
			+ "or using this application," + "\n"
			+ "please call the ORPS Help Desk" + "\n"
			+ "at 1-877-753-3230");
		}
		
		
				
		
//LMR - 7/2002
//Added for search form submission
function submit_form() {
	var errors = false;
	if (document.theform.exact_keyword.value == "") {
		alert("You must enter a keyword");
		errors = true;
	}
	if (errors == false) { 
      	// SUBMIT FORM
     	document.theform.submit(); 
  	} 
	return;
}



