// 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 showFloorplan(filename){
	popup = window.open(filename,"myWindow",
	"height=600,width=750,left=10,top=10,menubar=yes,scrollbars=yes,scrollable=yes,resizable=1");
}

function showPlanner(filename){
	popup = window.open(filename,"myWindow",
	"height=600,width=760,left=10,top=10,menubar=yes,scrollbars=yes,scrollable=yes,resizable=1");
}


