
//Start - Function for enabling the signature
  function DataAwareSignature()
  {
  var TEAWEB_SIG_A_1_TXT = this.getField("TEAWEB_SIG_A_1_TXT");
  TEAWEB_SIG_A_1_TXT.value = "0";

  var TEAWEB_SIG_A_2_TXT = this.getField("TEAWEB_SIG_A_2_TXT");
  TEAWEB_SIG_A_2_TXT.value = "0";

  var TEAWEB_SIG_A_3_TXT = this.getField("TEAWEB_SIG_A_3_TXT");
  TEAWEB_SIG_A_3_TXT.value = "0";

  var TEAWEB_SIG_C_1_TXT = this.getField("TEAWEB_SIG_C_1_TXT");
  TEAWEB_SIG_C_1_TXT.value = "0";

  var TEAWEB_SIG_C_2_TXT = this.getField("TEAWEB_SIG_C_2_TXT");
  TEAWEB_SIG_C_2_TXT.value = "0";
  
  //Checkboxes are revealed, but are hidden on Preview in Session Details
  var CSTM_CANCEL_FLAG = this.getField("CSTM_CANCEL_FLAG");
  CSForm.getField("CSTM_CANCEL_FLAG").setHidden(false);
 
   var CSTM_ACKNOWLEDGE_FLAG = this.getField("CSTM_ACKNOWLEDGE_FLAG");
  CSForm.getField("CSTM_ACKNOWLEDGE_FLAG").setHidden(false);

  var CSTM_NONCANCELLATION_FLAG = this.getField("CSTM_NONCANCELLATION_FLAG");
  CSForm.getField("CSTM_NONCANCELLATION_FLAG").setHidden(false);
  
  if (CSTM_CANCEL_FLAG.value == "1")
  {
	TEAWEB_SIG_A_1_TXT.value = "1";
  }

  if (CSTM_ACKNOWLEDGE_FLAG.value == "1")
  {
	TEAWEB_SIG_A_2_TXT.value = "1";
	TEAWEB_SIG_C_1_TXT.value = "1";
  }

  if (CSTM_NONCANCELLATION_FLAG.value == "1")
  {
	TEAWEB_SIG_A_3_TXT.value = "1";
	TEAWEB_SIG_C_2_TXT.value = "1";
  }
 
  }
  //End - Function for enabling the signature 
  

function CSTM_CANCEL_FLAG_PDFMouseExit()
{
DataAwareSignature();
}

function CSTM_ACKNOWLEDGE_FLAG_PDFMouseExit()
{
DataAwareSignature();
}

function CSTM_NONCANCELLATION_FLAG_PDFMouseExit()
{
DataAwareSignature();
}