var selected_id='';
function tableclicked(id){
if (!id){
	return 0;
}

normal(selected_id,1);
selected_id=id;

heighlight(id);

$('table_id').value=id;

new Effect.Appear($('cart_loading'));
new Ajax.Updater('cart', site_url + 'ajax_handler.php?module=reservation/cart/&func=add&id='+id, {asynchronous:true,evalScripts:true});


}
function donithing(){

}
function reload_cart(){
new Ajax.Updater('cart', site_url + 'ajax_handler.php?module=reservation/cart/', {asynchronous:true,evalScripts:true});
}
function chk_time(){
if ($F('Date_Day')){
new Effect.Appear($('cart_loading'));
new Ajax.Updater('times', site_url + 'ajax_handler.php?module=reservation/chktime/&table_id='+$F('table_id')+'&Date_Day=' + $F('Date_Day')+'&Date_Month=' + $F('Date_Month')+'&Date_Year=' + $F('Date_Year'), {asynchronous:true,evalScripts:true});
}
}
function heighlight(id){
if (!id){
	return 0;
}

var rd = $(id).src ;
$(id).src= rd.replace('/laratable','/hlaratable');

}

function normal(id,force){
if (!id){
	return 0;
}

if (!force && id==selected_id){
	return 0;
}

var rd = $(id).src ;
$(id).src= rd.replace('/hlaratable','/laratable');
}