﻿// JScript File
            //submit ekashu form 
               function submitEkashuForm()
                {
                  document.ekashuform.submit();
                };
                 function submitEkashuTolltagPaymentForm()
                {
                  document.ekashutolltagpaymentform.submit();
                };

	  	    // call print div
            function CallPrint(strid)
            {
                 var prtContent = document.getElementById(strid);
                 var WinPrint = window.open('','','left=0,top=0,width=1,height=1,toolbar=0,scrollbars=0,status=0');
                 WinPrint.document.write(prtContent.innerHTML);
                 WinPrint.document.close();
                 WinPrint.focus();
                 WinPrint.print();
                 WinPrint.close();
            };
           
        
        //NO DOUBLE CLICKING
                  
            var isTTSubmitted = false; 
           	var isSubmitted = false;             					
			function initialize() 
			{
                isTTSubmitted = false;	
                isSubmitted = false;	   
                return(true);
            };
             
        
            //tolltagPayment
             
                  
            function tolltag_pay_validate()
             {
                if (isTTSubmitted) {
	                alert("Your transaction is still processing! This can take up to one minute to complete " + '\n' + "and should not be interrupted or repeated." + '\n' + "If you believe that the process has failed then close the page and"  + '\n' + "email support@parkmagic.net" + '\n' + "Click OK to continue...");
	                    
	                return(false);
                }

                isTTSubmitted = true;
                return(true);
             };
             
           //Quickpark no double clicking
               
            function validate()
             {
                if (isSubmitted) {
	                alert("Your transaction is still processing! This can take up to one minute to complete " + '\n' + "and should not be interrupted or repeated." + '\n' + "If you believe that the process has failed then close the page and"  + '\n' + "email support@parkmagic.net" + '\n' + "Click OK to continue...");
	                    
	                return(false);
                }

                isSubmitted = true;
                return(true);
             };
            
