<!--
function client_detail_connote_rate_onclick(x_button)
{
	if (x_button == 'save')
	{
		if(client_detail_connote_rate_validate() == false)
			return;
		
		ajax_showdiv('div_client_detail_connote_rate_load');

		var div = 'div_popup_4';
		var url = 'modules/client/client_detail_connote_rate.php';

		var param = 'mode=update';
		param += '&rate_id=' 					+ document.getElementById('rate_id').value;
		param += '&rate_user_id='				+ document.getElementById('rate_user_id').value;
		param += '&rate_region_id='				+ document.getElementById('rate_region_id').value;
		param += '&rate_con_pick_low='		+ document.getElementById('rate_con_pick_low').value;
		param += '&rate_con_pick_high='		+ document.getElementById('rate_con_pick_high').value;
		param += '&rate_con_pick_flat='			+ document.getElementById('rate_con_pick_flat').value;
		param += '&rate_con_pick_kg='	+ document.getElementById('rate_con_pick_kg').value;
		param += '&rate_con_pick_item='	+ document.getElementById('rate_con_pick_item').value;

		param += '&rate_con_del_low='		+ document.getElementById('rate_con_del_low').value;
		param += '&rate_con_del_high='		+ document.getElementById('rate_con_del_high').value;
		param += '&rate_con_del_flat='			+ document.getElementById('rate_con_del_flat').value;
		param += '&rate_con_del_kg='	+ document.getElementById('rate_con_del_kg').value;
		param += '&rate_con_del_item='	+ document.getElementById('rate_con_del_item').value;
		
		var callback = "client_detail_connote_rate_callback();"; 
//callback = ""; 
		ajax_processRequestPost(url,param,div,callback)
		return false;
	}
	return false;
}

function client_detail_connote_rate_callback()
{
	div    = "div_client_detail_connote";
	url    = "modules/client/client_detail_connote.php";
	param  = "mode=edit";
	param += "&client_id=" + document.getElementById('client_id').value
;
	callback = "Popup.hide('div_popup_4');";
	
	ajax_processRequestPost(url,param,div,callback)
	return false;
}
function client_detail_connote_rate_validate()
{
	// All Good.
	return true;
}
function client_detail_connote_rate_highlight()
{
}
function client_detail_connote_rate_format()
{
	index_conv_dec('rate_con_pick_low','1');
	index_conv_dec('rate_con_pick_high','1');
	index_conv_dec('rate_con_pick_flat','2');
	index_conv_dec('rate_con_pick_kg','2');
	index_conv_dec('rate_con_pick_item','2');

	index_conv_dec('rate_con_del_low','1');
	index_conv_dec('rate_con_del_high','1');
	index_conv_dec('rate_con_del_flat','2');
	index_conv_dec('rate_con_del_kg','2');
	index_conv_dec('rate_con_del_item','2');
}
function client_detail_connote_rate_focus()
{
	document.getElementById('rate_con_pick_low').focus();
}
function client_detail_connote_rate_onload(id)
{
	if ((id == 'insert')  || (id == 'edit') || (id == 'view'))
		ajax_showpopup('div_popup_4','');

	client_detail_connote_rate_highlight();
	client_detail_connote_rate_format();
	client_detail_connote_rate_focus();
}
-->
