<!--

  var glb_vfld;


  function setFocusDelayed() {
    glb_vfld.focus()
  }

  function setfocus(vfld) {
    // save vfld in global variable so value retained when routine exits
    glb_vfld = vfld;
    setTimeout( 'setFocusDelayed()', 100 );
  }
 
  fnOkayNZK= function() {
    setTimeout( 'setFocusDelayed()', 100 );
    return true;
  }
 
  fnGobackNZK= function() {
    setTimeout( 'setFocusDelayed()', 100 );
    history.go(-1);
    return true;
  }

  fnConfirmedNZK= function() {
    document.forms.f.submit();
  }

  fnCancelNZK= function() {
    setTimeout( 'setFocusDelayed()', 100 );
    return false;
  }

  fnAlertNZK = function(title, msg) {
    Alert.fnCustom( {
      'sTitle'    : title,
      'sMessage'  : msg,
      'sDisplay'  : 'aaab',
      'aoButtons' : [
        {
          'sLabel'    : 'OK',
        'sRollOverBG' : '1',
          'fnSelect'  : fnOkayNZK,
          'cPosition' : 'b'
        }
      ]
    } );
  }


  fnAlertNZKGoback = function(title, msg) {
    Alert.fnCustom( {
      'sTitle'    : title,
      'sMessage'  : msg,
      'sDisplay'  : 'aaab',
      'aoButtons' : [
        {
            'sLabel'      : 'OK',
            'sRollOverBG' : '1',
            'fnSelect'    : fnGobackNZK,
            'cPosition'   : 'b'
        }
      ]
    } );
  }

  function fnConfirmNZK(title, msg) {
    Alert.fnCustom( {
      'sTitle'    : title,
      'sMessage'  : msg,
      'sDisplay'  : 'abcd',
      'aoButtons' : [
        {
          'sLabel'      : 'Cancel',
          'sRollOverBG' : '1',
          'fnSelect'    : fnCancelNZK,
          'cPosition'   : 'a'
        },
        {
          'sLabel'      : 'OK',
          'sRollOverBG' : '1',
          'fnSelect'    : fnConfirmedNZK,
          'cPosition'   : 'd'
        }
      ]
    } );
  }

  <!---  NZK(2)  verify email addresses are equal  --->
  function verifySameEmail(a,b) {
    var e1 = a.value.toLowerCase();
    var e2 = b.value.toLowerCase();
    if (e1 != e2) {
      glb_vfld = a;
      vfld = a;
	    fnAlertNZK( "Addresses not the same",  "<b class='p14'><center>The two email addresses you supplied do not match.</b></center>" );
      setfocus(vfld);
      return false;
    }
    return true;
  } 


  function verifyConfirmEmail() {
    glb_vfld = document.forms.f.email2;
    glb_confirmed = false;
    var e1 = document.getElementById('email').value.toLowerCase();
    fnConfirmNZK( "Confirmation Required",  "<b class='p14'><center>Please confirm this email address is correct.\n\n\t" + e1 + "</b></center>" );
  } 

  function dontPaste(vfld) {
    glb_vfld = document.forms.f.email2;
    vfld = document.forms.f.email2;
    fnAlertNZK( "Special Request",  "<b class='p14'><center>Please don\'t cut/paste into this field.\nA mistake in the first email will simply be copied into the second email.</b></center>" );
    setfocus(vfld);
    return false;
  }

//-->
