<!-- Begin
function validate()
{
// Check the length of the value of the element named text_name
// from the form named form_name if it's < 16 and > 16 characters
// display a message asking for different input
if ((charcount.Pin.value.length < 16) || (charcount.Pin.value.length > 16))
{
// Build alert box message showing how many characters entered
mesg = "You have entered " + charcount.Pin.value.length + " character(s)\n"
mesg = mesg + "Pins must be 16 characters.\n"
mesg = mesg + "Please try again."
alert(mesg);
// Place the cursor on the field for revision
charcount.Pin.focus();
// return false to stop further processing
return (false);
}
// If text_name is not null continue processing
return (true);
}
//  End -->
