var da = (document.all) ? 1 : 0;
var pr = (window.print) ? 1 : 0;

function printPage(frame, arg) 
{  
	if (frame == window) 
	{
	    if (pr) { window.print();  }
		else { alert("Sorry, your browser doesn't support this feature."); }
	} 
	else 
	{ 
		link = arg;
		if (pr && da) { frame.focus(); window.print();  link.focus();  } 
		else if (pr) { frame.print(); } 
		else { alert("Sorry, your browser doesn't support this feature."); }
	} 
	return false; 
}

function troubleshooting(numb)
{
	if(document.getElementById("ts"+numb).style.display == "none")
	{
		document.getElementById("ts"+numb).style.display = "";
		document.getElementById("showHide"+numb).src = "images/hide.gif";
	}
	else 
	{
		document.getElementById("ts"+numb).style.display = "none";
		document.getElementById("showHide"+numb).src = "images/show.gif";
	}
}
// function for opening pictures in a popup window
function WinOpen(url,name,x,y,z)
{
	var posX = (screen.width/2)-(x/2);
	var posY = (screen.height/2)-(y/2);
	var winPref = "width=" + x + ",height=" + y
				+ ",innerWidth=" + x + ",innerHeight=" + y
				+ ",left=" + posX + ",top=" + posY
				+ ",screenX=" + posX + ",screenY=" + posY
				+ ",toolbar=" + z + ",location=0,directories=0,status=" + z
				+ ",menubar=" + z + ",scrollbars=1,resizable=1,width=" + x
				+ ",height=" + y;
	var remoteWin = null;
	remoteWin = window.open(url,name,winPref);
	if (window.focus)
	{
		remoteWin.focus();
	}
}

function copyrightyear()
{
	var curdate = new Date();
	var year = curdate.getYear();
	document.write(year);	
}