<!--#include virtual="/_appDB/db_connection.asp" -->
<!--#include virtual="/_appDB/functions.asp" -->
<!--#include virtual="/super-user/scripts/admin_functions.asp" -->
<!--#include virtual="/super-user/scripts/enc_function.asp" -->
<!--#include virtual="/super-user/scripts/adm_inst.asp" -->
<%
IF (checkPermission("customers")="FAILED") THEN
	response.write("You do not have permission to view this page")
	response.end
END IF
%>
<div style="width:100%;box-sizing:border-box;padding:10px;">
<table cellpadding="2" cellspacing="0" style="width:100%;" class="drvDataTable">
		<tr style="background-color:#f8f8f8;">
			<td class="formfields" style="padding:10px;">
				<p>Scan the card now by tapping it against the USB card reader</p>
			</td>
		</tr>
		<tr>
			<td style="padding:10px;">
				<img src="/super-user/img/scancard.png" alt="scan card" style="width:100%;max-width:500px;" />
			</td>
		</tr>
</table>
</div>
<input type="text" name="cardcode" id="cardcode" onchange="processCardCode();" />
<script type="text/javascript">
	document.getElementById('cardcode').focus();
	function processCardCode(){
		var c = document.getElementById('cardcode').value;
		window.parent.document.getElementById('scancardlink').style.display='none';
		window.parent.document.getElementById('rfID').value=c;window.parent.document.getElementById('rfcodedisplay').innerHTML=c;
		$('.dialogwrap').dialog('close');
	}
</script>