
function SetReconciled(el, index)
{
	var input = document.getElementById("reconciled" + index);
	var val = (input.value == "1" ? 0 : 1);
	input.value = val;
	el.className = (val == 1 ? "ReconciledBtn" : "UnreconciledBtn");
	return false;
}




function onSMSNowComplete(pData)
{
	if(pData.rc == 1)
	{
		alert("Text message generated successfully.");
	}
	else
	{
		alert("I'm sorry, there was an error generating your TEST message, please contact your administrator for assistance.");
	}
}


function SMSNow(org_id,absr_id,sub_id,onSuccessfulUpdateFunction,NotInSMSTimes,JobNotVisible)
{
	var answer = true;



	if(NotInSMSTimes)
	{
		answer = confirm("The current time is not within the "+rrSubstitute_plural+" chosen "+rrSMS+" times. To continue, press OK");		
	}

	if(!answer)
	{
		return;
	}
	
	if(JobNotVisible)
	{
		answer = confirm("Please be aware that the job must be within the "+rrSubstitute_plural+" visibility to accept via SMS");
	}
	
	if(answer)
	{
		ForceSMSForABSR(org_id,absr_id,sub_id,onSuccessfulUpdateFunction);
	}
}



