﻿function RetrieveClientId() { try { var a = document.getElementById("KioskConfig").value; form1.ClientAXControl.ConfigPath = a; CallServer(form1.ClientAXControl.KioskId + "-" + form1.ClientAXControl.StoreId) } catch (b) { txt = "Failed to read the client configuration on this kiosk station.\n\n"; txt += "Make sure client configuration file exists, security script has been run and popup blocker is off.\n\n"; txt += "Error is:\n\n"; txt += b.description + "\n\n"; alert(txt) } } function ReceiveServerIdentificationData() { window.close() } function LoadIdentificationPopup() { $popUp("ClientIdentification.aspx", "mywindow", { width: 10, height: 10 }) } var doPolling, cardReader, userDelay = 1, userDelayLimit = 10; function ReceiveCardSwipperData(a) { a == "" ? __doPostBack("CCSwipe", "") : $redirect(a) } function StartPolling() { cardReader = $get("CardControl"); cardReader.Open(); userDelayLimit = cardReader.DelayLimit; doPolling = setInterval("Looking()", 1E3) } function StopPolling() { cardReader.Close(); clearTimeout(doPolling) } function Looking() { if (cardReader.Read() == true) { var a = cardReader.CardInfoXML; StopPolling(); CallServer(a) } else { userDelay += 1; if (userDelay > userDelayLimit) { StopPolling(); CallServer() } } };