function initialize()
   {
   currentObject="alocation"
   }
function focuslocation()
   {
   document.forms[0].txtType.value = ""
   document.forms[0].txtName.value = ""
   document.forms[0].cboStateID.focus()
   }
function focustype()
   {
   document.forms[0].cboStateID.selectedIndex = 0
   document.forms[0].txtName.value = ""
   document.forms[0].txtType.focus()
   }
function focusname()
   {
   document.forms[0].cboStateID.selectedIndex = 0
   document.forms[0].txtType.value = ""
   document.forms[0].txtName.focus()
   }
function hilitelocation(obj,selection,number)
   {
   document.forms[0].txtName.value = ""
   document.forms[0].txtType.value = ""
   obj.form[selection][number].checked=true
   }
function hilitetype(obj,selection,number)
   {
   document.forms[0].cboStateID.selectedIndex = 0
   document.forms[0].txtName.value = ""
   obj.form[selection][number].checked=true
   }
function hilitename(obj,selection,number)
   {
   document.forms[0].cboStateID.selectedIndex = 0
   document.forms[0].txtType.value = ""
   obj.form[selection][number].checked=true
   }
function checkform1(varsearch,vartype,varname,stateid)   {
   //State
   if (varsearch[0].checked && stateid == 0) {
      alert("When searching by Location, you must select a state.");
      document.forms[0].cboStateID.focus()
      return false;
   }
   //Category
   if (varsearch[1].checked && vartype.length < 3) {
      alert("When entering text in the Category, the text must be at least 3 characters.");
      document.forms[0].txtType.focus()
      return false;
   }
   //Name
   if (varsearch[2].checked && varname.length < 3) {
      alert("When entering text in the Name, the text must be at least 3 characters.");
      document.forms[0].txtName.focus()
      return false;
   }
}
