function get_area_list(id){
//new Effect.Appear($('cart_loading'));
new Ajax.Updater('area_div', site_url + 'ajax_handler.php?module=register/get_area_list/&con_id='+id, {asynchronous:true,evalScripts:true});
$('city_div').innerHTML=' ';

}

function get_city_list(id){
//new Effect.Appear($('cart_loading'));
new Ajax.Updater('city_div', site_url + 'ajax_handler.php?module=register/get_city_list/&city_id='+id, {asynchronous:true,evalScripts:true});

}
function addtocart(id,offer){
	new Ajax.Updater('cart_div', site_url + 'ajax_handler.php?module=cart/add/&offer='+offer+'&id='+id, {asynchronous:true,evalScripts:true});
}
function updatecart(num,act){
	$('cart_td').innerHTML='<a id="cart_div" href="javascript:show_cart();">'+num +' ' + prodcts+'</a>';
	if (act=='add'){
		alert(add_done);
	}
}
function show_cart(){
	Modalbox.show(site_url_wl +'cart/', {title: lang_shopingcart, width: 600});
	/*
	MOOdalBox.open( // case matters
site_url +'cart/', // the link URL
lang_shopingcart, // the caption (link's title) - can be blank
"600 400" // width and height of the box - can be left blank
);
*/
}
function update_cart(id,num,price){
	var oldcost=$('cost_'+id).innerHTML;
	var mi=0;
	$('cost_'+id).innerHTML=num*price;
	mi=$('cost_'+id).innerHTML-oldcost;

	$('total').innerHTML=eval($('total').innerHTML)+eval(mi);
}