//Submit a form with associated task (Userful for multiple-button forms)
function submitbutton(inFormName, inTask) {
	eval("document."+inFormName+".Action.value='"+inTask+"';");
	eval("document."+inFormName+".submit();");
}

//Load the Xilo payment page
function LoadXilo() {
	if (document.PaymentHiddenForm.HasLoaded.value == '0') {
		document.PaymentHiddenForm.HasLoaded.value = '1';
	} else {
		document.PaymentForm.submitbutton.disabled = true;
		return false;
	}
}

var ActionURL = "";
function verifyid(systemname) {
	if (systemname == "paymanager") {
		ActionURL = "http://secure.xilo.com/veripay/verifyid.xilo";
	} else if (systemname == "storemanager") {
		ActionURL = "http://secure.xilo.com/veritec/verifyid.cfm";
	} else if (systemname == "camsclient") {
		ActionURL = "http://secure.xilo.com/cams/verifyclientid.xilo";
	} else if (systemname == "cams") {
		ActionURL = "http://secure.xilo.com/cams/verifyid.xilo";
	}
	
	document.form1.systemname.value = systemname;
	document.form1.systemid.value = document.form1.elements[systemname].value;
	document.form1.action = ActionURL;
	document.form1.submit();
}
