				function change_city(value2,a){
				  
				  var thevalue;
				  thevalue="";
				  var   aa   =   document.getElementsByName(a);   
				  
				  for   (var   i=0;   i<aa.length;   i++)   
				  {
						  //alert(aa[i].value); 
						  if(aa[i].checked) thevalue=aa[i].value;
						  //alert(aa[i].value);   //取选中的值     			
					}
					
					if(value2!="") thevalue=value2;

					if(thevalue=="")
						{
						alert("please select!");
						return false;	
						}
						window.location.href="/"+thevalue+"-tour.htm";
				}
				
				function change_city1(value2){
				  
				  var thevalue;
				  thevalue="";
					
					if(value2!="") thevalue=value2;

					if(thevalue=="")
						{
						alert("please select!");
						return false;	
						}
						window.open("/"+thevalue+"","_blank");
				}
				
				function change_hotels(value2){
				  var thevalue,choosestarvalue;
				  thevalue="";
				  choosestarvalue="";
				  var   aa   =   document.getElementsByName("hotelcity");   
				  var   bb   =   document.getElementsByName("choosestar");   
				  
				  for   (var   i=0;   i<aa.length;   i++)   
				  {
						  //alert(aa[i].value); 
						  if(aa[i].checked) thevalue=aa[i].value;
						  	//alert(aa[i].value);   //取选中的值     			
					}
				for(var i=0 ;i<bb.length;i++)
				{
					 if(bb[i].checked) choosestarvalue=bb[i].value;
				}
					
					if(value2!="") thevalue=value2;
					//alert(choosestarvalue);
					if(thevalue=="")
						{
						alert("please select a city");
						return false;	
						}
					//alert(thevalue);
					window.location.href="http://hotels.itourschina.com/"+thevalue;
				}


				function checkemailform(theform){
					if(theform.email.value==""){
						alert("please enter a Email");
						theform.email.focus();
						return false;			
					}
					//var check_Email=/^[\w-]+(\.[\w-]+)*@[\w-]+$/
					/*
					var check_Email=/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*[A-Za-z0-9]+$/
					if(!(check_Email.test(theform.email.value) ))
					{
						alert("Email Error");
						theform.email.focus();
						return false;
					}
					*/				
					if(theform.QuestionContent.value==""){
						alert("please enter a Question");
						theform.QuestionContent.focus();
						return false;			
					}
				}
				function checkmessenger(theform){
				
					//alert(theform.Type_Name.length);
					  var   aa   =   theform.Type_Name;
					  var ischeck = false;
					  
					  for   (var   i=0;   i<aa.length;   i++)   
					  {
							  //alert(aa[i].value); 
							  if(aa[i].checked) ischeck=true;
							  //alert(aa[i].value);   //取选中的值     			
					 }		
					if(!ischeck)
					{
						alert("please select messenger type ");
						return false;
					}
					if(theform.Email.value=="")
					{
						alert("please enter name");
						theform.Email.focus();
						return false;
					}
				
				}
				function city_qingkong(){
					var   aa   =   document.getElementsByName("guidekind");   
					  for   (var   i=0;   i<aa.length;   i++)   
					  {
					  		if(aa[i].checked) aa[i].checked=false;							     			
						}
				}
				
				function city_qingkong1(){
					var   aa   =   document.getElementsByName("guidekind1");   
					  for   (var   i=0;   i<aa.length;   i++)   
					  {
							  //alert(aa[i].value); 
							  if(aa[i].checked) aa[i].checked=false;
							  //alert(aa[i].value);   //è????Dμ??μ     			
						}
				}
				function city_qingkong2(){
					var   aa   =   document.getElementsByName("guidekind2");   
					  for   (var   i=0;   i<aa.length;   i++)   
					  {
							  //alert(aa[i].value); 
							  if(aa[i].checked) aa[i].checked=false;
							  //alert(aa[i].value);   //è????Dμ??μ     			
						}
				}
				function city_qingkong3(){
					var   aa   =   document.getElementsByName("guidekind3");   
					  for   (var   i=0;   i<aa.length;   i++)   
					  {
							  //alert(aa[i].value); 
							  if(aa[i].checked) aa[i].checked=false;
							  //alert(aa[i].value);   //è????Dμ??μ     			
						}
				}
				function city_qingkong4(){
					var   aa   =   document.getElementsByName("guidekind4");   
					  for   (var   i=0;   i<aa.length;   i++)   
					  {
							  //alert(aa[i].value); 
							  if(aa[i].checked) aa[i].checked=false;
							  //alert(aa[i].value);   //è????Dμ??μ     			
						}
				}
				function qingkong_city_select()
				{
					var aa=document.getElementsByName("guidekind");
					for   (var   i=0;   i<aa.length;i++)   
					{
						if(aa[i].checked)
						{
							form1.select1.value="";
						}
					}
				}
				function qingkong_city_select1()
				{
					var aa=document.getElementsByName("guidekind1");
					for   (var   i=0;   i<aa.length;i++)   
					{
						if(aa[i].checked)
						{
							form1.select2.value="";
						}
					}
				}
				function qingkong_city_select2()
				{
					var aa=document.getElementsByName("guidekind2");
					for   (var   i=0;   i<aa.length;i++)   
					{
						if(aa[i].checked)
						{
							form1.select3.value="";
						}
					}
				}	
				function qingkong_city_select3()
				{
					var aa=document.getElementsByName("guidekind3");
					for   (var   i=0;   i<aa.length;i++)   
					{
						if(aa[i].checked)
						{
							form1.select4.value="";
						}
					}
				}
				function qingkong_city_select4()
				{
					var aa=document.getElementsByName("guidekind4");
					for   (var   i=0;   i<aa.length;i++)   
					{
						if(aa[i].checked)
						{
							form1.select5.value="";
						}
					}
				}			
				function hotels_qingkong(){
					var   aa   =   document.getElementsByName("hotelcity");   
					  for   (var   i=0;   i<aa.length;   i++)   
					  {
							  //alert(aa[i].value); 
							  if(aa[i].checked) aa[i].checked=false;
							  //alert(aa[i].value);   //¨¨????D|ì??|ì     			
						}
				}
				
				function qingkong_hotels_select()
				{
					var aa=document.getElementsByName("hotelcity");
					for   (var   i=0;   i<aa.length;i++)   
					{
						if(aa[i].checked)
						{
							form2.select2.value="";
						}
					}
				}				
				
				function checkformbb(theform){
					if (theform.FullName.value==""){
						alert("Please entry your full name!");
						theform.FullName.focus();
						return false;
						}
					if (theform.email.value==""){
						alert("Please entry your email ");
						theform.email.focus();
						return false;
						}
					/*
					if (!isEmail(theform.email.value)){
					   alert("Email Error");
					   theform.email.focus();
					   return false;
					}
					*/
					if (theform.Adults.value==""){
						alert("Please entry Number of Adults ");
						theform.Adults.focus();
						return false;
						}
				}
				function isEmail(strEmail) {
				  //if (strEmail.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
				  if (strEmail.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*[A-Za-z0-9]+$/) != -1)
				   return true;
				  else
				   return false;
				 }
				function click_Cruise(theform)
				{
					window.location.href="http://www.itourschina.com/Yangtze_Cruise/showy.asp?id="+theform.selectCruise.value;
				}
				
				function change_golf(value2){
				  var thevalue;
				  thevalue="";
				  var   aa   =   document.getElementsByName("guidekind");		  
				  for   (var   i=0;   i<aa.length;   i++) 
				  {
						  //alert(aa[i].value); 
						  if(aa[i].checked) thevalue=aa[i].value;
						  //alert(aa[i].value);   //取选中的值     			
					}
					
					if(value2!="") thevalue=value2;

					if(thevalue=="")
						{
						alert("please select a city");
						return false;	
						}
						var valuearr=thevalue.split("|");
						window.location.href="http://www.itourschina.com/Golf_Travel/display.asp?letterkind="+thevalue;
				}
				var tID=0; 
              function ShowTabs(ID){ 
              if(ID!=tID){ 
                TabTitle[tID].className='menu_bottom1'; 
                TabTitle[ID].className='menu_bottom2'; 
                Tabs[tID].style.display='none'; 
                Tabs[ID].style.display=''; 
                tID=ID; 
                                    } 
                            }
                            var tID_cruisedate=0;
              function ShowTabs_cruisedate(ID){ 
              if(ID!=tID_cruisedate){ 
                TabTitle[tID_cruisedate].className='menu_bottom1_cruisedate'; 
                TabTitle[ID].className='menu_bottom2_cruisedate'; 
                Tabs[tID_cruisedate].style.display='none'; 
                Tabs[ID].style.display=''; 
                tID_cruisedate=ID; 
                                    } 
                            }
							
														function setTab(name,cursel,n){
for(i=1;i<=n;i++){
var menu=document.getElementById(name+i);
var con=document.getElementById("con_"+name+"_"+i);
menu.className=i==cursel?"hover":"";
con.style.display=i==cursel?"block":"none";
}
}