function picWindow(image,height,width)
{
	newWin = window.open(image,"imageviewer","noresize,resizable=false,scrollbars=false,noscroll,height=" + height + ",width=" + width,false);
	newWin.focus();
}

function helpWindow(filename)
{
	newWin = window.open(filename,"helpviewer","height=500,width=500,scrollbars",false);
	newWin.focus();
}

function pdfWindow(filename)
{
	newWin = window.open(filename,"pdfviewer","resizable=1,height=500,width=750,scrollbars");
	newWin.focus();
}

function monthlyReportWindow(filename)
{
  cmrb = document.getElementById("createMonthlyReportButton");
	cmrb.title='Refresh page to open new report.';
  //setTimeout("cmrb.title='Refresh page to open new report.'",100);
  cmrl = document.getElementById("createMonthlyReportLink");
	newjs = "javascript:alert('Refresh page to open new report.')";
  setTimeout("cmrl.href = newjs",100);
	newWin = window.open(filename,"monthlyReportViewer","resizable=1,height=500,width=750,scrollbars");
	newWin.focus();
}

function setupWindow(filename)
{
	newWin = window.open(filename,"setupviewer","height=500,width=540,scrollbars",true);
	newWin.focus();
}

function trainWindow(filename)
{
	newWin = window.open(filename,"trainviewer","height=480,width=640",false);
	newWin.focus();
}

function maxWindow(filename)
{
	newWin = window.open(filename,"maxwindow");
	newWin.focus();
}

// handles setting focus on first input field of each page
// onload = function()
// {
//	 if (document.forms[0])
//	 {
// 		document.forms[0].elements[0].focus();
//	 }
// }