<!--//

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

var current = "";

/* Function highlights left nav section when subnavs are chosen */
function highlight(id){

var x = document.getElementById(id);

if (x)
{
x.style.color = "#FA9A00";
x.onmouseout = "";
x.onmouseover = "";

}
}

function show(name)
{
current = name;
var tip = document.getElementById(name);

if (tip)
{
//var flyimg = eval('document.all.img' + name);
tip.style.visibility = "visible";
}
}

function hide(name)
{
var tip = document.getElementById(name);
if (tip)
{
tip.style.visibility = "hidden";
current="";
}
}


function show_hide(num)
{

	closeAll(num);

	a = eval("link" + num + "_icon")
	b = eval("link" + num + "_div")
	
	if(a.innerText=='+')
	{	
		a.innerText='-';
		b.style.display='';
	}else{
		a.innerText='+';
		b.style.display='none';
	}	

 }
 
 
function closeAll(num)
{
	for(i=0;i<12;i++)
	{
		if(i!=num)
		{
			c = eval("link" + i + "_icon")
			d = eval("link" + i + "_div")
			c.innerText='+';
			d.style.display = 'none';
		}
	}
}

/*
function framePrint(frameName)
{ parent[frameName].focus();
  parent[frameName].print();
} 
*/

function showLayer(my_first, my_second)
	{
			//alert(my_first + " " + my_second)
			for(i=0; i<document.all.length; i++)
				{
					if(document.all[i].see == 1)
						{
							if(document.all[i].first == my_first && document.all[i].second == my_second )
									{
										document.all[i].style.display = "block"
										//document.getElementById("layer1").style.visibility ='visible';
										//document.pdis_wrapper.document.layers["layer1"].visibility='show';
									}
							else
									{
										document.all[i].style.display = "none"	
										//document.getElementById("layer2").style.visibility ='hidden';
										//document.pdis_wrapper.document.layers["layer2"].visibility='hide';
									}	
						}	
				} 
	}


function getselection(itemval,yearval)
	{
		showLayer(Number(itemval), Number(yearval));
	}

	
function MM_openBrWindow(theURL,winName,features) 
{
  window.open(theURL,winName,features);
}

function print_page_mod(pname,pid)
{
var cprint = window.open(pname,pid);
cprint.document.close();
cprint.print();
}

/*
function print_page(id)
{
	var x = document.getElementById(id);
	
	if (x) {
	window.TaxUpdate.print('TaxUpdate_Print.asp')
	}
}
*/

function print_all()
{
var cprint = window.open('PrintAll.asp','PrintAll');
cprint.document.close();
cprint.print();
}

function checkEmail()
	{
	//alert("Step1")
	var e = document.sendmailreq;
	var aler = "Please fill out the following field:\r\n\n"
	
	if ((e.emailreq.value == "") || (e.emailreq.value == "e-Mail Address")) {
	aler = aler + "Email Address\r"
	e.emailreq.focus()
	}
	
	if ((e.Name.value == "") || (e.Name.value == "User Name")) {
	aler = aler + "User Name\r"
	e.emailreq.focus()
	}
	
	if(aler != "Please fill out the following field:\r\n\n")
	{
	//alert("Step2");
	alert(aler);
	return false;
	}
	//alert("Step3");
	e.submit();
	
	}
		
//-->