function CheckCharMaxLenLimit(control,maxlength)
{    

var ErrorMsgID = control.id + "_$MAXLENGTH_ERROR_MSG$";    
var ErrorMsg = document.getElementById(ErrorMsgID);     
var MaxLength; 
    if(maxlength != null) 
    {  
        MaxLength = maxlength; 
        
      } 
      else  MaxLength = control.maxLength - 1;      
      
      var TextLength = control.value.length;    
      
      if(TextLength > MaxLength)    
      {        
           control.value = control.value.substring(0,MaxLength);             
           if(ErrorMsg == null)        
           {            
                //control.outerHTML = control.outerHTML + "" + MaxLength + " character limit!";  
            }    
        }    
        else    
        {        
              if(ErrorMsg != null)           
               ErrorMsg.parentNode.removeChild(ErrorMsg);   
          }
}
function  CalculateVoucherAmount1()
{
var FormObject = document.forms[0];
var control = document.getElementById("UC_CorporateVoucher_CV_P_VoucherValue");
}

//Function to show the address field when the user
//opts for the postal option in the individual vouchers form

function ShowAddressField()
{
alert("in ShowAddressField");
  
}
