function setLive(the_type, the_id, divID) {
	var url = "php/setLive.php";
	var pars = "type=" + the_type + "&id=" + the_id + "&span_id=" + divID + "&r=" + Math.floor(Math.random()*1000);
	var liveSet = new Ajax.Updater(divID, url, {method: 'get', parameters: pars});
	return false;
}
function setOrder(the_type, the_id, divID) {
	var url = "php/setOrder.php";
	var the_value = $F(divID);
	divID = "none";
	var pars = "type=" + the_type + "&id=" + the_id + "&value=" + the_value + "&r=" + Math.floor(Math.random()*1000);
	var liveSet = new Ajax.Updater(divID, url, {method: 'get', parameters: pars});
	return false;
}
function doDisplay(id, ref_id, locate) {
	var url = "php/doDisplay.php";
	var divID = "displayImage";
	var pars = "id=" + id + "&ref_id=" + ref_id + "&type=" + locate + "&r=" + Math.floor(Math.random()*1000);
	var doDisp = new Ajax.Updater(divID, url, {method: 'get', parameters: pars});
	return false;
}
function deletePic(ref, the_type, to_del) {
	var url = "php/deletePic.php";
	var divID = "deletePic";
	var pars = "id=" + ref + "&type=" + the_type + "&r=" + Math.floor(Math.random()*1000);
	var doDeletePic = new Ajax.Updater(divID, url, {method: 'get', parameters: pars});
	document.getElementById(to_del).innerHTML = '';
	return false;
}
function getPage(the_type, the_limit) {
	var divID = "page";
	var url = "php/js_getPage.php";
	var pars = "type=" + the_type + "&limit=" + the_limit + "&js=true" + "&r=" + Math.floor(Math.random()*1000);
	var page = new Ajax.Updater(divID, url, {method: 'get', parameters: pars});
	return false;
}

