
var Url = "https://client.eterminal.com.au/eterminal/transact/card.cfm"
var Code = "81";
var ZoneID = "0";
var UserID = "725";
var CustomerNumber = "";
var InvoiceNumber = "";
var Amount = "1.00";
var CurrenyType = "AUD";

function popUpEterminal(theAmount, memberID)
{
	var iMyWidth;
	var iMyHeight;
	Amount = theAmount;
	CustomerNumber = memberID;
	//gets top and left positions based on user's resolution so hint window is centered.
	iMyWidth = (window.screen.width/2) - (230 + 10);
	//half the screen width minus half the new window width (plus 5 pixel borders).
	iMyHeight = (window.screen.height/2) - (216 + 50);
	//half the screen height minus half the new window height (plus title and status bars).
	var win2 = window.open(prepare(Url),"Transact","toolbar=no,dependent,directories=no,menubar=no,location=no,status=yes,resizable=no,width=349,height=440,left="+ iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" +iMyHeight + ",scrollbars=no");
	win2.focus();
}

var Key ="%3Cscript%3E%0D%0Avar%20TS%20%3D%20%22%27MerchantID%3D%27%20+%20Code%20+%20%27%26ZoneID%3D%27%20+%20ZoneID%20+%20%27%26UserID%3D%27%20+%20UserID%20+%20%27%26Amount%3D%27%20+%20Amount%20+%20%28%20window.CurrenyType%20%3F%20%27%26CurrenyType%3D%27%20+%20CurrenyType%20%3A%20%27%26CurrenyType%3DAUD%27%20%29%20+%20%28%20window.CustomerNumber%20%3F%20%27%26CustomerNumber%3D%27%20+%20CustomerNumber%20%3A%20%27%26CustomerNumber%3DNA%27%20%29%20+%20%28%20window.InvoiceNumber%20%3F%20%27%26InvoiceNumber%3D%27%20+%20InvoiceNumber%20%3A%20%27%26InvoiceNumber%3DNA%27%20%29%20+%20%28%20window.TestMode%20%3F%20%27%26TestMode%3D%27%20+%20TestMode%20%3A%20%27%27%20%29%22%0D%0A%0D%0Afunction%20b%28c%29%0D%0A%7B%0D%0A%09var%20a%20%3D%200%3B%0D%0A%09if%20%280%20%3C%3D%20c%20%26%26%20c%20%3C%3D%2025%29%20a%20%3D%20String.fromCharCode%28c%20+%2065%29%3B%0D%0A%09else%20if%20%2826%20%3C%3D%20c%20%26%26%20c%20%3C%3D%2051%29%20a%20%3D%20String.fromCharCode%28c%20-%2026%20+%2097%29%3B%0D%0A%09else%20if%20%2852%20%3C%3D%20c%20%26%26%20c%20%3C%3D%2061%29%20a%20%3D%20String.fromCharCode%28c%20-%2052%20+%2048%29%3B%0D%0A%09else%20if%20%28c%20%3D%3D%2062%29%20a%20%3D%20%27+%27%3B%0D%0A%09else%20if%28%20c%20%3D%3D%2063%20%29%20a%20%3D%20%27/%27%3B%0D%0A%09else%20a%20%3D%20String.fromCharCode%280xFF%29%3B%0D%0A%09return%20a%3B%0D%0A%7D%0D%0A%0D%0Afunction%20prepare%28x%29%20%7B%0D%0A%09var%20z%20%3D%20eval%28TS%29%3B%0D%0A%09var%20r%20%3D%20%22%22%3B%0D%0A%09var%20i%20%3D%200%3B%0D%0A%09var%20s%20%3D%200%3B%0D%0A%09var%20l%20%3D%200%3B%0D%0A%09var%20o%20%3D%200%3B%0D%0A%0D%0A%09for%20%28i%3D0%3B%20i%20%3C%20z.length%3B%20i++%29%20%7B%0D%0A%09%09o%20%3D%20z.charCodeAt%28i%29%3B%0D%0A%09%09switch%28%20i%20%25%203%20%29%0D%0A%09%09%7B%0D%0A%09%09%09case%200%3A%20%7B%20s%20%3D%20%28%20o%20%26%200xFC%20%29%20%3E%3E%202%20%3B%20l%20%3D%20o%20%26%200x03%20%3B%20break%3B%20%7D%0D%0A%09%09%09case%201%3A%20%7B%20s%20%3D%20%28%20l%20%3C%3C%204%20%29%20%7C%20%28%20%28%20o%20%26%200xF0%20%29%20%3E%3E%204%20%29%3B%20l%20%3D%20o%20%26%200x0F%20%3B%20break%3B%20%7D%0D%0A%09%09%09case%202%3A%20%7B%20s%20%3D%20%28%20l%20%3C%3C%202%20%29%20%7C%20%28%20%28%20o%20%26%200xC0%20%29%20%3E%3E%206%20%29%20%3B%20l%20%3D%20%28%20o%20%26%200x3F%20%29%20%3B%09break%3B%20%7D%0D%0A%09%09%7D%0D%0A%09%09r%20%3D%20r%20+%20b%28s%29%3B%0D%0A%09%09if%28%20%28i%20%25%203%29%20%3D%3D%202%20%29%20r%20%3D%20r%20+%20b%28l%29%3B%20%0D%0A%09%7D%0D%0A%09switch%28%20z.length%20%25%203%20%29%0D%0A%09%7B%0D%0A%09%09case%200%3A%20break%20%3B%0D%0A%09%09case%201%3A%20%7B%20l%20%3D%20%20l%20%3C%3C%204%20%3B%20r%20%3D%20r%20+%20b%28l%29%3B%20r%20%3D%20r%20+%20%22%3D%3D%22%3B%20break%20%3B%20%7D%0D%0A%09%09case%202%3A%20%7B%20l%20%3D%20l%20%3C%3C%202%20%3B%20r%20%3D%20r%20+%20b%28l%29%3B%20r%20%3D%20r%20+%20%22%3D%22%3B%20break%20%3B%20%7D%0D%0A%09%7D%0D%0A%09return%20x%20+%20%27%3Ftermstring%3D%27+r%3B%0D%0A%7D%0D%0A%3C/script%3E"
document.write(unescape(Key));
