function showOtherpriceleft(priceid){
	var pars='priceid='+priceid+'&cache='+Math.random();
	Request.sendPOST('http://www.naerw.com/line/getprice.asp', pars, ShowOtherpriceleftResult);
	
}
function ShowOtherpriceleftResult(ajax){
	var result = ajax.responseText;
	//alert(result);
	var arr = result.split('!@#');

	var day = arr[2];
	if(day.length ==1){
		var day = '0'+day;
	}
	var begin_date = arr[5];

	var arr1 = arr[3].split('@#$');
	var length = arr1.length;
	var friend_price_show = arr[4];
	var content= '<table id="other_price_show'+arr[2]+'" class="pub_price_info" cellpadding="0" cellspacing="0" width=" " style="display:block ;" ><tbody><tr><td class="top_l"></td><td class="top_m"></td><td class="top_r"></td></tr><tr><td class="middle_l"></td><td class="middle_m"><table width=" " border="0" cellspacing="0"  class="other_price_show"><tr><th width=" " align="right">类型</th><th width="80">价格<span style="text-align:right;position:relative; top:-10px;left:25px;"><img src="/line/images/cross.gif" alt="" style="cursor:pointer;" onclick="hideDeparture('+arr[2]+');"/></span></th></tr><tr><td align="right">成人价</td><td><span class="other_price_span">'+friend_price_show+'元</span></td></tr>';
	if(arr[1] > 0){
		content += '<tr><td align="right">儿童价</td><td><span class="other_price_span">'+arr[1]+'元</span></td></tr>';
	}
	for(var i=0;i<length;i++){
		var arr_temp = arr1[i].split('%^&');
		if(arr_temp[0]){
			if(arr_temp[1]=='加'){
				arr_temp[2] = Number(arr[0])+Number(arr_temp[2]);
			}
			if(arr_temp[1]=='减'){
				arr_temp[2] = Number(arr[0])-Number(arr_temp[2]);
			}
			if(arr_temp[1]=='='){
				arr_temp[2] = arr_temp[2];
			}
			content += '<tr><td width=" " align="right">'+arr_temp[0]+'</td><td><span class="other_price_span">'+arr_temp[2]+'元</span></td></tr>';
			
		}
	}

	content += '</table></td><td class="middle_r"></td></tr><tr><td class="bottom_l"></td><td class="bottom_m"></td><td class="bottom_r"></td></tr></tbody></table>';

	document.getElementById("frame_show").innerHTML = content;
	var i = arr[2];
	var j = arr[0]
	pub_price_span="other_price_span_left_" + j + "_" + i;
	pub_price_info="other_price_show"+ i ;
	//	hideOtherprice();
	var selector = document.getElementById(pub_price_span);
	//alert(pub_price_span);
	var posX = findPosX(selector)-110;
	var posY = findPosY(selector)+22;
	document.getElementById(pub_price_info).style.left = posX + 'px';
	document.getElementById(pub_price_info).style.top = posY + 'px';
	document.getElementById(pub_price_info).style.position = 'absolute';
	document.getElementById(pub_price_info).style.display = 'block';
}





function hideDeparture(i){
	document.getElementById(pub_price_info).style.display = 'none';
}

