var line_info;hotel_info;
function line_info(){
    var key=document.getElementById("key").value;
	var url="/inc/line/news.asp?action=news_key_list&data=sc&key="+key+"&num=10";
    line_info=GetXmlHttpObject(line_infolist);
    line_info.open("GET",url,true);
    line_info.send(null);
}
function line_infolist(){
   if(line_info.readyState==4 || line_info.readyState=="complete"){
	 var xmldata=line_info.responseXML.getElementsByTagName("data");
	 var news_key=xmldata[0].getAttribute("news_key");
	 var news_data=xmldata[0].getAttribute("news_data");
	 var news_num=xmldata[0].getAttribute("news_num");
	 var html_info="";
     if (news_num>0){    
	 var xmlroot=line_info.responseXML.getElementsByTagName("contents");	 
	 for (i=0;i<xmlroot.length;i++){ 
		var news_id=xmlroot[i].getAttribute('news_id');
		var news_url=xmlroot[i].getAttribute('news_url');
		var news_title=xmlroot[i].getAttribute('news_title');
		var news_price=xmlroot[i].getAttribute('news_price');
		html_info+="<li>"
		if (news_price!=0){html_info+="<span>гд"+news_price+"</span>";}
        html_info+="<a href='"+news_url+"' title='"+news_title+"'>"+news_title+"</a></li>";
	 }
	 }
	 document.getElementById("line").innerHTML="<ul>"+html_info+"</ul>";
   }	
}
function hotel_info(){
    var key=document.getElementById("key").value;
	var url="/inc/hotel/news.asp?action=news_key_list&data=sc&key="+key;
    hotel_info=GetXmlHttpObject(hotel_infolist);
    hotel_info.open("GET",url,true);
    hotel_info.send(null);
}
function hotel_infolist(){
   if(hotel_info.readyState==4 || hotel_info.readyState=="complete"){
	 var xmldata=hotel_info.responseXML.getElementsByTagName("data");
	 var news_key=xmldata[0].getAttribute("news_key");
	 var news_data=xmldata[0].getAttribute("news_data");
	 var news_num=xmldata[0].getAttribute("news_num");
	 var html_info="";
	 if (news_num>0){
	 var xmlroot=hotel_info.responseXML.getElementsByTagName("contents");	 
	 for (i=0;i<xmlroot.length;i++){ 
		var news_id=xmlroot[i].getAttribute('news_id');
		var news_url=xmlroot[i].getAttribute('news_url');
		var news_title=xmlroot[i].getAttribute('news_title');
		var news_price=xmlroot[i].getAttribute('news_price');
		html_info+="<li>"
		if (news_price!=0){html_info+="<span>гд"+news_price+"</span>";}
        html_info+="<a href='"+news_url+"' title='"+news_title+"'>"+news_title+"</a></li>";
	 }
	 }
	 document.getElementById("hotel").innerHTML="<ul>"+html_info+"</ul>";
   }	
}
