<!--


function validate_staff() {



   if (document.forms[0].firstname.value.length==0) {
		alert ('Please enter the staff members FIRSTNAME');
		document.forms[0].firstname.focus();
		return;


}

    if (document.forms[0].surname.value.length==0) {
		alert ('Please enter the staff members SURNAME');
		document.forms[0].surname.focus();
		return;
}


    if (document.forms[0].title.value.length==0) {
		alert ('Please enter the staff members TITLE');
		document.forms[0].title.focus();
		return;
}

    if (document.forms[0].position.value.length==0) {
		alert ('Please enter the staff members POSITION IN THE FIRM');
		document.forms[0].position.focus();
		return;
}
 

    if (document.forms[0].phone.value.length==0) {
		alert ('Please enter the staff members PHONE NUMBER - direct line if available');
		document.forms[0].phone.focus();
		return;
}    
    
    
 

      else {
	   document.forms[0].submit();
              }
}  





function validate_group() {



   if (document.forms[newgroup].StaffGroupName.value.length==0) {
		alert ('Please enter a short STAFF GROUP NAME');
		document.forms[newgroup].StaffGroupName.focus();
		return;


}

 
      else {
	   document.forms[newgroup].submit();
              }
}        




function validate_nav1() {



   if (document.forms[0].nav1_text.value.length==0) {
		alert ('Please enter the menu option text - maximum of 25 characters');
		document.forms[0].nav1_text.focus();
		return;


}

 
      else {
	   document.forms[0].submit();
              }
}





     function AllDigit(MyObject)
     {len=MyObject.length;
     MyCount = 0;
     if (len > 0)
     {
     for(i=0;i<len;i++)
          {charMy = MyObject.charAt(i);
          if (charMy < "0" || charMy > "9")
               {
               return 0;
               MyCount = MyCount + 1;
               }
          }
     if (MyCount == 0)
          return 1;
     }
     }



function validatePeople() {

 
	
    if (AllDigit(document.forms[people].seated_Day.value) == 0){
               alert("Please enter a NUMBER for Seated People in the DAY OR enter 0");
               document.forms[people].seated_Day.focus();
	       return;
}
	

      else {
	   document.forms[people].submit();
              }
}


 

// --->    






