function DataAwareSignature()
  {
  //the TXT field has to be placed off the page. Set the TXT field's default value to zero to disable the sig field by default
  var TEAWEB_SIG_A_1_TXT = this.getField("TEAWEB_SIG_A_1_TXT");
  TEAWEB_SIG_A_1_TXT.value = "0";
	
  var TEAWEB_SIG_JN1_1_TXT = this.getField("TEAWEB_SIG_JN1_1_TXT");
    TEAWEB_SIG_JN1_1_TXT.value = "0";

  //To show the checkbox when processing - make sure the hidden property is checked so that the CB does not show on archived copy
  var IMM_UNL_CSTM_CERT_1_FLAG = this.getField("IMM_UNL_CSTM_CERT_1_FLAG");
  CSForm.getField("IMM_UNL_CSTM_CERT_1_FLAG").setHidden(false);
 
  var IMM_UNL_CSTM_CERT_2_FLAG = this.getField("IMM_UNL_CSTM_CERT_2_FLAG");
  CSForm.getField("IMM_UNL_CSTM_CERT_2_FLAG").setHidden(false);
  
 //If the checkbox is checked then set the TXT value to 1 - that enableds the SIG field
  if (IMM_UNL_CSTM_CERT_1_FLAG.value == "1")
	{
   TEAWEB_SIG_A_1_TXT.value = "1";
  }

  if (IMM_UNL_CSTM_CERT_2_FLAG.value == "1")
	{
  TEAWEB_SIG_JN1_1_TXT.value = "1";
  }

  }

function IMM_UNL_CSTM_CERT_1_FLAG_PDFMouseExit()
{
DataAwareSignature();
}

function IMM_UNL_CSTM_CERT_2_FLAG_PDFMouseExit()
{
DataAwareSignature();
}