// JavaScript Document
function updateWeight(id) {
	ajaxObj.debug=0;
	ajaxObj.format = "TEXT";
	
	//getting form values to update
	var title = escape(document.getElementById(id+'weight').value);
	
	//making call
	ajaxObj.call("action=post_save_form&form_id=update_weight&id=" + id + "&title=" + title, setResp);
	return false;
}

function confirmWrestler(id) {
	ajaxObj.debug=0;
	ajaxObj.format = "TEXT";
	
	//making call
	ajaxObj.call("action=post_save_form&form_id=confirm_wrestler&id=" + id, setForm);
	return false;
}

function deleteWrestlerTemp(id) {
	ajaxObj.debug=0;
	ajaxObj.format = "TEXT";
	
	//making call
	ajaxObj.call("action=post_save_form&form_id=delete_wrestler&id=" + id, setResp);
	return false;
}

function addWrestlerTemp(form_id) {
	ajaxObj.debug=0;
	ajaxObj.format = "TEXT";
	
	var formVars = ajaxObj.getForm(form_id);
	
	ajaxObj.call("action=post_save_form&form_id=save_wrestler_temp" + formVars, setResp);
	
	return false;
}