function nTabs(thisObj,Num){
if(thisObj.className == "active")return;
var tabObj = thisObj.parentNode.id;
var tabList = document.getElementById(tabObj).getElementsByTagName("li");
 document.getElementById("myTab1_Content0").style.display = "block";
for(i=0; i <tabList.length; i++)
{
  if (i == Num)
  {
   thisObj.className = "active"; 
   //   document.getElementById(tabObj+"_Content"+i).style.display = "block";
  }else{
   tabList[i].className = "normal"; 
  }
} 
}


/*
 window.onload = function() {
    changeColor('content');
    changeColor('content2');
    changeColor('content3');
	changeColor('content4');
}*/
function changeColor(id) {
    var arrayli = document.getElementById(id).getElementsByTagName('li');
        var bool = true; //奇数行为true
        var oldStyle; //保存原有样式
        for(var i = 0;i<arrayli.length;i++){
            //各行变色
            if(bool === true){
                arrayli[i].className = "change";
                bool = false;
            }
            else {
                arrayli[i].className = "";
                bool = true;    
            }
            //划过变色
            arrayli[i].onmouseover = function() {
                oldStyle = this.className;
                this.className = "current"
            } 
            arrayli[i].onmouseout = function() {
                this.className = oldStyle;
            } 
        }
}
function setDcity(obj){
	 document.ticketReSearch.ddcityname.value = document.ticketReSearch.ddcity.value;
}
