var updateInterval = null;   


// INITIAZIE REQUEST *******************************************
  function InitializeRequest(sender, args){
      // needed for credit card processing.
         //Disables the page from making any callbacks if another one is already in progress
     if (prm.get_isInAsyncPostBack()) {
         alert('There was already a postback in progress when another control on this form has attempted a postback, \n please wait for the original operation to complete. \n The original operation has most likely had time to complete by the time you have read this message information \n (This is an information message and not a system error message)');
         prm.abortPostBack();                 //cancels current request
         args.set_cancel(true);               //cancels new request
     }
    
  }
  
   // SHOW RECEIPT **************************************************
   function showReceipt()
   {
        var a = window. open('','','scrollbars=yes');
        a.document.open("text/html");
        a.document.write('<html><head><link rel="stylesheet" href="css/Styles.css" /><style type="text/css">#frame{background-image:none;background-color:#FFFFFF;}</style></head><body style="padding-left:20px;background-image:none;background-color:#FFFFFF;text-align:center;">');
        a.document.write($get('print').innerHTML);
        a.document.write('</body></html>');
        a.document.close();
        a.print();
    }
    
    // CHANGE INPUT TYPE ***********************************************
    function changeInputType(obj)
    {
        if(obj.getAttribute('type')=='text')
        { 
            obj.setAttribute('type','password');
        }else
        {
            obj.setAttribute('type','text');
        }
        obj.focus();    
    }
  
//SCRIPT MANAGER END
if(typeof(Sys) !== 'undefined'){
    Sys.Application.notifyScriptLoaded();
}
