    function doBeforePaste(control){
        maxLength = control.attributes["maxLength"].value;
         if(maxLength)
         {
              event.returnValue = false;
         }
    }
    function doPaste(control){
        maxLength = control.attributes["maxLength"].value;
        value = control.value;
         if(maxLength){
              event.returnValue = false;
              maxLength = parseInt(maxLength);
              var oTR = control.document.selection.createRange();
              var iInsertLength = maxLength - value.length + oTR.text.length;
              var sData = window.clipboardData.getData("Text").substr(0,iInsertLength);
              oTR.text = sData;
         }
    }
    function LimitInput(control)
    {
        if(control.value.length > control.attributes["maxLength"].value)
        {
            control.value = control.value.substring(0,control.attributes["maxLength"].value);
        }
    };
    function abrePopup(url, popWidth, popHeight) {
        GP_AdvOpenWindow(url, 'jan', 'fullscreen=no,toolbar=no,location=no,status=yes,menubar=no,scrollbars=auto,resizable=no', popWidth, popHeight, 'center', 'ignoreLink', '', 0, '')
    }
    function abrePopupFullScreen(url) {
        GP_AdvOpenWindow(url, 'jan', 'fullscreen=yes,toolbar=no,location=no,status=yes,menubar=no,scrollbars=auto,resizable=yes', '800', '600', 'center', 'ignoreLink', '', 0, '')
    }        

