// these scripts loaded in the template: inc_page_begin.cfm

function firstFocus()	// causes cursor focus on first field in a form
{
   if (document.forms.length > 0 && !(document.aeForm))
   {
      var TForm = document.forms[0];
      for (i=0;i<TForm.length;i++)
      {
         if ((TForm.elements[i].type=="text")||
		   (TForm.elements[i].type=="password")||
           (TForm.elements[i].type=="textarea")||
           (TForm.elements[i].type.toString().charAt(0)=="s"))
         {
            document.forms[0].elements[i].focus();
            break;
         }
      }
   }
}

function popWindow(filename){
	popup = window.open(filename,"myWindow",
	"height=320,width=550,left=30,top=80,menubar=no,status=yes,scrollbars=yes,scrollable=yes,resizable=1");
}

function showWindow(filename){
	popup = window.open(filename,"myWindow",
	"height=600,width=650,left=10,top=10,menubar=no,scrollbars=yes,scrollable=yes,resizable=1");
}

function menuOn_1(cell) {
	cell.style.background="#4C4B4B";
	cell.style.color="#FFFFFF";
}
function menuOff_1(cell) {
	cell.style.background="#FFFFFF";
	cell.style.color="#000000";
}

function menuOn_2(cell) {
	cell.style.background="#4C4B4B";
	cell.style.color="#FFFFFF";
}
function menuOff_2(cell) {
	cell.style.background="#C0C0C0";
	cell.style.color="#000000";
}

function menuOn_3(cell) {
	cell.style.background="#4C4B4B";
	cell.style.color="#FFFFFF";
}
function menuOff_3(cell) {
	cell.style.background="#808080";
	cell.style.color="#000000";
}