// JavaScript Document


	  function show(mun)
	  {
		 if(mun==1)
		 { 
		    
		   document.getElementById("ditu").style.display="block";
		   document.getElementById("tupian").style.display ="none";
		 }
		 else if(mun==2)
		 {
		   document.getElementById("tupian").style.display ="block";
		   document.getElementById("ditu").style.display="none";
		 }
	  }
	  
	  function openwin()
		{
			
			var url=document.getElementById('main_photo').src;
			window.open(url,'','width=640,height=480,innerHeight=480,innerWidth=640');
			
		}
		
	function setWidth(url)
		{
			document.getElementById('main_photo').src = url;
			if(document.getElementById('main_photo').height > 300)
			{
				document.getElementById('main_photo').height = 300;
			}	
		}
		
	function dshow(mid)
		{
		  document.getElementById(mid).style.display ="block";
		}
	
	function dhidden(mid)
		{
		  document.getElementById(mid).style.display ="none";
		}
		
		
		//显示或隐藏Div
    function showorhidden(mid)
	{ 
     	if(document.getElementById(mid).style.display=='')
		   {
		   document.getElementById(mid).style.display="block";
		   }
		   else{
		document.getElementById(mid).style.display = document.getElementById(mid).style.display == 'none' ? 'block':'none';   
		   }
	    
	}		
		
		
		/*选项卡 第一种形式 第二种形式 更换显示样式*/
		/*参数 m，需要循环的（li）总数
		 *参数 n，需要显示的（li）下标
		*/	
	function setTab(m,n){
     	 for(i=0;i<m;i++){
		  document.getElementById("bqmenu").getElementsByTagName('li')[i].className=i==n?"hover":"";
		  document.getElementById("bq"+i).style.display=i==n?"block":"none";
	   }
	}
	
	
		
	function resetrow(id1,id2,id3,id4)
	{
		document.getElementById(id1).value = "";
		document.getElementById(id2).value = 0;
		document.getElementById(id3).value = 0;
		document.getElementById(id4).check = false;
	}

	function resetkong(idkong)
	{
		document.getElementById(idkong).value = "";
	}


