// JavaScript Document

function validate_accesscode(field,alerttxt)
{
with (field)
  {
  if (value==null||value==""||value.length<8)
    {
    alert(alerttxt);return false;
    }
  else
    {
    return true;
    }
  }
}

function validate_password(field,alerttxt)
{
with (field)
  {
  if (value==null||value==""||value.length<6)
    {
    alert(alerttxt);return false;
    }
  else
    {
    return true;
    }
  }
}

	
function validate(thisform)
{
with (thisform)
  {
  if (validate_accesscode(accesscode,"Accesscode is incorrect!")==false)
  {accesscode.focus();return false;}
  
  
  if (validate_password(password,"Password is incorrect!")==false)
  {password.focus();return false;}
  
	
  }
}

