// 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");
}
