function uploadCapturePhoto(rawData){
	var url = "mugshotsave.php"; // Need to change this
	pars = '?capturedPhoto='+rawData+'&version=mugshot_pro';
	//getAjaxContent(url,pars,'mugshottest','post');
	var myAjax = new Ajax.Request(
	url,
	{
	method: 'POST',
	parameters: pars,
	onSuccess: process,
	onFailure: function() { 
		alert("There was an error with the connection"); 
	}
	
	});
	return false;
}


function process(transport) {
  var response = transport.responseText;
  document.getElementById('mugshotfullist').innerHTML = "<h4>Captured Images</h4>"+response;
  $('#mugshotfullist a').lightBox();
}

function uploadCaptureLitePhoto(rawData){
	var url = "mugshotsave.php"; // Need to change this
	pars = '?capturedPhoto='+rawData+'&version=mugshot_lite';
	//getAjaxContent(url,pars,'mugshottest','post');
	var myAjax = new Ajax.Request(
	url,
	{
	method: 'POST',
	parameters: pars,
	onSuccess: processlite,
	onFailure: function() { 
		alert("There was an error with the connection"); 
	}
	
	});
	return false;
}
function processlite(transport) {
  var response = transport.responseText;
  document.getElementById('mugshotfullitelist').innerHTML = "<h4>Captured Images</h4>"+response;
  $('#mugshotfullitelist a').lightBox();
}
$(function() {
	$('#mugshotfullist a').lightBox();
	$('#mugshotfullitelist a').lightBox();
});